blob: e7b433d880cd906474d8165a1ec91bdc28d313b8 (
plain) (
tree)
|
|
import { AccountBlock as AccountBlockServer } from '../../../../../shared'
import { Account } from '../account/account.model'
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
}
}
|