]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/account/account.model.ts
Merge branch 'release/v1.0.0' into develop
[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
9 userId?: number
10
11 constructor (hash: ServerAccount) {
12 super(hash)
13
14 this.displayName = hash.displayName
15 this.description = hash.description
16 this.userId = hash.userId
17 this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host)
18 }
19 }