public static AccountHistoryClientContract ToClientContract(this AccountHistoryBackendContract src) { return(new AccountHistoryClientContract { Id = src.Id, Date = src.Date, AccountId = src.AccountId, ClientId = src.ClientId, Amount = src.Amount, Balance = src.Balance, WithdrawTransferLimit = src.WithdrawTransferLimit, Comment = src.Comment, Type = src.Type, LegalEnity = src.LegalEntity, }); }
public static MarginTradingAccountHistory ToAccountHistoryContract(this AccountHistoryBackendContract src) { return(new MarginTradingAccountHistory { Id = src.Id, ClientId = src.ClientId, AccountId = src.AccountId, Amount = src.Amount, Type = src.Type.ToType <AccountHistoryType>(), Date = src.Date, Balance = src.Balance, WithdrawTransferLimit = src.WithdrawTransferLimit, Comment = src.Comment, OrderId = src.OrderId, LegalEntity = src.LegalEntity, AuditLog = src.AuditLog }); }
/// <summary> /// Initializes a new instance of the AccountHistoryItemBackend class. /// </summary> public AccountHistoryItemBackend(System.DateTime?date = default(System.DateTime?), AccountHistoryBackendContract account = default(AccountHistoryBackendContract), OrderHistoryBackendContract position = default(OrderHistoryBackendContract)) { Date = date; Account = account; Position = position; }