Skip to main content

MessageInfo

Description

info

Message structure, specific type refers to contentType and parse corresponding Elem fields.

Note

OIMMessageInfo

Field NameField TypeDescription
clientMsgIDNSStringClient message unique ID, recommended to use
serverMsgIDNSStringServer message unique ID, used internally
createTimeNSIntegerCreation time
sendTimeNSIntegerSend time
sessionTypeOIMConversationTypeSession type
sendIDNSStringSender ID
recvIDNSStringReceiver ID, no need to pay attention to in group chat session
msgFromNSIntegerInternal field
contentTypeOIMMessageContentTypeMessage type
platformIDNSIntegerPlatform ID
senderNicknameNSStringSender nickname
senderFaceUrlNSStringSender face URL
groupIDNSStringGroup ID
contentNSStringInternal field
seqNSIntegerMessage seq
isReadBOOLWhether read
statusOIMMessageStatusMessage send status
attachedInfoNSStringAttached info
exNSStringExtension info
offlinePushOfflinePushInfoOffline push details
pictureElemPictureElemPicture
soundElemSoundElemSound
videoElemVideoElemVideo
fileElemFileElemFile
mergeElemMergeElemMerge
atElemAtElem@ info
locationElemLocationElemLocation
quoteElemQuoteElemQuote
customElemCustomElemCustom
notificationElemNotificationElemNotification details
faceElemFaceElemCustom emoticon
attachedInfoElemAttachedInfoElemAttached info
textElemTextElemText content
cardElemCardElemCard content
advancedTextElem-Currently unused
typingElemTypingElemTyping details
hasReadTimeNSIntegerSingle chat read timestamp
isReactBOOLCurrently unused
isExternalExtensionsBOOLCurrently unused