Пример #1
0
 public static BrokerResponse DecorateBrokerResponse(BROKER_RESPONSE resp)
 {
     return(new BrokerResponse
     {
         Id = resp.ID,
         RequestId = resp.RequestID,
         Price = resp.Price,
         Swap = resp.Swap,
         Status = (OrderStatus)resp.Status,
         RejectReason = resp.RejectReason == null
                            ? (OrderRejectReason?)null
                            : (OrderRejectReason)resp.RejectReason,
         RejectReasonString = resp.RejectReasonString,
         ValueDate = resp.ValueDate
     });
 }
Пример #2
0
 public static BrokerResponse DecorateBrokerResponse(BROKER_RESPONSE resp)
 {
     return new BrokerResponse
     {
         Id = resp.ID,
         RequestId = resp.RequestID,
         Price = resp.Price,
         Swap = resp.Swap,
         Status = (OrderStatus)resp.Status,
         RejectReason = resp.RejectReason == null
                            ? (OrderRejectReason?)null
                            : (OrderRejectReason)resp.RejectReason,
         RejectReasonString = resp.RejectReasonString,
         ValueDate = resp.ValueDate
     };
 }