Files
new-phone-who-dis/phone/src/common/typings/messages.ts
T

29 lines
522 B
TypeScript

export interface Message {
id: number;
message: string;
user_identifier: string;
phone_number: string;
display?: string;
avatar?: string;
isRead: boolean;
isMine: boolean;
updatedAt: string;
}
export interface MessageGroup {
groupId: string;
groupDisplay: string;
isGroupChat: boolean;
avatar?: string;
label?: string;
updatedAt: string;
}
export interface CreateMessageGroupResult {
error?: boolean;
phoneNumber?: string;
duplicate?: boolean;
groupId?: string;
mine?: boolean;
}