mirror of
https://github.com/bitwarden/mobile
synced 2025-12-28 22:23:35 +00:00
Added icons for iOS. Broke out data access into repositories. Added syncing service.
This commit is contained in:
19
src/App/Abstractions/Repositories/IApiRepository.cs
Normal file
19
src/App/Abstractions/Repositories/IApiRepository.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.App.Models.Api;
|
||||
|
||||
namespace Bit.App.Abstractions
|
||||
{
|
||||
public interface IApiRepository<TRequest, TResponse, TId>
|
||||
where TRequest : class
|
||||
where TResponse : class
|
||||
where TId : IEquatable<TId>
|
||||
{
|
||||
Task<ApiResult<TResponse>> GetByIdAsync(TId id);
|
||||
Task<ApiResult<ListResponse<TResponse>>> GetAsync();
|
||||
Task<ApiResult<TResponse>> PostAsync(TRequest requestObj);
|
||||
Task<ApiResult<TResponse>> PutAsync(TId id, TRequest requestObj);
|
||||
Task<ApiResult<object>> DeleteAsync(TId id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user