using Managing.Domain.Users; namespace Managing.Domain.Bots { public interface IBot { User User { get; set; } string Name { get; set; } void Start(); void Stop(); void Restart(); string GetStatus(); string GetName(); /// /// Gets the total runtime of the bot since it was started /// /// TimeSpan representing the runtime, or TimeSpan.Zero if the bot is not running TimeSpan GetRuntime(); /// /// The time when the bot was first started (creation date) /// DateTime StartupTime { get; } string Identifier { get; set; } void SaveBackup(); void LoadBackup(BotBackup backup); } }