Skip to main content

MessageInfo

Function Introduction

info

Message structure. For specific types, refer to contentType and parse the corresponding Elem field.

Note

OIMMessageInfo

Field NameData TypeDescription
clientMsgIDNSStringUnique client message ID, recommended use
serverMsgIDNSStringUnique server message ID, internal use
createTimeNSIntegerCreation time
sendTimeNSIntegerSending time
sessionTypeOIMConversationTypeSession type
sendIDNSStringSender's ID
recvIDNSStringReceiver's ID, not needed for group chat
msgFromNSIntegerInternal field
contentTypeOIMMessageContentTypeMessage type
platformIDNSIntegerPlatform number
senderNicknameNSStringSender's nickname
senderFaceUrlNSStringSender's avatar
groupIDNSStringGroup ID
contentNSStringInternal field
seqNSIntegerMessage's seq
isReadBOOLIs it read?
statusOIMMessageStatusMessage sending status
attachedInfoNSStringAttached information
exNSStringExtended information
offlinePushOfflinePushInfoOffline push details
pictureElemPictureElemImage
soundElemSoundElemVoice
videoElemVideoElemVideo
fileElemFileElemFile
mergeElemMergeElemMerge
atElemAtElem@ information
locationElemLocationElemLocation
quoteElemQuoteElemQuote
customElemCustomElemCustom
notificationElemNotificationElemNotification details
faceElemFaceElemCustom emoji
attachedInfoElemAttachedInfoElemAttached information
textElemTextElem