Files
telegram-bot/Core/Option/IOptionItem.cs
T

17 lines
415 B
C#
Raw Normal View History

2023-01-05 08:01:18 +03:00
using System.Threading.Tasks;
namespace Kruzya.TelegramBot.Core.Option;
/// <summary>
/// Allows interact with option related with some chat.
/// </summary>
public interface IOptionItem<T>
{
public IOptionKey Key { get; }
public T Value { get; set; }
public bool IsChanged { get; }
public Task LoadAsync(IOptionStorageAdapter adapter);
public Task SaveAsync(IOptionStorageAdapter adapter);
}