mirror of
https://github.com/bitwarden/mobile
synced 2026-01-19 00:43:18 +00:00
Added icons for iOS. Broke out data access into repositories. Added syncing service.
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.App.Models.Api;
|
||||
|
||||
namespace Bit.App.Abstractions
|
||||
{
|
||||
public interface IApiService
|
||||
{
|
||||
HttpClient Client { get; set; }
|
||||
|
||||
Task<ApiResult<T>> HandleErrorAsync<T>(HttpResponseMessage response);
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ namespace Bit.App.Abstractions
|
||||
{
|
||||
public interface ISiteService
|
||||
{
|
||||
Task<Site> GetByIdAsync(string id);
|
||||
Task<IEnumerable<Site>> GetAllAsync();
|
||||
Task<ApiResult<SiteResponse>> SaveAsync(Site site);
|
||||
Task<ApiResult<object>> DeleteAsync(string id);
|
||||
|
||||
9
src/App/Abstractions/Services/ISyncService.cs
Normal file
9
src/App/Abstractions/Services/ISyncService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bit.App.Abstractions
|
||||
{
|
||||
public interface ISyncService
|
||||
{
|
||||
Task<bool> SyncAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user