SBDUserMessage Class Reference

Inherits from SBDBaseMessage : NSObject
Declared in SBDUserMessage.h

Overview

The SBDUserMessage class represents the user message which is generated by a user via sendUserMessage:completionHandler: or sendUserMessage:data:completionHandler: in SBDBaseChannel or Platform API.

  message

Message text.

@property (strong, nonatomic, readonly, nullable) NSString *message

Declared In

SBDUserMessage.h

  sender

Sender of the message. This is represented by SBDSender class.

@property (strong, nonatomic, nullable, getter=sender) SBDSender *sender

Declared In

SBDUserMessage.h

  requestId

Request ID for checking ACK.

@property (strong, nonatomic, readonly, nullable) NSString *requestId

Declared In

SBDUserMessage.h

  translations

Translated message text.

@property (strong, nonatomic, readonly, nullable) NSDictionary *translations

Declared In

SBDUserMessage.h

  requestState

Represents the dispatch state of the message. If message is not dispatched completely to the SendBird server, the value is SBDMessageRequestStatePending. If failed to send the message, the value is SBDMessageRequestStateFailed. And if success to send the message, the value is SBDMessageRequestStateSucceeded.

@property (assign, nonatomic, readonly) SBDMessageRequestState requestState

Availability

3.0.141

Declared In

SBDUserMessage.h

  requestedMentionUserIds

Represents target user ids to mention when success to send the message. This value is valid only when the message is a pending message or failed message. If the message is a succeeded message, see mentionedUserIds

@property (strong, nonatomic, readonly, nonnull) NSArray<NSString*> *requestedMentionUserIds

Availability

3.0.147

See Also

Declared In

SBDUserMessage.h

– serialize

Serializes message object.

- (nullable NSData *)serialize

Return Value

Serialized data.

Declared In

SBDUserMessage.h

– sender

Returns sender.

- (nonnull SBDSender *)sender

Return Value

Sender of the message.

Declared In

SBDUserMessage.h