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.
-
-
Field Summary
Fields Modifier and Type Field Description public String
messageUId
public String
targetId
public int
conversationType
public long
sentTime
public String
channelId
public boolean
isAdmin
public boolean
isDelete
public final static Creator<RecallCommandMessage>
CREATOR
-
Constructor Summary
Constructors Constructor Description RecallCommandMessage(String UId)
RecallCommandMessage(String UId, String ex)
RecallCommandMessage(Array<byte> data)
RecallCommandMessage(Parcel in)
-
Method Summary
Modifier and Type Method Description String
getMessageUId()
Retrieves the UID of the recalled message void
setMessageUId(String messageUId)
Sets the UID of the message to be recalled String
getTargetId()
Get the target conversation ID void
setTargetId(String targetId)
Sets the target conversation ID int
getConversationType()
Get the conversation type void
setConversationType(int conversationType)
Set the conversation type long
getSentTime()
Get the message sending time void
setSentTime(long sentTime)
Set the message sending time String
getChannelId()
void
setChannelId(String channelId)
boolean
isAdmin()
Indicates whether it is an admin operation void
setAdmin(boolean admin)
Sets whether the operation is performed by an admin boolean
isDelete()
Whether to delete void
setDelete(boolean delete)
Sets whether the message should be deleted Array<byte>
encode()
Serializes the data to be transmitted. void
writeToParcel(Parcel dest, int flags)
int
describeContents()
-
-
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
-
getChannelId
String getChannelId()
-
setChannelId
void setChannelId(String channelId)
-
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.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
-
-
-