Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CoinDepData" /> class.
 /// </summary>
 /// <param name="TimeDetails">TimeDetails (required).</param>
 /// <param name="Address">Address (required).</param>
 /// <param name="Value">Value (required).</param>
 /// <param name="TxHash">TxHash (required).</param>
 /// <param name="DepositID">DepositID (required).</param>
 /// <param name="Reason">Reason (required).</param>
 public CoinDepData(TimeDataCoin TimeDetails = null, string Address = null, long?Value = null, string TxHash = null, string DepositID = null, string Reason = null)
 {
     // to ensure "TimeDetails" is required (not null)
     if (TimeDetails == null)
     {
         throw new InvalidDataException("TimeDetails is a required property for CoinDepData and cannot be null");
     }
     else
     {
         this.TimeDetails = TimeDetails;
     }
     // to ensure "Address" is required (not null)
     if (Address == null)
     {
         throw new InvalidDataException("Address is a required property for CoinDepData and cannot be null");
     }
     else
     {
         this.Address = Address;
     }
     // to ensure "Value" is required (not null)
     if (Value == null)
     {
         throw new InvalidDataException("Value is a required property for CoinDepData and cannot be null");
     }
     else
     {
         this.Value = Value;
     }
     // to ensure "TxHash" is required (not null)
     if (TxHash == null)
     {
         throw new InvalidDataException("TxHash is a required property for CoinDepData and cannot be null");
     }
     else
     {
         this.TxHash = TxHash;
     }
     // to ensure "DepositID" is required (not null)
     if (DepositID == null)
     {
         throw new InvalidDataException("DepositID is a required property for CoinDepData and cannot be null");
     }
     else
     {
         this.DepositID = DepositID;
     }
     // to ensure "Reason" is required (not null)
     if (Reason == null)
     {
         throw new InvalidDataException("Reason is a required property for CoinDepData and cannot be null");
     }
     else
     {
         this.Reason = Reason;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FiatWithData" /> class.
 /// </summary>
 /// <param name="TimeDetails">TimeDetails (required).</param>
 /// <param name="WithdrawID">WithdrawID (required).</param>
 /// <param name="Value">Value (required).</param>
 /// <param name="Account">Account (required).</param>
 /// <param name="Reason">Reason (required).</param>
 public FiatWithData(TimeDataCoin TimeDetails = null, string WithdrawID = null, long?Value = null, string Account = null, string Reason = null)
 {
     // to ensure "TimeDetails" is required (not null)
     if (TimeDetails == null)
     {
         throw new InvalidDataException("TimeDetails is a required property for FiatWithData and cannot be null");
     }
     else
     {
         this.TimeDetails = TimeDetails;
     }
     // to ensure "WithdrawID" is required (not null)
     if (WithdrawID == null)
     {
         throw new InvalidDataException("WithdrawID is a required property for FiatWithData and cannot be null");
     }
     else
     {
         this.WithdrawID = WithdrawID;
     }
     // to ensure "Value" is required (not null)
     if (Value == null)
     {
         throw new InvalidDataException("Value is a required property for FiatWithData and cannot be null");
     }
     else
     {
         this.Value = Value;
     }
     // to ensure "Account" is required (not null)
     if (Account == null)
     {
         throw new InvalidDataException("Account is a required property for FiatWithData and cannot be null");
     }
     else
     {
         this.Account = Account;
     }
     // to ensure "Reason" is required (not null)
     if (Reason == null)
     {
         throw new InvalidDataException("Reason is a required property for FiatWithData and cannot be null");
     }
     else
     {
         this.Reason = Reason;
     }
 }