import { IUser } from 'app/entities/user/user.model' ; import { IOperation } from 'app/entities/operation/operation.model' ; export interface IBankAccount { id ? : number ; name ? : string ; balance ? : number ; user ? : IUser | null ; operations ? : IOperation [ ] | null ; } export class BankAccount implements IBankAccount { constructor ( public id ? , public name ? , public balance ? , public user ? , public operations ? ) { } } export function getBankAccountIdentifier ( bankAccount ) { return bankAccount . id ; }