aboutsummaryrefslogtreecommitdiff
path: root/src/models/Thread.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/Thread.ts')
-rw-r--r--src/models/Thread.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/models/Thread.ts b/src/models/Thread.ts
new file mode 100644
index 0000000..e5d9f66
--- /dev/null
+++ b/src/models/Thread.ts
@@ -0,0 +1,19 @@
+export type Comment = {
+ id: string;
+ commentCreator: string;
+ commentText: string;
+ creationDate: number;
+ imageId: string;
+ fileType: string //image or video
+};
+
+export type Thread = {
+ id: string;
+ threadName: string;
+ threadCreator: string;
+ threadText: string;
+ comments: Comment[];
+ creationDate: number;
+ imageId: string;
+ fileType: string; //image or video
+};