diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-14 14:59:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-14 15:00:01 +0200 |
commit | 59c76ffa8f503e962d517c78f033f1beccb1de1a (patch) | |
tree | d567991b10cffd59322dd679d5188e7d1ec7ddce /shared/models/videos/rate | |
parent | 13b6dc1f3437560c55a5dfc3a94a2b162654e5c9 (diff) | |
download | PeerTube-59c76ffa8f503e962d517c78f033f1beccb1de1a.tar.gz PeerTube-59c76ffa8f503e962d517c78f033f1beccb1de1a.tar.zst PeerTube-59c76ffa8f503e962d517c78f033f1beccb1de1a.zip |
Flat shared module directory
Diffstat (limited to 'shared/models/videos/rate')
-rw-r--r-- | shared/models/videos/rate/user-video-rate-update.model.ts | 5 | ||||
-rw-r--r-- | shared/models/videos/rate/user-video-rate.model.ts | 6 | ||||
-rw-r--r-- | shared/models/videos/rate/user-video-rate.type.ts | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/shared/models/videos/rate/user-video-rate-update.model.ts b/shared/models/videos/rate/user-video-rate-update.model.ts new file mode 100644 index 000000000..85e89271a --- /dev/null +++ b/shared/models/videos/rate/user-video-rate-update.model.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | import { UserVideoRateType } from './user-video-rate.type' | ||
2 | |||
3 | export interface UserVideoRateUpdate { | ||
4 | rating: UserVideoRateType | ||
5 | } | ||
diff --git a/shared/models/videos/rate/user-video-rate.model.ts b/shared/models/videos/rate/user-video-rate.model.ts new file mode 100644 index 000000000..d39a1c3d5 --- /dev/null +++ b/shared/models/videos/rate/user-video-rate.model.ts | |||
@@ -0,0 +1,6 @@ | |||
1 | import { UserVideoRateType } from './user-video-rate.type' | ||
2 | |||
3 | export interface UserVideoRate { | ||
4 | videoId: number | ||
5 | rating: UserVideoRateType | ||
6 | } | ||
diff --git a/shared/models/videos/rate/user-video-rate.type.ts b/shared/models/videos/rate/user-video-rate.type.ts new file mode 100644 index 000000000..a4d9c7e39 --- /dev/null +++ b/shared/models/videos/rate/user-video-rate.type.ts | |||
@@ -0,0 +1 @@ | |||
export type UserVideoRateType = 'like' | 'dislike' | 'none' | |||