/// <summary> /// /// </summary> /// <param name="value"></param> public void ResolveMagicNumbers(ApiTradeOrderResponseDTO value) { value.StatusReason_Resolved = this.ResolveMagicNumber(MagicNumberKeys.ApiTradeOrderResponseDTO_StatusReason, value.StatusReason); value.Status_Resolved = this.ResolveMagicNumber(MagicNumberKeys.ApiTradeOrderResponseDTO_Status, value.Status); if (value.Orders != null) { foreach (ApiOrderResponseDTO order in value.Orders) { this.ResolveMagicNumbers(order); } } }
private static string GetResponseDescription(ApiTradeOrderResponseDTO resp) { var statusText = string.Format("\r\n{0}: {1}\r\n\r\n", resp.Status_Resolved, resp.StatusReason_Resolved); foreach (var apiOrderResponseDto in resp.Orders) { statusText += string.Format("{0}: {1}\r\n", apiOrderResponseDto.Status_Resolved, apiOrderResponseDto.StatusReason_Resolved); } return statusText; }