Suggestions

close search

Message

Represent an individual message of a conversation

id

The message ID

conversationId

The conversation ID which the message tied to

sender

The user ID of the sender

createdAt

The created datetime

state

The status of the message:
- INITIALIZE(state = 0): The message is initialized
- SENDING(state = 1): The message is sent by the sender
- SENT(state = 2): The message is sent to Stringee server
- DELIVERED(state = 3): The message is delivered to the recipient
- READ(state = 4): The message is read by the recipient

sequence

The sequence of the message

type

The type of the message: - type = 1: Text. - type = 2: Photo. - type = 3: Video. - type = 4: Audio. - type = 5: File. - type = 6: Link. - type = 7: Conversation creation notification. - type = 8: Conversation rename notification. - type = 9: File. - type = 10: Contact. - type = 100: Notification

text

The content of the message