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








                               

                          
                                     
                      
                  

 



















                                    

                                                                                                
                                         
                       
                                    
 
import { ResultList } from '../../common'
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
  deletedAt: Date | string
  isDeleted: boolean
  totalRepliesFromVideoAuthor: number
  totalReplies: number
  account: Account
}

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
  }
}

export type VideoCommentThreads = ResultList<VideoComment> & { totalNotDeletedComments: number }

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