]>
Commit | Line | Data |
---|---|---|
50d6de9c | 1 | import { Account } from '../actors' |
59c76ffa | 2 | import { VideoChannel } from '../videos/channel/video-channel.model' |
954605a8 | 3 | import { UserRole } from './user-role' |
0883b324 | 4 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
cef534ed | 5 | import { UserNotificationSetting } from './user-notification-setting.model' |
1eddc9a7 | 6 | import { UserAdminFlag } from './user-flag.model' |
ee9e7b61 | 7 | |
69818c93 C |
8 | export interface User { |
9 | id: number | |
10 | username: string | |
11 | email: string | |
fc2ec87a | 12 | emailVerified: boolean |
0883b324 | 13 | nsfwPolicy: NSFWPolicyType |
276d9652 | 14 | |
1eddc9a7 C |
15 | adminFlags?: UserAdminFlag |
16 | ||
7efe153b | 17 | autoPlayVideo: boolean |
276d9652 C |
18 | webTorrentEnabled: boolean |
19 | videosHistoryEnabled: boolean | |
20 | ||
ee9e7b61 | 21 | role: UserRole |
1eddc9a7 C |
22 | roleLabel: string |
23 | ||
b0f9f39e | 24 | videoQuota: number |
bee0abff | 25 | videoQuotaDaily: number |
2295ce6c C |
26 | createdAt: Date |
27 | account: Account | |
cef534ed | 28 | notificationSettings?: UserNotificationSetting |
72c7248b | 29 | videoChannels?: VideoChannel[] |
eacb25c4 C |
30 | |
31 | blocked: boolean | |
32 | blockedReason?: string | |
a76138ff C |
33 | |
34 | videoQuotaUsed?: number | |
69818c93 | 35 | } |