Add backup management
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Managing.Domain.Accounts;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
using Managing.Domain.Accounts;
|
||||
using Managing.Domain.Backtests;
|
||||
using Managing.Domain.Bots;
|
||||
using Managing.Domain.Candles;
|
||||
using Managing.Domain.MoneyManagements;
|
||||
using Managing.Domain.Scenarios;
|
||||
@@ -650,5 +652,29 @@ public static class MongoMappers
|
||||
};
|
||||
}
|
||||
|
||||
internal static BotDto Map(BotBackup bot)
|
||||
{
|
||||
if (bot == null) return null;
|
||||
|
||||
return new BotDto
|
||||
{
|
||||
Name = bot.Name,
|
||||
BotType = bot.BotType,
|
||||
Data = bot.Data,
|
||||
};
|
||||
}
|
||||
|
||||
internal static BotBackup Map(BotDto b)
|
||||
{
|
||||
if (b == null) return null;
|
||||
|
||||
return new BotBackup
|
||||
{
|
||||
Name = b.Name,
|
||||
BotType = b.BotType,
|
||||
Data = b.Data
|
||||
};
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user