Class GroupNotificationMessage
-
- All Implemented Interfaces:
public class GroupNotificationMessage
Group Notification Message Class
This class represents group notification messages. These messages are stored but do not count towards the unread message count.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
GROUP_OPERATION_CREATE
public final static String
GROUP_OPERATION_ADD
public final static String
GROUP_OPERATION_DISMISS
public final static String
GROUP_OPERATION_QUIT
public final static String
GROUP_OPERATION_KICKED
public final static String
GROUP_OPERATION_RENAME
public final static String
GROUP_OPERATION_BULLETIN
public final static String
GROUP_OPERATION_JOIN
public final static String
GROUP_OPERATION_TRANSFER
public final static String
GROUP_OPERATION_MANAGER_SET
public final static String
GROUP_OPERATION_MANAGER_REMOVE
public final static String
GROUP_OPERATION_MANAGER_REMOVE_DISPLAY
public final static String
GROUP_OPERATION_MEMBER_PROTECTION_OPEN
public final static String
GROUP_OPERATION_MEMBER_PROTECTION_CLOSE
public String
operatorUserId
public String
operation
public String
data
public String
message
public final static Creator<GroupNotificationMessage>
CREATOR
-
Constructor Summary
Constructors Constructor Description GroupNotificationMessage(Array<byte> data)
GroupNotificationMessage(Parcel in)
-
Method Summary
Modifier and Type Method Description String
getOperatorUserId()
Retrieves the operator's UserId, which can be empty. void
setOperatorUserId(String operatorUserId)
Sets the operator's UserId, which can be empty. String
getOperation()
Retrieves the operation name, which corresponds to GroupOperationXxxx or any arbitrary string. void
setOperation(String operation)
Sets the operation name, which corresponds to GroupOperationXxxx or any string. String
getData()
Retrieves the UserId of the target user or the operation data (e.g., the new name after renaming). void
setData(String data)
Sets the UserId of the person being operated on or the operation data (e.g., the new name after renaming). String
getMessage()
Retrieves the operation information, which can be empty, e.g., You were kicked out of the group by xxx. void
setMessage(String message)
Sets the operation information, which can be empty, e.g., You were removed from the group by xxx. static GroupNotificationMessage
obtain(String operatorUserId, String operation, String data, String message)
Array<byte>
encode()
void
writeToParcel(Parcel dest, int flags)
int
describeContents()
-
-
Constructor Detail
-
GroupNotificationMessage
GroupNotificationMessage(Array<byte> data)
-
GroupNotificationMessage
GroupNotificationMessage(Parcel in)
-
-
Method Detail
-
getOperatorUserId
String getOperatorUserId()
Retrieves the operator's UserId, which can be empty.
- Returns:
The operator's UserId, which can be empty.
-
setOperatorUserId
void setOperatorUserId(String operatorUserId)
Sets the operator's UserId, which can be empty.
- Parameters:
operatorUserId
- The operator's UserId, which can be empty.
-
getOperation
String getOperation()
Retrieves the operation name, which corresponds to GroupOperationXxxx or any arbitrary string.
- Returns:
The operation name, corresponding to GroupOperationXxxx or any arbitrary string.
-
setOperation
void setOperation(String operation)
Sets the operation name, which corresponds to GroupOperationXxxx or any string.
- Parameters:
operation
- The operation name, which corresponds to GroupOperationXxxx or any string.
-
getData
String getData()
Retrieves the UserId of the target user or the operation data (e.g., the new name after renaming).
- Returns:
The UserId of the target user or the operation data (e.g., the new name after renaming).
-
setData
void setData(String data)
Sets the UserId of the person being operated on or the operation data (e.g., the new name after renaming).
- Parameters:
data
- The UserId of the person being operated on or the operation data (e.g., the new name after renaming).
-
getMessage
String getMessage()
Retrieves the operation information, which can be empty, e.g., You were kicked out of the group by xxx.
- Returns:
The operation information, which can be empty, e.g., You were kicked out of the group by xxx.
-
setMessage
void setMessage(String message)
Sets the operation information, which can be empty, e.g., You were removed from the group by xxx.
- Parameters:
message
- The operation information, which can be empty, e.g., You were removed from the group by xxx.
-
obtain
static GroupNotificationMessage obtain(String operatorUserId, String operation, String data, String message)
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
-
-
-