2022-02-24 20:50:19 +01:00
|
|
|
import { StateService as StateServiceAbstraction } from "jslib-common/abstractions/state.service";
|
|
|
|
import { GlobalState } from "jslib-common/models/domain/globalState";
|
2022-01-12 17:37:23 +01:00
|
|
|
import { StateService as BaseStateService } from "jslib-common/services/state.service";
|
|
|
|
|
|
|
|
import { Account } from "../models/account";
|
|
|
|
|
2022-02-03 20:39:49 +01:00
|
|
|
export class StateService
|
|
|
|
extends BaseStateService<GlobalState, Account>
|
|
|
|
implements StateServiceAbstraction
|
|
|
|
{
|
2022-01-12 17:37:23 +01:00
|
|
|
async addAccount(account: Account) {
|
|
|
|
// Apply desktop overides to default account values
|
|
|
|
account = new Account(account);
|
|
|
|
await super.addAccount(account);
|
|
|
|
}
|
|
|
|
}
|