Files
lemon-imui/packages/message-type.txt
T
2019-05-06 20:27:53 +08:00

48 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
*
textMessage = {
msgId: "msgid",
status: "send_going",
msgType: "text",
isOutgoing: true,
text: "text",
fromUser: {},
extras: {}// option
}
imageMessage = {
msgId: "msgid",
msgType: "image",
isOutGoing: true,
mediaPath: "image path",
fromUser: {}
extras: {}// option
}
videoMessage = { // video message
msgId: "msgid",
status: "send_failed",
msgType: "video",
isOutGoing: true,
druation: number,
mediaPath: "voice path",
fromUser: {},
extras: {}// option
}
customMessage = { // custom message
msgId: "msgid",
msgType: "custom",
status: "send_failed",
isOutgoing: true,
contentSize: {height: 100, width: 100},
content: "<h1>custom message will render html string</h1>", // content is html format, avoid to use <script>
fromUser: {},
extras: {}// option
}
eventMessage = { // event message
msgId: "msgid",
msgType: "event",
text: "the event text"
}
*/