Package com.cometchat.pro.core
Class Call
- java.lang.Object
-
- com.cometchat.pro.models.AppEntity
-
- com.cometchat.pro.models.BaseMessage
-
- com.cometchat.pro.core.Call
-
public class Call extends BaseMessage
Call class provides information about call Messages
-
-
Field Summary
-
Fields inherited from class com.cometchat.pro.models.BaseMessage
category, conversationId, deletedAt, deletedBy, deliveredAt, deliveredToMeAt, editedAt, editedBy, id, metadata, muid, parentMessageId, rawMessage, readAt, readByMeAt, receiver, receiverType, receiverUid, replyCount, sender, sentAt, TABLE_CONVERSATIONS, type, updatedAt
-
-
Constructor Summary
Constructors Constructor Description Call(java.lang.String receiverId, java.lang.String receiverType, java.lang.String callType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Call
fromJson(java.lang.String response)
java.lang.String
getAction()
Get action on callAppEntity
getCallInitiator()
Get call initiator entity(User/Group)AppEntity
getCallReceiver()
Get call receiver entity(User/Group)java.lang.String
getCallStatus()
Get status of the calllong
getInitiatedAt()
Get Call initiated timestamplong
getJoinedAt()
Get Call join timestampjava.lang.String
getRawData()
Get raw JSON data of the call messagejava.lang.String
getSessionId()
Get unique session id of the call messagevoid
setAction(java.lang.String action)
void
setCallInitiator(AppEntity callInitiator)
void
setCallReceiver(AppEntity callReceiver)
void
setCallStatus(java.lang.String callStatus)
void
setInitiatedAt(long initiatedAt)
void
setJoinedAt(long joinedAt)
void
setRawData(java.lang.String rawData)
void
setSessionId(java.lang.String sessionId)
java.util.HashMap<java.lang.String,java.lang.String>
toMap()
java.lang.String
toString()
-
Methods inherited from class com.cometchat.pro.models.BaseMessage
equals, getCategory, getConversationId, getDeletedAt, getDeletedBy, getDeliveredAt, getDeliveredToMeAt, getEditedAt, getEditedBy, getId, getMessagesFromJSON, getMetadata, getMuid, getParentMessageId, getRawMessage, getReadAt, getReadByMeAt, getReceiver, getReceiverType, getReceiverUid, getReplyCount, getSender, getSentAt, getType, getUpdatedAt, hashCode, setCategory, setConversationId, setDeletedAt, setDeletedBy, setDeliveredAt, setDeliveredToMeAt, setEditedAt, setEditedBy, setId, setMetadata, setMuid, setParentMessageId, setRawMessage, setReadAt, setReadByMeAt, setReceiver, setReceiverType, setReceiverUid, setReplyCount, setSender, setSentAt, setType, setUpdatedAt
-
-
-
-
Method Detail
-
getSessionId
public java.lang.String getSessionId()
Get unique session id of the call message- Returns:
- unique session id of the message
- Since:
- v1
-
setSessionId
public void setSessionId(java.lang.String sessionId)
-
getCallStatus
public java.lang.String getCallStatus()
Get status of the call- Returns:
- Call status
- Since:
- v1
- See Also:
CometChatConstants.CallStatus
-
setCallStatus
public void setCallStatus(java.lang.String callStatus)
-
getAction
public java.lang.String getAction()
Get action on call- Returns:
- action on call
- Since:
- v1
-
setAction
public void setAction(java.lang.String action)
-
getRawData
public java.lang.String getRawData()
Get raw JSON data of the call message- Returns:
- raw JSON data
- Since:
- v1
-
setRawData
public void setRawData(java.lang.String rawData)
-
getInitiatedAt
public long getInitiatedAt()
Get Call initiated timestamp- Returns:
- initiated timestamp
- Since:
- v1
-
setInitiatedAt
public void setInitiatedAt(long initiatedAt)
-
getCallInitiator
public AppEntity getCallInitiator()
Get call initiator entity(User/Group)- Returns:
- call initiator entity(user/group)
- Since:
- v1
-
setCallInitiator
public void setCallInitiator(AppEntity callInitiator)
-
getCallReceiver
public AppEntity getCallReceiver()
Get call receiver entity(User/Group)- Returns:
- call receiver entity(user/group)
- Since:
- v1
-
setCallReceiver
public void setCallReceiver(AppEntity callReceiver)
-
getJoinedAt
public long getJoinedAt()
Get Call join timestamp- Returns:
- call joined timestamp
- Since:
- v1
-
setJoinedAt
public void setJoinedAt(long joinedAt)
-
toMap
public java.util.HashMap<java.lang.String,java.lang.String> toMap()
-
fromJson
public static Call fromJson(java.lang.String response) throws JSONException
- Throws:
JSONException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classBaseMessage
-
-