Package com.cometchat.pro.models
Class Action
- java.lang.Object
-
- com.cometchat.pro.models.AppEntity
-
- com.cometchat.pro.models.BaseMessage
-
- com.cometchat.pro.models.Action
-
public class Action extends BaseMessage
Action
class provides information about the action performed
-
-
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 Action()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static Action
fromJson(JSONObject jsonObject)
AppEntity
getActioBy()
Deprecated.java.lang.String
getAction()
Get action which is performedAppEntity
getActionBy()
Get Entity(User/Group) details which performed the actionAppEntity
getActionFor()
Get details of the Entity(User/Group) that the action was performed forAppEntity
getActionOn()
Get details of the Entity(User/Group) that the action was performed forjava.lang.String
getMessage()
Get Default action message provided by CometChat SDKjava.lang.String
getNewScope()
Get new scope of the userjava.lang.String
getOldScope()
Get old scope of the userjava.lang.String
getRawData()
Get raw JSON data in string formint
hashCode()
void
setActioBy(AppEntity actionBy)
Deprecated.void
setAction(java.lang.String action)
void
setActionBy(AppEntity actionBy)
void
setActionFor(AppEntity actionFor)
void
setActionOn(AppEntity actionOn)
void
setMessage(java.lang.String message)
void
setNewScope(java.lang.String newScope)
void
setOldScope(java.lang.String oldScope)
void
setRawData(java.lang.String rawData)
java.lang.String
toString()
-
Methods inherited from class com.cometchat.pro.models.BaseMessage
getCategory, getConversationId, getDeletedAt, getDeletedBy, getDeliveredAt, getDeliveredToMeAt, getEditedAt, getEditedBy, getId, getMessagesFromJSON, getMetadata, getMuid, getParentMessageId, getRawMessage, getReadAt, getReadByMeAt, getReceiver, getReceiverType, getReceiverUid, getReplyCount, getSender, getSentAt, getType, getUpdatedAt, 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
-
getActioBy
@Deprecated public AppEntity getActioBy()
Deprecated.Get Entity(User/Group) details which performed the action- Returns:
- An object of the
AppEntity
class
- Since:
- v1
- See Also:
AppEntity
-
setActioBy
@Deprecated public void setActioBy(AppEntity actionBy)
Deprecated.
-
getActionBy
public AppEntity getActionBy()
Get Entity(User/Group) details which performed the action- Returns:
- An object of the
AppEntity
class
- Since:
- v1
- See Also:
AppEntity
-
setActionBy
public void setActionBy(AppEntity actionBy)
-
getActionFor
public AppEntity getActionFor()
Get details of the Entity(User/Group) that the action was performed for- Returns:
- An object of the
AppEntity
class
- Since:
- v1
- See Also:
AppEntity
-
setActionFor
public void setActionFor(AppEntity actionFor)
-
getActionOn
public AppEntity getActionOn()
Get details of the Entity(User/Group) that the action was performed for- Returns:
- An object of the
AppEntity
class
- Since:
- v1
- See Also:
AppEntity
-
setActionOn
public void setActionOn(AppEntity actionOn)
-
getMessage
public java.lang.String getMessage()
Get Default action message provided by CometChat SDK- Returns:
- default action message provided by CometChat SDK
- Since:
- v1
-
setMessage
public void setMessage(java.lang.String message)
-
getRawData
public java.lang.String getRawData()
Get raw JSON data in string form- Returns:
- raw string format of JSONObject
- Since:
- v1
-
setRawData
public void setRawData(java.lang.String rawData)
-
getAction
public java.lang.String getAction()
Get action which is performed- Returns:
- action which is performed
- Since:
- v1
-
setAction
public void setAction(java.lang.String action)
-
getOldScope
public java.lang.String getOldScope()
Get old scope of the user- Returns:
- string value of scope
- Since:
- v1
-
setOldScope
public void setOldScope(java.lang.String oldScope)
-
getNewScope
public java.lang.String getNewScope()
Get new scope of the user- Returns:
- string value of scope
- Since:
- v1
-
setNewScope
public void setNewScope(java.lang.String newScope)
-
fromJson
public static Action fromJson(JSONObject jsonObject)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBaseMessage
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classBaseMessage
-
toString
public java.lang.String toString()
- Overrides:
toString
in classBaseMessage
-
-