Package com.cometchat.pro.models
Class Conversation
- java.lang.Object
-
- com.cometchat.pro.models.Conversation
-
public class Conversation extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Conversation(java.lang.String conversationId, java.lang.String conversationType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static ConversationfromJSON(JSONObject conversationObject)java.lang.StringgetConversationId()java.lang.StringgetConversationType()AppEntitygetConversationWith()BaseMessagegetLastMessage()java.util.List<java.lang.String>getTags()intgetUnreadMessageCount()longgetUpdatedAt()inthashCode()static java.util.List<Conversation>listFromJsonArray(java.lang.String response)voidsetConversationId(java.lang.String conversationId)voidsetConversationType(java.lang.String conversationType)voidsetConversationWith(AppEntity conversationWith)voidsetLastMessage(BaseMessage lastMessage)voidsetTags(java.util.List<java.lang.String> tags)voidsetUnreadMessageCount(int unreadMessageCount)voidsetUpdatedAt(long updatedAt)java.lang.StringtoString()
-
-
-
Method Detail
-
getConversationId
public java.lang.String getConversationId()
-
setConversationId
public void setConversationId(java.lang.String conversationId)
-
getConversationType
public java.lang.String getConversationType()
-
setConversationType
public void setConversationType(java.lang.String conversationType)
-
getLastMessage
public BaseMessage getLastMessage()
-
setLastMessage
public void setLastMessage(BaseMessage lastMessage)
-
getConversationWith
public AppEntity getConversationWith()
-
setConversationWith
public void setConversationWith(AppEntity conversationWith)
-
getUnreadMessageCount
public int getUnreadMessageCount()
-
setUnreadMessageCount
public void setUnreadMessageCount(int unreadMessageCount)
-
getUpdatedAt
public long getUpdatedAt()
-
setUpdatedAt
public void setUpdatedAt(long updatedAt)
-
getTags
public java.util.List<java.lang.String> getTags()
-
setTags
public void setTags(java.util.List<java.lang.String> tags)
-
listFromJsonArray
public static java.util.List<Conversation> listFromJsonArray(java.lang.String response) throws JSONException
- Throws:
JSONException
-
fromJSON
public static Conversation fromJSON(JSONObject conversationObject) throws JSONException
- Throws:
JSONException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-