1
0
Fork 0
peertube/shared/models/videos/comment/video-comment.model.ts

46 lines
881 B
TypeScript
Raw Normal View History

2021-07-28 08:46:32 +00:00
import { ResultList } from '../../common'
2021-05-11 09:27:40 +00:00
import { Account } from '../../actors'
2018-01-03 16:25:47 +00:00
2017-12-22 09:50:07 +00:00
export interface VideoComment {
id: number
url: string
text: string
threadId: number
inReplyToCommentId: number
videoId: number
createdAt: Date | string
updatedAt: Date | string
deletedAt: Date | string
isDeleted: boolean
totalRepliesFromVideoAuthor: number
2017-12-27 15:11:53 +00:00
totalReplies: number
2018-01-03 16:25:47 +00:00
account: Account
2017-12-22 09:50:07 +00:00
}
2020-11-13 15:38:23 +00:00
export interface VideoCommentAdmin {
id: number
url: string
text: string
threadId: number
inReplyToCommentId: number
createdAt: Date | string
updatedAt: Date | string
account: Account
video: {
id: number
uuid: string
name: string
}
}
2021-07-09 12:15:11 +00:00
export type VideoCommentThreads = ResultList<VideoComment> & { totalNotDeletedComments: number }
2017-12-22 11:10:40 +00:00
export interface VideoCommentThreadTree {
2017-12-22 09:50:07 +00:00
comment: VideoComment
2017-12-22 11:10:40 +00:00
children: VideoCommentThreadTree[]
2017-12-22 09:50:07 +00:00
}