kin-android / org.kin.sdk.base.storage / KinFileStorage
class KinFileStorage :
Storage
Name | Summary |
---|---|
Builder | class Builder |
Name | Summary |
---|---|
addAccount | fun addAccount(account: KinAccount ): Boolean |
advanceSequence | fun advanceSequence(id: Id): KinAccount ? |
deductFromAccountBalance | fun deductFromAccountBalance(accountId: Id, amount: KinAmount ): Promise < Optional < KinAccount >> |
deleteAllStorage | fun deleteAllStorage(accountId: Id): Promise < Boolean > |
getAccount | fun getAccount(accountId: Id): KinAccount ? |
getAllAccountIds | fun getAllAccountIds(): List <Id> |
getMinFee | fun getMinFee(): Promise < Optional < QuarkAmount >> |
getStoredAccount | fun getStoredAccount(accountId: Id): Promise < Optional < KinAccount >> |
getStoredTransactions | fun getStoredTransactions(accountId: Id): Promise < KinTransactions ?> |
getTransactions | fun getTransactions(key: Id): KinTransactions ? |
insertNewTransactionInStorage | fun insertNewTransactionInStorage(accountId: Id, newTransaction: KinTransaction ): Promise < List < KinTransaction >> |
putTransactions | fun putTransactions(key: Id, transactions: KinTransactions ): Unit |
removeAccount | fun removeAccount(accountId: Id): Boolean |
removeAllTransactions | fun removeAllTransactions(key: Id): Boolean |
setMinFee | fun setMinFee(minFee: QuarkAmount ): Promise < Optional < QuarkAmount >> |
storeTransactions | fun storeTransactions(accountId: Id, transactions: List < KinTransaction >): Promise < List < KinTransaction >> |
updateAccount | fun updateAccount(account: KinAccount ): Boolean |
updateAccountInStorage | fun updateAccountInStorage(account: KinAccount ): Promise < KinAccount > |
upsertNewTransactionsInStorage | fun upsertNewTransactionsInStorage(accountId: Id, newTransactions: List < KinTransaction >): Promise < List < KinTransaction >> |
upsertOldTransactionsInStorage | fun upsertOldTransactionsInStorage(accountId: Id, oldTransactions: List < KinTransaction >): Promise < List < KinTransaction >> |
Name | Summary |
---|---|
directoryNameForAllAccounts | const val directoryNameForAllAccounts: String |
fileNameForAccountInfo | const val fileNameForAccountInfo: String |
fileNameForConfig | const val fileNameForConfig: String |