]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/account/account.model.ts
Add user/instance block by users in the client
[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
af5767ff
C
8 muted: boolean
9 mutedServer: boolean
6b738c7a 10
79bd2632
C
11 userId?: number
12
6b738c7a 13 constructor (hash: ServerAccount) {
d3e91a5f
C
14 super(hash)
15
6b738c7a
C
16 this.displayName = hash.displayName
17 this.description = hash.description
79bd2632 18 this.userId = hash.userId
ad9e39fb 19 this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host)
af5767ff
C
20
21 this.muted = false
22 this.mutedServer = false
6b738c7a 23 }
b1fa3eba 24}