Files
managing-apps/src/Managing.Domain/Bots/IBot.cs

30 lines
808 B
C#

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();
/// <summary>
/// Gets the total runtime of the bot since it was started
/// </summary>
/// <returns>TimeSpan representing the runtime, or TimeSpan.Zero if the bot is not running</returns>
TimeSpan GetRuntime();
/// <summary>
/// The time when the bot was first started (creation date)
/// </summary>
DateTime StartupTime { get; }
string Identifier { get; set; }
void SaveBackup();
void LoadBackup(BotBackup backup);
}
}