new Message()
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
uuid |
string | Message ID |
type |
int | Type identifier for message. Possible values are: Message#TYPE_TEXT |
content |
string | text message content |
thumb_300_url |
string | image message thumb file url |
thumb_100_url |
string | image message thumb file url |
original_url |
string | image message original file url |
file_url |
string | file message link to file |
sender_flag |
int | indicates if message was sent by visitor. Message#SENDER_VISITOR |
sender_id |
string | message sender ID. Refer to manager or visitor, depends on |
sent_at |
Date | message sent at date time. |
Members
(static) TYPE_TEXT :number
- Source:
Message type for text messages.
Type:
- number
Methods
(static) buildFromInfo()
- Source:
Static builder from API data object
(static) buildText(text) → {Message}
- Source:
Static constructor for building text messages
Parameters:
| Name | Type | Description |
|---|---|---|
text |
Returns:
- Type
- Message