ChatMessage
Instances of this class represents a message of the chat. For more information about how instances of this class can be obtained see Chat#getMessages or Chat#getPendingMessages.
Method Summary
Public Methods | ||
public |
Returns the address of the composer of the message. |
|
public |
getData(): string | ChatMessageFile Returns the data of the message. |
|
public |
Returns the direction of the message. |
|
public |
Returns the ID of the message. |
|
public |
Returns a number between 0 and 100 indicating the percentage of the message that was sent. |
|
public |
Returns the current status of the message. |
|
public |
Returns the timestamp when the message was sent. |
|
public |
Returns the type of the message. |
|
public |
hasStatus(status: ChatMessageStatus): boolean Returns true when the current status of the message is the specified. |
Public Methods
public getProgress(): number source
Returns a number between 0 and 100 indicating the percentage of the message that was sent. Note that text messages can only have two values: 0 and 100.
public hasStatus(status: ChatMessageStatus): boolean source
Returns true when the current status of the message is the specified.
Params:
Name | Type | Attribute | Description |
status | ChatMessageStatus |