]>
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 |
6b738c7a | 8 | |
79bd2632 C |
9 | userId?: number |
10 | ||
6b738c7a | 11 | constructor (hash: ServerAccount) { |
d3e91a5f C |
12 | super(hash) |
13 | ||
6b738c7a C |
14 | this.displayName = hash.displayName |
15 | this.description = hash.description | |
79bd2632 | 16 | this.userId = hash.userId |
ad9e39fb | 17 | this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host) |
6b738c7a | 18 | } |
b1fa3eba | 19 | } |