2020-08-05 14:06:42 -07:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
2020-07-09 13:14:53 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wox.Infrastructure.Storage
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IRepository<T>
|
|
|
|
|
|
{
|
|
|
|
|
|
void Add(T insertedItem);
|
2020-08-06 11:28:13 -07:00
|
|
|
|
|
2020-07-09 13:14:53 -07:00
|
|
|
|
void Remove(T removedItem);
|
2020-08-06 11:28:13 -07:00
|
|
|
|
|
2020-07-09 13:14:53 -07:00
|
|
|
|
bool Contains(T item);
|
2020-08-06 11:28:13 -07:00
|
|
|
|
|
2020-07-09 13:14:53 -07:00
|
|
|
|
void Set(IList<T> list);
|
2020-08-06 11:28:13 -07:00
|
|
|
|
|
2020-07-09 13:14:53 -07:00
|
|
|
|
bool Any();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|