@hsaadawy/ngx-chat
Version:
35 lines (34 loc) • 845 B
TypeScript
export declare enum MessageState {
/**
* Not yet sent
*/
SENDING = "sending",
/**
* Sent, but neither received nor seen by the recipient
*/
SENT = "sent",
/**
* The recipient client has received the message but the recipient has not seen it yet
*/
RECIPIENT_RECEIVED = "recipientReceived",
/**
* The message has been seen by the recipient
*/
RECIPIENT_SEEN = "recipientSeen"
}
export interface Message {
direction: Direction;
body: string;
datetime: Date;
id?: string;
delayed: boolean;
fromArchive: boolean;
/**
* if no explicit state is set for the message, use implicit contact message states instead.
*/
state?: MessageState;
}
export declare enum Direction {
in = "in",
out = "out"
}