aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/user-video-rate.model.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-17 11:28:11 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-17 11:28:11 +0200
commit154898b0b7bc1af41fc5a94974e338a3590c90f3 (patch)
tree5fb90f66da7587aed53c99ac1884c7acd0c1f7ca /shared/models/user-video-rate.model.ts
parentdf98563e2104b82b119c00a3cd83cd0dc1242d25 (diff)
downloadPeerTube-154898b0b7bc1af41fc5a94974e338a3590c90f3.tar.gz
PeerTube-154898b0b7bc1af41fc5a94974e338a3590c90f3.tar.zst
PeerTube-154898b0b7bc1af41fc5a94974e338a3590c90f3.zip
Share models between server and client
Diffstat (limited to 'shared/models/user-video-rate.model.ts')
-rw-r--r--shared/models/user-video-rate.model.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/models/user-video-rate.model.ts b/shared/models/user-video-rate.model.ts
index d48774a4b..b770f4073 100644
--- a/shared/models/user-video-rate.model.ts
+++ b/shared/models/user-video-rate.model.ts
@@ -1 +1,7 @@
1export type VideoRateType = 'like' | 'dislike' 1export type VideoRateType = 'like' | 'dislike'
2export type UserVideoRateType = 'like' | 'dislike' | 'none'
3
4export interface UserVideoRate {
5 videoId: string
6 rating: UserVideoRateType
7}