]>
Commit | Line | Data |
---|---|---|
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 | ||
9 | constructor (hash: ServerAccount) { | |
10 | super(hash) | |
11 | ||
12 | this.displayName = hash.displayName | |
13 | this.description = hash.description | |
14 | this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host) | |
15 | } | |
16 | } |