]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/account/account.model.ts
Add user moderation in the account page
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / account / account.model.ts
CommitLineData
50d6de9c 1import { Account as ServerAccount } from '../../../../../shared/models/actors/account.model'
d3e91a5f 2import { Actor } from '../actor/actor.model'
b1fa3eba 3
d3e91a5f 4export 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}