MobApp/Services/IDataStore.cs

16 lines
403 B
C#
Raw Permalink Normal View History

2025-03-13 11:23:08 +03:00
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace MobApp.Services
{
public interface IDataStore<T>
{
Task<bool> AddItemAsync(T item);
Task<bool> UpdateItemAsync(T item);
Task<bool> DeleteItemAsync(string id);
Task<T> GetItemAsync(string id);
Task<IEnumerable<T>> GetItemsAsync(bool forceRefresh = false);
}
}