aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/comment/video-comment.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/videos/comment/video-comment.model.ts')
-rw-r--r--shared/models/videos/comment/video-comment.model.ts46
1 files changed, 46 insertions, 0 deletions
diff --git a/shared/models/videos/comment/video-comment.model.ts b/shared/models/videos/comment/video-comment.model.ts
new file mode 100644
index 000000000..79c0e4c0a
--- /dev/null
+++ b/shared/models/videos/comment/video-comment.model.ts
@@ -0,0 +1,46 @@
1import { Account } from '../../actors'
2
3export interface VideoComment {
4 id: number
5 url: string
6 text: string
7 threadId: number
8 inReplyToCommentId: number
9 videoId: number
10 createdAt: Date | string
11 updatedAt: Date | string
12 deletedAt: Date | string
13 isDeleted: boolean
14 totalRepliesFromVideoAuthor: number
15 totalReplies: number
16 account: Account
17}
18
19export interface VideoCommentAdmin {
20 id: number
21 url: string
22 text: string
23
24 threadId: number
25 inReplyToCommentId: number
26
27 createdAt: Date | string
28 updatedAt: Date | string
29
30 account: Account
31
32 video: {
33 id: number
34 uuid: string
35 name: string
36 }
37}
38
39export interface VideoCommentThreadTree {
40 comment: VideoComment
41 children: VideoCommentThreadTree[]
42}
43
44export interface VideoCommentCreate {
45 text: string
46}