using System.Threading; using System.Threading.Tasks; namespace AsbCloudApp.Services { public interface IUserSettingsRepository { public const int ErrorKeyNotFound = -1; public const int ErrorKeyIsUsed = -2; Task GetOrDefaultAsync(int userId, string key, CancellationToken token); Task InsertAsync(int userId, string key, object value, CancellationToken token); Task UpdateAsync(int userId, string key, object value, CancellationToken token); Task DeleteAsync(int userId, string key, CancellationToken token); } }