From 59c76ffa8f503e962d517c78f033f1beccb1de1a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 14 Aug 2018 14:59:53 +0200 Subject: Flat shared module directory --- shared/models/videos/rate/user-video-rate-update.model.ts | 5 +++++ shared/models/videos/rate/user-video-rate.model.ts | 6 ++++++ shared/models/videos/rate/user-video-rate.type.ts | 1 + 3 files changed, 12 insertions(+) create mode 100644 shared/models/videos/rate/user-video-rate-update.model.ts create mode 100644 shared/models/videos/rate/user-video-rate.model.ts create mode 100644 shared/models/videos/rate/user-video-rate.type.ts (limited to 'shared/models/videos/rate') 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 @@ +import { UserVideoRateType } from './user-video-rate.type' + +export interface UserVideoRateUpdate { + rating: UserVideoRateType +} 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 @@ +import { UserVideoRateType } from './user-video-rate.type' + +export interface UserVideoRate { + videoId: number + rating: UserVideoRateType +} 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' -- cgit v1.2.3