using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TelegramBotBase.Base { /// /// Base class for controls /// public class ControlBase { public Sessions.DeviceSession Device { get; set; } public int ID { get; set; } /// /// Defines if the control should be rendered and invoked with actions /// public bool Enabled { get; set; } = true; public virtual async Task Action(MessageResult result) { } public virtual async Task Render(MessageResult result) { } public virtual async Task Cleanup() { } } }