1 import { AccountBlock as AccountBlockServer } from '../../../../../shared'
2 import { Account } from '../account/account.model'
4 export class AccountBlock implements AccountBlockServer {
6 blockedAccount: Account
7 createdAt: Date | string
9 constructor (block: AccountBlockServer) {
10 this.byAccount = new Account(block.byAccount)
11 this.blockedAccount = new Account(block.blockedAccount)
12 this.createdAt = block.createdAt