Fix backtest

This commit is contained in:
2025-04-29 01:17:58 +07:00
parent 204bd87e6a
commit f91b12fbcc
14 changed files with 113 additions and 92 deletions

View File

@@ -1,10 +1,12 @@
using Managing.Domain.Users;
using static Managing.Common.Enums;
namespace Managing.Domain.Bots;
public class BotBackup
{
public string Name { get; set; }
public BotType BotType { get; set; }
public string Identifier { get; set; }
public User User { get; set; }
public string Data { get; set; }
}

View File

@@ -8,12 +8,15 @@
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();
string Identifier { get; set; }
void SaveBackup();
void LoadBackup(BotBackup backup);
}
}
}