LeanCloud C# SDK
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | List of all members
LeanCloud.Realtime.LCIMTypedMessage Class Reference

Known message types. More...

Inheritance diagram for LeanCloud.Realtime.LCIMTypedMessage:
LeanCloud.Realtime.LCIMMessage LeanCloud.Realtime.LCIMRecalledMessage LeanCloud.Realtime.LCIMTextMessage LeanCloud.Realtime.LCIMFileMessage LeanCloud.Realtime.LCIMLocationMessage LeanCloud.Realtime.LCIMAudioMessage LeanCloud.Realtime.LCIMImageMessage LeanCloud.Realtime.LCIMVideoMessage

Static Public Member Functions

static void Register< T > (int msgType, Func< T > msgConstructor)
 Registers a custom message type.
 

Static Public Attributes

const int TextMessageType = -1
 
const int ImageMessageType = -2
 
const int AudioMessageType = -3
 
const int VideoMessageType = -4
 
const int LocationMessageType = -5
 
const int FileMessageType = -6
 
const int RecalledMessageType = -127
 

Protected Member Functions

 LCIMTypedMessage ()
 

Protected Attributes

Dictionary< string, object > data = new Dictionary<string, object>()
 Complete data of message.
 

Static Protected Attributes

const string MessageTypeKey = "_lctype"
 Preserved fields.
 
const string MessageAttributesKey = "_lcattrs"
 
const string MessageTextKey = "_lctext"
 
const string MessageLocationKey = "_lcloc"
 
const string MessageFileKey = "_lcfile"
 
const string MessageDataLongitudeKey = "longitude"
 
const string MessageDataLatitudeKey = "latitude"
 
const string MessageDataObjectIdKey = "objId"
 
const string MessageDataUrlKey = "url"
 
const string MessageDataMetaDataKey = "metaData"
 
const string MessageDataMetaNameKey = "name"
 
const string MessageDataMetaFormatKey = "format"
 
const string MessageDataMetaSizeKey = "size"
 
const string MessageDataMetaWidthKey = "width"
 
const string MessageDataMetaHeightKey = "height"
 
const string MessageDataMetaDurationKey = "duration"
 

Properties

virtual int MessageType [get]
 
object this[string key] [get, set]
 Gets message attributes.
 
- Properties inherited from LeanCloud.Realtime.LCIMMessage
string ConversationId [get, set]
 The conversation ID this message belongs to.
 
string Id [get, set]
 The ID of this message.
 
string FromClientId [get, set]
 The ID of the client who sends this message.
 
long SentTimestamp [get, set]
 The timestamp of this message.
 
DateTime SentAt [get]
 The sending date of this message.
 
long DeliveredTimestamp [get, set]
 送达时间戳
 
DateTime DeliveredAt [get]
 The delivered date of this message.
 
long ReadTimestamp [get, set]
 The timestamp when this message has been read by others.
 
DateTime ReadAt [get]
 When this message has been read by others.
 
long PatchedTimestamp [get, set]
 The timestamp when this message is updated.
 
DateTime PatchedAt [get]
 When this message is updated.
 
List< string > MentionIdList [get, set]
 The members in the conversation mentioned by this message.
 
bool MentionAll [get, set]
 Whether all members in the conversation are mentioned by this message.
 
bool Mentioned [get, set]
 Whether the current user has been mentioned in this message.
 

Detailed Description

Known message types.

Constructor & Destructor Documentation

◆ LCIMTypedMessage()

LeanCloud.Realtime.LCIMTypedMessage.LCIMTypedMessage ( )
inlineprotected

Member Function Documentation

◆ Register< T >()

static void LeanCloud.Realtime.LCIMTypedMessage.Register< T > ( int  msgType,
Func< T >  msgConstructor 
)
inlinestatic

Registers a custom message type.

Template Parameters
T
Parameters
msgType
msgConstructor
Type Constraints
T :LCIMTypedMessage 

Member Data Documentation

◆ AudioMessageType

const int LeanCloud.Realtime.LCIMTypedMessage.AudioMessageType = -3
static

◆ data

Dictionary<string, object> LeanCloud.Realtime.LCIMTypedMessage.data = new Dictionary<string, object>()
protected

Complete data of message.

◆ FileMessageType

const int LeanCloud.Realtime.LCIMTypedMessage.FileMessageType = -6
static

◆ ImageMessageType

const int LeanCloud.Realtime.LCIMTypedMessage.ImageMessageType = -2
static

◆ LocationMessageType

const int LeanCloud.Realtime.LCIMTypedMessage.LocationMessageType = -5
static

◆ MessageAttributesKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageAttributesKey = "_lcattrs"
staticprotected

◆ MessageDataLatitudeKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataLatitudeKey = "latitude"
staticprotected

◆ MessageDataLongitudeKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataLongitudeKey = "longitude"
staticprotected

◆ MessageDataMetaDataKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataMetaDataKey = "metaData"
staticprotected

◆ MessageDataMetaDurationKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataMetaDurationKey = "duration"
staticprotected

◆ MessageDataMetaFormatKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataMetaFormatKey = "format"
staticprotected

◆ MessageDataMetaHeightKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataMetaHeightKey = "height"
staticprotected

◆ MessageDataMetaNameKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataMetaNameKey = "name"
staticprotected

◆ MessageDataMetaSizeKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataMetaSizeKey = "size"
staticprotected

◆ MessageDataMetaWidthKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataMetaWidthKey = "width"
staticprotected

◆ MessageDataObjectIdKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataObjectIdKey = "objId"
staticprotected

◆ MessageDataUrlKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageDataUrlKey = "url"
staticprotected

◆ MessageFileKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageFileKey = "_lcfile"
staticprotected

◆ MessageLocationKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageLocationKey = "_lcloc"
staticprotected

◆ MessageTextKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageTextKey = "_lctext"
staticprotected

◆ MessageTypeKey

const string LeanCloud.Realtime.LCIMTypedMessage.MessageTypeKey = "_lctype"
staticprotected

Preserved fields.

◆ RecalledMessageType

const int LeanCloud.Realtime.LCIMTypedMessage.RecalledMessageType = -127
static

◆ TextMessageType

const int LeanCloud.Realtime.LCIMTypedMessage.TextMessageType = -1
static

◆ VideoMessageType

const int LeanCloud.Realtime.LCIMTypedMessage.VideoMessageType = -4
static

Property Documentation

◆ MessageType

virtual int LeanCloud.Realtime.LCIMTypedMessage.MessageType
get

◆ this[string key]

object LeanCloud.Realtime.LCIMTypedMessage.this[string key]
getset

Gets message attributes.

Parameters
key
Returns

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