1
0
Fork 0
peertube/client/src/app/shared/shared-moderation/account-block.model.ts

15 lines
449 B
TypeScript

import { AccountBlock as AccountBlockServer } from '@shared/models'
import { Account } from '@app/shared/shared-main'
export class AccountBlock implements AccountBlockServer {
byAccount: Account
blockedAccount: Account
createdAt: Date | string
constructor (block: AccountBlockServer) {
this.byAccount = new Account(block.byAccount)
this.blockedAccount = new Account(block.blockedAccount)
this.createdAt = block.createdAt
}
}