View stats for channels

This commit is contained in:
Rigel Kent
2020-03-23 10:14:05 +01:00
committed by Chocobozzz
parent 628c155338
commit 8165d00ac6
7 changed files with 212 additions and 51 deletions

View File

@@ -2,12 +2,18 @@ import { Actor } from '../../actors/actor.model'
import { Account } from '../../actors/index'
import { Avatar } from '../../avatars'
export type viewsPerTime = {
date: Date
views: number
}
export interface VideoChannel extends Actor {
displayName: string
description: string
support: string
isLocal: boolean
ownerAccount?: Account
viewsPerDay?: viewsPerTime[] // chronologically ordered
}
export interface VideoChannelSummary {