]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - 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
1 import { Account as ServerAccount } from '../../../../../shared/models/actors/account.model'
2 import { Actor } from '../actor/actor.model'
3
4 export class Account extends Actor implements ServerAccount {
5 displayName: string
6 description: string
7 nameWithHost: string
8 muted: boolean
9 mutedServer: boolean
10
11 userId?: number
12
13 constructor (hash: ServerAccount) {
14 super(hash)
15
16 this.displayName = hash.displayName
17 this.description = hash.description
18 this.userId = hash.userId
19 this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host)
20
21 this.muted = false
22 this.mutedServer = false
23 }
24 }