blob: a5bde327a9636b0926362ff661438cfba0ece8b4 (
plain) (
tree)
|
|
import { AccountBlock as AccountBlockServer } from '@peertube/peertube-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
}
}
|