refactor: update INativeStorageService abstraction
This commit is contained in:
@@ -4,13 +4,11 @@ namespace NexusReader.Application.Abstractions.Services;
|
||||
|
||||
public interface INativeStorageService
|
||||
{
|
||||
Result SaveString(string key, string value);
|
||||
Result<string?> GetString(string key);
|
||||
Result SaveBool(string key, bool value);
|
||||
Result<bool> GetBool(string key, bool defaultValue = false);
|
||||
Result Remove(string key);
|
||||
|
||||
Task<Result<string>> GetSecureString(string key);
|
||||
Task<Result> SaveSecureString(string key, string value);
|
||||
Task<Result<string?>> GetSecureString(string key);
|
||||
Result RemoveSecure(string key);
|
||||
Task<Result<bool>> GetBool(string key);
|
||||
Task<Result> SaveBool(string key, bool value);
|
||||
Task<Result<int>> GetInt(string key);
|
||||
Task<Result> SaveInt(string key, int value);
|
||||
Task<Result> ClearAll();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user