aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-moderation/account-block.model.ts
blob: 8f76c69dce1f924ced885596fe4b66e4c05ae558 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13

                                                                   










                                                           
 
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
  }
}