PeerTube/shared/models/videos/video-comment.model.ts

24 lines
437 B
TypeScript
Raw Normal View History

2018-01-03 10:25:47 -06:00
import { Account } from '../actors'
2017-12-22 03:50:07 -06:00
export interface VideoComment {
id: number
url: string
text: string
threadId: number
inReplyToCommentId: number
videoId: number
createdAt: Date | string
updatedAt: Date | string
2017-12-27 09:11:53 -06:00
totalReplies: number
2018-01-03 10:25:47 -06:00
account: Account
2017-12-22 03:50:07 -06:00
}
2017-12-22 05:10:40 -06:00
export interface VideoCommentThreadTree {
2017-12-22 03:50:07 -06:00
comment: VideoComment
2017-12-22 05:10:40 -06:00
children: VideoCommentThreadTree[]
2017-12-22 03:50:07 -06:00
}
export interface VideoCommentCreate {
text: string
}