diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/users/user.model.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts index 877f1bf3a..240c7aacf 100644 --- a/client/src/app/shared/users/user.model.ts +++ b/client/src/app/shared/users/user.model.ts | |||
@@ -9,6 +9,7 @@ import { | |||
9 | import { NSFWPolicyType } from '../../../../../shared/models/videos/nsfw-policy.type' | 9 | import { NSFWPolicyType } from '../../../../../shared/models/videos/nsfw-policy.type' |
10 | import { Account } from '@app/shared/account/account.model' | 10 | import { Account } from '@app/shared/account/account.model' |
11 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' | 11 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' |
12 | import { WebTorrentPolicyType } from '../../../../../shared/models/users/user-webtorrent-policy.type' | ||
12 | 13 | ||
13 | export type UserConstructorHash = { | 14 | export type UserConstructorHash = { |
14 | id: number, | 15 | id: number, |
@@ -18,6 +19,7 @@ export type UserConstructorHash = { | |||
18 | videoQuota?: number, | 19 | videoQuota?: number, |
19 | videoQuotaDaily?: number, | 20 | videoQuotaDaily?: number, |
20 | nsfwPolicy?: NSFWPolicyType, | 21 | nsfwPolicy?: NSFWPolicyType, |
22 | webTorrentPolicy?: WebTorrentPolicyType, | ||
21 | autoPlayVideo?: boolean, | 23 | autoPlayVideo?: boolean, |
22 | createdAt?: Date, | 24 | createdAt?: Date, |
23 | account?: AccountServerModel, | 25 | account?: AccountServerModel, |
@@ -32,6 +34,7 @@ export class User implements UserServerModel { | |||
32 | email: string | 34 | email: string |
33 | role: UserRole | 35 | role: UserRole |
34 | nsfwPolicy: NSFWPolicyType | 36 | nsfwPolicy: NSFWPolicyType |
37 | webTorrentPolicy: WebTorrentPolicyType | ||
35 | autoPlayVideo: boolean | 38 | autoPlayVideo: boolean |
36 | videoQuota: number | 39 | videoQuota: number |
37 | videoQuotaDaily: number | 40 | videoQuotaDaily: number |
@@ -52,6 +55,7 @@ export class User implements UserServerModel { | |||
52 | this.videoQuota = hash.videoQuota | 55 | this.videoQuota = hash.videoQuota |
53 | this.videoQuotaDaily = hash.videoQuotaDaily | 56 | this.videoQuotaDaily = hash.videoQuotaDaily |
54 | this.nsfwPolicy = hash.nsfwPolicy | 57 | this.nsfwPolicy = hash.nsfwPolicy |
58 | this.webTorrentPolicy = hash.webTorrentPolicy | ||
55 | this.autoPlayVideo = hash.autoPlayVideo | 59 | this.autoPlayVideo = hash.autoPlayVideo |
56 | this.createdAt = hash.createdAt | 60 | this.createdAt = hash.createdAt |
57 | this.blocked = hash.blocked | 61 | this.blocked = hash.blocked |