videoQuotaDaily: number
videoQuotaUsed?: number
videoQuotaUsedDaily?: number
+ videosCount?: number
+ videoAbusesCount?: number
+ videoAbusesAcceptedCount?: number
+ videoAbusesCreatedCount?: number
+ videoCommentsCount?: number
theme: string
noInstanceConfigWarningModal: boolean
noWelcomeModal: boolean
+ pluginAuth: string | null
+
createdAt: Date
constructor (hash: Partial<UserServerModel>) {
this.videoQuotaDaily = hash.videoQuotaDaily
this.videoQuotaUsed = hash.videoQuotaUsed
this.videoQuotaUsedDaily = hash.videoQuotaUsedDaily
+ this.videosCount = hash.videosCount
+ this.videoAbusesCount = hash.videoAbusesCount
+ this.videoAbusesAcceptedCount = hash.videoAbusesAcceptedCount
+ this.videoAbusesCreatedCount = hash.videoAbusesCreatedCount
+ this.videoCommentsCount = hash.videoCommentsCount
this.nsfwPolicy = hash.nsfwPolicy
this.webTorrentEnabled = hash.webTorrentEnabled
this.createdAt = hash.createdAt
+ this.pluginAuth = hash.pluginAuth
+
if (hash.account !== undefined) {
this.account = new Account(hash.account)
}