Class RecallCommandMessage

  • All Implemented Interfaces:

    
    public class RecallCommandMessage
    
                        

    Recall Command Message Class

    The recall command message class is used to send signaling messages when recalling a message. This message is neither stored nor counted.

    • Constructor Detail

      • RecallCommandMessage

        RecallCommandMessage(String UId)
      • RecallCommandMessage

        RecallCommandMessage(String UId, String ex)
      • RecallCommandMessage

        RecallCommandMessage(Array<byte> data)
      • RecallCommandMessage

        RecallCommandMessage(Parcel in)
    • Method Detail

      • getMessageUId

         String getMessageUId()

        Retrieves the UID of the recalled message

        Returns:

        The UID of the recalled message

      • setMessageUId

         void setMessageUId(String messageUId)

        Sets the UID of the message to be recalled

        Parameters:
        messageUId - The UID of the message to be recalled
      • getTargetId

         String getTargetId()

        Get the target conversation ID

        Returns:

        The target conversation ID

      • setTargetId

         void setTargetId(String targetId)

        Sets the target conversation ID

        Parameters:
        targetId - The target conversation ID
      • getConversationType

         int getConversationType()

        Get the conversation type

        Returns:

        The conversation type

      • setConversationType

         void setConversationType(int conversationType)

        Set the conversation type

        Parameters:
        conversationType - Specifies the conversation type
      • getSentTime

         long getSentTime()

        Get the message sending time

        Returns:

        The message sending time

      • setSentTime

         void setSentTime(long sentTime)

        Set the message sending time

        Parameters:
        sentTime - The message sending time
      • isAdmin

         boolean isAdmin()

        Indicates whether it is an admin operation

        Returns:

        Indicates whether it is an admin operation

      • setAdmin

         void setAdmin(boolean admin)

        Sets whether the operation is performed by an admin

        Parameters:
        admin - Indicates whether the operation is performed by an admin
      • isDelete

         boolean isDelete()

        Whether to delete

        Returns:

        Indicates whether to delete

      • setDelete

         void setDelete(boolean delete)

        Sets whether the message should be deleted

        Parameters:
        delete - Indicates whether to delete the message (true to delete, false to keep)
      • encode

         Array<byte> encode()

        Serializes the data to be transmitted.

        Returns:

        The serialized data to be transmitted.