Add bundle backtest
This commit is contained in:
@@ -1108,4 +1108,51 @@ public static class MongoMappers
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region BundleBacktestRequests
|
||||
|
||||
public static BundleBacktestRequestDto Map(BundleBacktestRequest domain)
|
||||
{
|
||||
if (domain == null) return null;
|
||||
return new BundleBacktestRequestDto
|
||||
{
|
||||
RequestId = domain.RequestId,
|
||||
User = Map(domain.User),
|
||||
CompletedAt = domain.CompletedAt,
|
||||
Status = domain.Status,
|
||||
BacktestRequestsJson = domain.BacktestRequestsJson,
|
||||
TotalBacktests = domain.TotalBacktests,
|
||||
CompletedBacktests = domain.CompletedBacktests,
|
||||
FailedBacktests = domain.FailedBacktests,
|
||||
ErrorMessage = domain.ErrorMessage,
|
||||
ProgressInfo = domain.ProgressInfo,
|
||||
CurrentBacktest = domain.CurrentBacktest,
|
||||
EstimatedTimeRemainingSeconds = domain.EstimatedTimeRemainingSeconds,
|
||||
Name = domain.Name
|
||||
};
|
||||
}
|
||||
|
||||
public static BundleBacktestRequest Map(BundleBacktestRequestDto dto)
|
||||
{
|
||||
if (dto == null) return null;
|
||||
return new BundleBacktestRequest
|
||||
{
|
||||
RequestId = dto.RequestId,
|
||||
User = Map(dto.User),
|
||||
CreatedAt = dto.CreatedAt,
|
||||
CompletedAt = dto.CompletedAt,
|
||||
Status = dto.Status,
|
||||
BacktestRequestsJson = dto.BacktestRequestsJson,
|
||||
TotalBacktests = dto.TotalBacktests,
|
||||
CompletedBacktests = dto.CompletedBacktests,
|
||||
FailedBacktests = dto.FailedBacktests,
|
||||
ErrorMessage = dto.ErrorMessage,
|
||||
ProgressInfo = dto.ProgressInfo,
|
||||
CurrentBacktest = dto.CurrentBacktest,
|
||||
EstimatedTimeRemainingSeconds = dto.EstimatedTimeRemainingSeconds,
|
||||
Name = dto.Name
|
||||
};
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user