mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Initial KV API concept
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user