48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
Plaintext
/**
|
||
*
|
||
textMessage = {
|
||
msgId: "msgid",
|
||
status: "send_going",
|
||
type: "text",
|
||
isOutgoing: true,
|
||
text: "text",
|
||
fromUser: {},
|
||
extras: {}// option
|
||
}
|
||
|
||
imageMessage = {
|
||
msgId: "msgid",
|
||
type: "image",
|
||
isOutGoing: true,
|
||
mediaPath: "image path",
|
||
fromUser: {},
|
||
extras: {}// option
|
||
}
|
||
|
||
videoMessage = { // video message
|
||
msgId: "msgid",
|
||
status: "send_failed",
|
||
type: "video",
|
||
isOutGoing: true,
|
||
druation: number,
|
||
mediaPath: "voice path",
|
||
fromUser: {},
|
||
extras: {}// option
|
||
}
|
||
customMessage = { // custom message
|
||
msgId: "msgid",
|
||
type: "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",
|
||
type: "event",
|
||
text: "the event text"
|
||
}
|
||
|
||
*/ |