@@ -0,0 +1,1492 @@
+package com.growthbeat.model;%0A%0Aimport java.util.Date;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport com.fasterxml.jackson.annotation.JsonFormat;%0Aimport com.growthbeat.Context;%0Aimport com.growthbeat.constants.Constants;%0A%0Apublic class TemporarySession extends Model %7B%0A%0A%09private String id;%0A%09private Account account;%0A%09private Service service;%0A%09private Date created;%0A%0A%09public TemporarySession() %7B%0A%09%09super();%0A%09%7D%0A%0A%09public String getId() %7B%0A%09%09return id;%0A%09%7D%0A%0A%09public void setId(String id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%0A%09public Account getAccount() %7B%0A%09%09return account;%0A%09%7D%0A%0A%09public void setAccount(Account account) %7B%0A%09%09this.account = account;%0A%09%7D%0A%0A%09public Service getService() %7B%0A%09%09return service;%0A%09%7D%0A%0A%09public void setService(Service service) %7B%0A%09%09this.service = service;%0A%09%7D%0A%0A%09@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = Constants.ISO_8601_DATETIME_FORMAT)%0A%09public Date getCreated() %7B%0A%09%09return created;%0A%09%7D%0A%0A%09public void setCreated(Date created) %7B%0A%09%09this.created = created;%0A%09%7D%0A%0A%09public static TemporarySession findById(String id, Context context) %7B%0A%09%09return get(context, String.format(%221/temporary_sessions/%25s%22, id), new HashMap%3CString, Object%3E(), TemporarySession.class);%0A%09%7D%0A%0A%09public static TemporarySession create(String accountId, String serviceId, Context context) %7B%0A%09%09Map%3CString, Object%3E params = new HashMap%3CString, Object%3E();%0A%09%09params.put(%22accountId%22, accountId);%0A%09%09params.put(%22serviceId%22, serviceId);%0A%09%09return post(context, %221/temporary_sessions%22, params, TemporarySession.class);%0A%09%7D%0A%0A%7D%0A

add temporarySession