]>
Commit | Line | Data |
---|---|---|
67ed6552 C |
1 | import { AccountBlock as AccountBlockServer } from '@shared/models' |
2 | import { Account } from '@app/shared/shared-main' | |
af5767ff C |
3 | |
4 | export class AccountBlock implements AccountBlockServer { | |
5 | byAccount: Account | |
6 | blockedAccount: Account | |
7 | createdAt: Date | string | |
8 | ||
9 | constructor (block: AccountBlockServer) { | |
10 | this.byAccount = new Account(block.byAccount) | |
11 | this.blockedAccount = new Account(block.blockedAccount) | |
12 | this.createdAt = block.createdAt | |
13 | } | |
65b21c96 | 14 | } |