aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-03-23 10:14:05 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-03-31 10:29:24 +0200
commit8165d00ac6263cf3c0d61d450960ef36635084ff (patch)
treec0587121cd8dbdfc246a5bc74c08805830140a77 /shared/models/videos
parent628c155338cf106365a06ca021b9f244b784c003 (diff)
downloadPeerTube-8165d00ac6263cf3c0d61d450960ef36635084ff.tar.gz
PeerTube-8165d00ac6263cf3c0d61d450960ef36635084ff.tar.zst
PeerTube-8165d00ac6263cf3c0d61d450960ef36635084ff.zip
View stats for channels
Diffstat (limited to 'shared/models/videos')
-rw-r--r--shared/models/videos/channel/video-channel.model.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/models/videos/channel/video-channel.model.ts b/shared/models/videos/channel/video-channel.model.ts
index de4c26b3d..5fe6609d9 100644
--- a/shared/models/videos/channel/video-channel.model.ts
+++ b/shared/models/videos/channel/video-channel.model.ts
@@ -2,12 +2,18 @@ import { Actor } from '../../actors/actor.model'
2import { Account } from '../../actors/index' 2import { Account } from '../../actors/index'
3import { Avatar } from '../../avatars' 3import { Avatar } from '../../avatars'
4 4
5export type viewsPerTime = {
6 date: Date
7 views: number
8}
9
5export interface VideoChannel extends Actor { 10export interface VideoChannel extends Actor {
6 displayName: string 11 displayName: string
7 description: string 12 description: string
8 support: string 13 support: string
9 isLocal: boolean 14 isLocal: boolean
10 ownerAccount?: Account 15 ownerAccount?: Account
16 viewsPerDay?: viewsPerTime[] // chronologically ordered
11} 17}
12 18
13export interface VideoChannelSummary { 19export interface VideoChannelSummary {