]>
Commit | Line | Data |
---|---|---|
50d6de9c | 1 | import { Account as ServerAccount } from '../../../../../shared/models/actors/account.model' |
d3e91a5f | 2 | import { Actor } from '../actor/actor.model' |
b1fa3eba | 3 | |
d3e91a5f | 4 | export class Account extends Actor implements ServerAccount { |
c5911fd3 | 5 | displayName: string |
2422c46b | 6 | description: string |
ad9e39fb | 7 | nameWithHost: string |
65b21c96 C |
8 | mutedByUser: boolean |
9 | mutedByInstance: boolean | |
10 | mutedServerByUser: boolean | |
11 | mutedServerByInstance: boolean | |
6b738c7a | 12 | |
79bd2632 C |
13 | userId?: number |
14 | ||
6b738c7a | 15 | constructor (hash: ServerAccount) { |
d3e91a5f C |
16 | super(hash) |
17 | ||
6b738c7a C |
18 | this.displayName = hash.displayName |
19 | this.description = hash.description | |
79bd2632 | 20 | this.userId = hash.userId |
ad9e39fb | 21 | this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host) |
af5767ff | 22 | |
65b21c96 C |
23 | this.mutedByUser = false |
24 | this.mutedByInstance = false | |
25 | this.mutedServerByUser = false | |
26 | this.mutedServerByInstance = false | |
6b738c7a | 27 | } |
b1fa3eba | 28 | } |