]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/account/account.model.ts
Add checkbox focus shadows, and admin resolution descriptions
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / account / account.model.ts
CommitLineData
50d6de9c 1import { Account as ServerAccount } from '../../../../../shared/models/actors/account.model'
d3e91a5f 2import { Actor } from '../actor/actor.model'
b1fa3eba 3
d3e91a5f 4export class Account extends Actor implements ServerAccount {
c5911fd3 5 displayName: string
2422c46b 6 description: string
ad9e39fb 7 nameWithHost: string
e379f813 8 nameWithHostForced: string
65b21c96
C
9 mutedByUser: boolean
10 mutedByInstance: boolean
11 mutedServerByUser: boolean
12 mutedServerByInstance: boolean
6b738c7a 13
79bd2632
C
14 userId?: number
15
6b738c7a 16 constructor (hash: ServerAccount) {
d3e91a5f
C
17 super(hash)
18
6b738c7a
C
19 this.displayName = hash.displayName
20 this.description = hash.description
79bd2632 21 this.userId = hash.userId
ad9e39fb 22 this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host)
e379f813 23 this.nameWithHostForced = Actor.CREATE_BY_STRING(this.name, this.host, true)
af5767ff 24
65b21c96
C
25 this.mutedByUser = false
26 this.mutedByInstance = false
27 this.mutedServerByUser = false
28 this.mutedServerByInstance = false
6b738c7a 29 }
b1fa3eba 30}