Permalink
Browse files

Step 2.9: Create models file with declarations of Chat, Message and M…

…essageType
  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 64aa460 commit 79e50d57fc27a0c3b48d013d0e1ee3e24eac7a45
Showing with 18 additions and 0 deletions.
  1. +18 −0 src/models.ts
View
@@ -0,0 +1,18 @@
export enum MessageType {
TEXT = <any>'text'
}
export interface Chat {
_id?: string;
title?: string;
picture?: string;
lastMessage?: Message;
}
export interface Message {
_id?: string;
chatId?: string;
content?: string;
createdAt?: Date;
type?: MessageType
}

0 comments on commit 79e50d5

Please sign in to comment.