aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/videos/video-comment.model.ts
blob: 7ac4024fbd7c69c7e95ee94e9f27aa6fa4099262 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                   








                               
                      
                  

 
                                         
                       
                                    




                                     
import { Account } from '../actors'

export interface VideoComment {
  id: number
  url: string
  text: string
  threadId: number
  inReplyToCommentId: number
  videoId: number
  createdAt: Date | string
  updatedAt: Date | string
  totalReplies: number
  account: Account
}

export interface VideoCommentThreadTree {
  comment: VideoComment
  children: VideoCommentThreadTree[]
}

export interface VideoCommentCreate {
  text: string
}