GroupNotificationMessage

Group Notification Message Class

This class represents group notification messages. These messages are stored but do not count towards the unread message count.

Constructors

Link copied to clipboard
public void GroupNotificationMessage(Array<byte> data)
public void GroupNotificationMessage(Parcel in)

Properties

Link copied to clipboard
public final static Creator<GroupNotificationMessage> CREATOR
Link copied to clipboard
public String data
The UserId of the user being operated on or the operation data (e.g., the new name after renaming).
Link copied to clipboard
public final static String GROUP_OPERATION_ADD
New member joins the group.
Link copied to clipboard
public final static String GROUP_OPERATION_BULLETIN
Group announcement updated.
Link copied to clipboard
public final static String GROUP_OPERATION_CREATE
Create a group.
Link copied to clipboard
public final static String GROUP_OPERATION_DISMISS
Disband the group.
Link copied to clipboard
public final static String GROUP_OPERATION_JOIN
Join.
Link copied to clipboard
public final static String GROUP_OPERATION_KICKED
Member was kicked out by the administrator.
Link copied to clipboard
public final static String GROUP_OPERATION_MANAGER_REMOVE
Remove administrator.
Link copied to clipboard
public final static String GROUP_OPERATION_MANAGER_REMOVE_DISPLAY
Remove the administrator and display it.
Link copied to clipboard
public final static String GROUP_OPERATION_MANAGER_SET
Set as administrator.
Link copied to clipboard
public final static String GROUP_OPERATION_MEMBER_PROTECTION_CLOSE
Disable group member protection.
Link copied to clipboard
public final static String GROUP_OPERATION_MEMBER_PROTECTION_OPEN
Enable group member protection.
Link copied to clipboard
public final static String GROUP_OPERATION_QUIT
Member exits the group.
Link copied to clipboard
public final static String GROUP_OPERATION_RENAME
Rename the group.
Link copied to clipboard
public final static String GROUP_OPERATION_TRANSFER
Transfer group ownership.
Link copied to clipboard
public String message
Operation information, which can be empty, e.g., You were removed from the group by xxx.
Link copied to clipboard
public String operation
Operation name, corresponding to GroupOperationXxxx, or any string.
Link copied to clipboard
public String operatorUserId
Operator UserId, which can be empty;

Functions

Link copied to clipboard
public int describeContents()
Link copied to clipboard
public Array<byte> encode()
Link copied to clipboard
public String getData()
Retrieves the UserId of the target user or the operation data (e.g., the new name after renaming).
Link copied to clipboard
public String getMessage()
Retrieves the operation information, which can be empty, e.g., You were kicked out of the group by xxx.
Link copied to clipboard
public String getOperation()
Retrieves the operation name, which corresponds to GroupOperationXxxx or any arbitrary string.
Link copied to clipboard
public String getOperatorUserId()
Retrieves the operator's UserId, which can be empty.
Link copied to clipboard
public static GroupNotificationMessage obtain(String operatorUserId, String operation, String data, String message)
Link copied to clipboard
public void setData(String data)
Sets the UserId of the person being operated on or the operation data (e.g., the new name after renaming).
Link copied to clipboard
public void setMessage(String message)
Sets the operation information, which can be empty, e.g., You were removed from the group by xxx.
Link copied to clipboard
public void setOperation(String operation)
Sets the operation name, which corresponds to GroupOperationXxxx or any string.
Link copied to clipboard
public void setOperatorUserId(String operatorUserId)
Sets the operator's UserId, which can be empty.
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)