ContactNotificationMessage

Friend Request Message Class

This class represents a friend request message. The message will be stored but will not be counted as an unread message.

Constructors

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

Properties

Link copied to clipboard
public final static String CONTACT_OPERATION_ACCEPT_RESPONSE
Response to a friend request approval.
Link copied to clipboard
public final static String CONTACT_OPERATION_REJECT_RESPONSE
Reject friend request response.
Link copied to clipboard
public final static String CONTACT_OPERATION_REQUEST
Friend request.
Link copied to clipboard
public final static Creator<ContactNotificationMessage> CREATOR
Link copied to clipboard
public String message
Link copied to clipboard
public String operation
Link copied to clipboard
public String sourceUserId
Link copied to clipboard
public String targetUserId

Functions

Link copied to clipboard
public int describeContents()
Describes the type of special objects included in the Parcelable object arrangement information.
Link copied to clipboard
public Array<byte> encode()
Link copied to clipboard
public String getMessage()
Retrieves the request or response message, such as the reason for adding or rejecting.
Link copied to clipboard
public String getOperation()
Retrieves the operation name, which corresponds to ContactOperationXxxx, or any custom string passed by the user.
Link copied to clipboard
public String getSourceUserId()
Gets the user ID of the user who initiated the current operation.
Link copied to clipboard
public String getTargetUserId()
Retrieves the user ID of the target user for the current operation.
Link copied to clipboard
public static ContactNotificationMessage obtain(String operation, String sourceUserId, String targetUserId, String message)
Creates a message instance.
Link copied to clipboard
public void setMessage(String message)
Sets the request or response message, such as the reason for adding or rejecting.
Link copied to clipboard
public void setOperation(String operation)
Sets the operation name, which corresponds to ContactOperationXxxx, or you can pass any string.
Link copied to clipboard
public void setSourceUserId(String sourceUserId)
Sets the user ID of the user initiating the current operation.
Link copied to clipboard
public void setTargetUserId(String targetUserId)
Sets the user ID of the target user for the current operation.
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)
Writes the class data into the provided Parcel.