projects/UILibrary/src/app/models/chat.message.ts
Properties |
text |
text:
|
Type : string
|
timestamp |
timestamp:
|
Type : string
|
Optional |
type |
type:
|
Type : IChatMessageType
|
Optional |
What type of chat message. Defaults to OTHER_PERSON |
userIcon |
userIcon:
|
Type : URL
|
Optional |
username |
username:
|
Type : string
|
Optional |
export interface IChatMessage {
username?: string;
text: string;
/**
* What type of chat message. Defaults to OTHER_PERSON
*/
type?: IChatMessageType;
timestamp?: string;
userIcon?: URL;
}
export enum IChatMessageType {
AGENT = 'AGENT',
OTHER_PERSON = 'OTHER_PERSON',
INFORMATION = 'INFORMATION'
}