public class Conversation extends TypedData
| Constructor and Description |
|---|
Conversation() |
| Modifier and Type | Method and Description |
|---|---|
static AdminMessage |
create(AdminMessage message) |
static UserMessage |
create(UserMessage message) |
boolean |
equals(java.lang.Object o) |
static Conversation |
find(java.lang.String id) |
Admin |
getAssignee() |
ConversationMessage |
getConversationMessage() |
ConversationPartCollection |
getConversationPartCollection() |
long |
getCreatedAt() |
Admin |
getCurrentAssignee() |
com.google.common.base.Optional<ConversationPart> |
getFirstConversationPart() |
java.lang.String |
getId() |
ConversationPart |
getMostRecentConversationPart() |
boolean |
getOpen() |
boolean |
getRead() |
java.lang.String |
getType() |
long |
getUpdatedAt() |
User |
getUser() |
int |
hashCode() |
static ConversationCollection |
list() |
static ConversationCollection |
list(java.util.Map<java.lang.String,java.lang.String> params) |
static Conversation |
reply(java.lang.String id,
AdminReply reply) |
static Conversation |
reply(java.lang.String id,
UserReply reply) |
java.lang.String |
toString() |
public static Conversation find(java.lang.String id) throws InvalidException, AuthorizationException
public static ConversationCollection list() throws InvalidException, AuthorizationException
public static ConversationCollection list(java.util.Map<java.lang.String,java.lang.String> params) throws InvalidException, AuthorizationException
public static Conversation reply(java.lang.String id, UserReply reply)
public static Conversation reply(java.lang.String id, AdminReply reply)
public static UserMessage create(UserMessage message)
public static AdminMessage create(AdminMessage message) throws InvalidException
InvalidExceptionpublic java.lang.String getType()
public Admin getCurrentAssignee()
public com.google.common.base.Optional<ConversationPart> getFirstConversationPart()
public ConversationPart getMostRecentConversationPart()
public java.lang.String getId()
public ConversationMessage getConversationMessage()
public User getUser()
public Admin getAssignee()
public long getCreatedAt()
public long getUpdatedAt()
public ConversationPartCollection getConversationPartCollection()
public boolean getOpen()
public boolean getRead()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object