obtain

public static ContactNotificationMessage obtain(String operation, String sourceUserId, String targetUserId, String message)

Creates a message instance.

Return

The message instance.

Parameters

operation

The operation name, corresponding to ContactOperationXxxx, or any custom string.

sourceUserId

The UserId of the requester or responder.

targetUserId

The UserId of the requestee or responsee.

message

The request or response message, such as the reason for adding or rejecting.