1 package org
.asamk
.signal
.manager
.internal
;
3 import org
.asamk
.signal
.manager
.helper
.AccountFileUpdater
;
4 import org
.asamk
.signal
.manager
.storage
.accounts
.AccountsStore
;
5 import org
.whispersystems
.signalservice
.api
.push
.ACI
;
7 public class AccountFileUpdaterImpl
implements AccountFileUpdater
{
9 private final AccountsStore accountsStore
;
10 private final String accountPath
;
12 public AccountFileUpdaterImpl(final AccountsStore accountsStore
, final String accountPath
) {
13 this.accountsStore
= accountsStore
;
14 this.accountPath
= accountPath
;
18 public void updateAccountIdentifiers(final String newNumber
, final ACI newAci
) {
19 accountsStore
.updateAccount(accountPath
, newNumber
, newAci
);
23 public void removeAccount() {
24 accountsStore
.removeAccount(accountPath
);