bitwarden-estensione-browser/src/models/account.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
829 B
TypeScript
Raw Normal View History

2021-12-21 20:48:22 +01:00
import { Account as BaseAccount } from "jslib-common/models/domain/account";
2021-12-16 15:39:46 +01:00
2021-12-21 20:48:22 +01:00
import { BrowserComponentState } from "./browserComponentState";
import { BrowserGroupingsComponentState } from "./browserGroupingsComponentState";
import { BrowserSendComponentState } from "./browserSendComponentState";
2021-12-16 15:39:46 +01:00
export class Account extends BaseAccount {
2021-12-21 20:48:22 +01:00
groupings?: BrowserGroupingsComponentState;
send?: BrowserSendComponentState;
ciphers?: BrowserComponentState;
sendType?: BrowserComponentState;
2021-12-16 15:39:46 +01:00
2021-12-21 20:48:22 +01:00
constructor(init: Partial<Account>) {
super(init);
this.groupings = init.groupings ?? new BrowserGroupingsComponentState();
this.send = init.send ?? new BrowserSendComponentState();
this.ciphers = init.ciphers ?? new BrowserComponentState();
this.sendType = init.sendType ?? new BrowserComponentState();
}
2021-12-16 15:39:46 +01:00
}