/// <summary> /// Initializes a new instance of the FundsResponseModel class. /// </summary> /// <param name="operation">Possible values include: 'Deposit', /// 'Withdraw'</param> /// <param name="type">Possible values include: 'Undefined', 'Card', /// 'Bank', 'Blockchain'</param> public FundsResponseModel(System.Guid id, string assetId, string assetName, double volume, FundsOperation operation, FundsType type, System.DateTime timestamp) { Id = id; AssetId = assetId; AssetName = assetName; Volume = volume; Operation = operation; Type = type; Timestamp = timestamp; CustomInit(); }
internal static string ToSerializedValue(this FundsOperation value) { switch (value) { case FundsOperation.Deposit: return("Deposit"); case FundsOperation.Withdraw: return("Withdraw"); } return(null); }
public static HistoryType ToHistoryType(this FundsOperation operation) { return(operation == FundsOperation.Deposit ? HistoryType.CashIn : HistoryType.CashOut); }