Skip navigation links
com.cometchat.pro.models

Class Action

    • Constructor Detail

      • Action

        public Action()
    • Method Detail

      • getActioBy

        public AppEntity getActioBy()
        Get Entity(User/Group) details which performed the action
        Returns:
        An object of the AppEntity class
        Since:
        v1
        See Also:
        AppEntity
      • setActioBy

        public void setActioBy(AppEntity actioBy)
      • 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)
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class BaseMessage