// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. using System.Collections.Generic; using System.Threading.Tasks; namespace MyDriving.DataStore.Abstractions { public interface IBaseStore { string Identifier { get; } Task InitializeStoreAsync(); Task> GetItemsAsync(int skip = 0, int take = 100, bool forceRefresh = false); Task GetItemAsync(string id); Task InsertAsync(T item); Task UpdateAsync(T item); Task RemoveAsync(T item); Task RemoveItemsAsync(IEnumerable items); Task SyncAsync(); Task DropTable(); } }