Known message types.
More...
|
static void | Register< T > (int msgType, Func< T > msgConstructor) |
| Registers a custom message type.
|
|
|
Dictionary< string, object > | data = new Dictionary<string, object>() |
| Complete data of message.
|
|
|
virtual int | MessageType [get] |
|
object | this[string key] [get, set] |
| Gets message attributes.
|
|
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.
|
|
◆ LCIMTypedMessage()
LeanCloud.Realtime.LCIMTypedMessage.LCIMTypedMessage |
( |
| ) |
|
|
inlineprotected |
◆ Register< T >()
static void LeanCloud.Realtime.LCIMTypedMessage.Register< T > |
( |
int |
msgType, |
|
|
Func< T > |
msgConstructor |
|
) |
| |
|
inlinestatic |
Registers a custom message type.
- Template Parameters
-
- Parameters
-
◆ 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 |
◆ 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 |
◆ MessageType
virtual int LeanCloud.Realtime.LCIMTypedMessage.MessageType |
|
get |
◆ this[string key]
object LeanCloud.Realtime.LCIMTypedMessage.this[string key] |
|
getset |
Gets message attributes.
- Parameters
-
- Returns
The documentation for this class was generated from the following file: