Sendbird Chat SDK for .NET  3.0.29
SendBird.UserMessage Class Reference
Inheritance diagram for SendBird.UserMessage:
SendBird.BaseMessage

Public Types

enum  RequestState { NONE, PENDING, FAILED, SUCCEEDED }
 
- Public Types inherited from SendBird.BaseMessage
enum  MentionType { USERS, CHANNEL }
 

Public Member Functions

RequestState GetRequestState ()
 
override string ToString ()
 
- Public Member Functions inherited from SendBird.BaseMessage
Sender GetSender ()
 
override string ToString ()
 
void SetSendingStatus (SendingStatus sendingStatus)
 
bool IsOpenChannel ()
 
bool IsGroupChannel ()
 
virtual byte[] Serialize ()
 

Properties

override string Message [get]
 
User Sender [get]
 
override string RequestId [get]
 
Dictionary< string, string > Translations [get]
 
List< string > RequestedMentionUserIds [get]
 
- Properties inherited from SendBird.BaseMessage
abstract string RequestId [get]
 
abstract string Message [get]
 
SendingStatus GetSendingStatus [get]
 
string UserId [get]
 
long MessageId [get]
 
long CreatedAt [get]
 
long UpdatedAt [get]
 
string ChannelUrl [get]
 
string Data [get]
 
string CustomType [get]
 
List< UserMentionedUsers [get]
 
List< string > MentionedUserIds [get]
 
long RootMessageId [get]
 
long ParentMessageId [get]
 
BaseMessageParams.MentionType GetMentionType [get]
 
bool IsOperatorMessage [get]
 
bool IsSilent [get]
 
bool ShouldForceUpdateLastMessage [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from SendBird.BaseMessage
static bool BelongsTo (BaseMessage message, string userId)
 
static bool EqualsIgnoreCase (string userId, string anotherString)
 
static bool BelongsTo (BaseMessage message, User user)
 
static string Base64Decode (string data)
 
static byte[] Base64Encode (string data)
 
static BaseMessage BuildFromSerializedData (byte[] data)
 

Detailed Description

Object representing a user message.

Member Enumeration Documentation

◆ RequestState

Represents message request state.

Since
3.0.96
Deprecated:
As of 3.0.120, replaced by SendingStatus.

Member Function Documentation

◆ GetRequestState()

RequestState SendBird.UserMessage.GetRequestState ( )
inline

Returns message request state.

Returns
Request state (refer to RequestState).
Since
3.0.96
Deprecated:
As of 3.0.120, replaced by BaseMessage#getSendingStatus().

Property Documentation

◆ Message

override string SendBird.UserMessage.Message
get

Returns message text.

Returns
The text.

◆ RequestedMentionUserIds

List<string> SendBird.UserMessage.RequestedMentionUserIds
get

Returns requested mention user ids. If sending status is not SendingStatus#PENDING or SendingStatus#FAILED or SendingStatus#CANCELED, empty list will be returned.

Returns
Requested mention user ids.
Since
3.0.82

◆ RequestId

override string SendBird.UserMessage.RequestId
get

Returns a message request ID.

Returns
string ID.

◆ Sender

User SendBird.UserMessage.Sender
get

Returns sender of message.

Returns
The sender.

◆ Translations

Dictionary<string, string> SendBird.UserMessage.Translations
get

Returns the translated messages for the language codes in key. Please contact sales to use translation feature. Refer to BaseChannel#SendUserMessage(String, string, string, List, BaseChannel.SendUserMessageHandler)

Returns
Translated messages key-value map.

The documentation for this class was generated from the following file: