mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
17 lines
415 B
C#
17 lines
415 B
C#
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);
|
|
}
|