aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/comment/video-comment.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-11 11:27:40 +0200
committerChocobozzz <me@florianbigard.com>2021-05-11 11:32:31 +0200
commit2b02c520e66ea452687cab39401b371711caa9ed (patch)
treeecc216ee5a7453384ee1aad6e3a825b1c058f001 /shared/models/videos/comment/video-comment.model.ts
parent7d9ba5c08999c6482f0bc5e0c09c6f55b7724090 (diff)
downloadPeerTube-2b02c520e66ea452687cab39401b371711caa9ed.tar.gz
PeerTube-2b02c520e66ea452687cab39401b371711caa9ed.tar.zst
PeerTube-2b02c520e66ea452687cab39401b371711caa9ed.zip
Cleanup shared models
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}