Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TradeCoinWithdrawData" /> class.
 /// </summary>
 /// <param name="TimeDetails">TimeDetails (required).</param>
 /// <param name="Address">Address (required).</param>
 /// <param name="Value">Value (required).</param>
 /// <param name="Fees">Fees (required).</param>
 /// <param name="WithdrawID">WithdrawID (required).</param>
 /// <param name="TxHash">TxHash (required).</param>
 public TradeCoinWithdrawData(TimeData TimeDetails = null, string Address = null, long?Value = null, long?Fees = null, string WithdrawID = null, string TxHash = null)
 {
     // to ensure "TimeDetails" is required (not null)
     if (TimeDetails == null)
     {
         throw new InvalidDataException("TimeDetails is a required property for TradeCoinWithdrawData 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 TradeCoinWithdrawData 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 TradeCoinWithdrawData and cannot be null");
     }
     else
     {
         this.Value = Value;
     }
     // to ensure "Fees" is required (not null)
     if (Fees == null)
     {
         throw new InvalidDataException("Fees is a required property for TradeCoinWithdrawData and cannot be null");
     }
     else
     {
         this.Fees = Fees;
     }
     // to ensure "WithdrawID" is required (not null)
     if (WithdrawID == null)
     {
         throw new InvalidDataException("WithdrawID is a required property for TradeCoinWithdrawData and cannot be null");
     }
     else
     {
         this.WithdrawID = WithdrawID;
     }
     // to ensure "TxHash" is required (not null)
     if (TxHash == null)
     {
         throw new InvalidDataException("TxHash is a required property for TradeCoinWithdrawData and cannot be null");
     }
     else
     {
         this.TxHash = TxHash;
     }
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WalletCoinWithdrawData" /> class.
 /// </summary>
 /// <param name="TimeDetails">TimeDetails (required).</param>
 /// <param name="TxID">TxID (required).</param>
 /// <param name="Message">Message (required).</param>
 /// <param name="Satoshis">Satoshis (required).</param>
 /// <param name="WalletID">WalletID (required).</param>
 /// <param name="WithdrawID">WithdrawID (required).</param>
 /// <param name="SentTo">SentTo (required).</param>
 public WalletCoinWithdrawData(TimeData TimeDetails = null, string TxID = null, string Message = null, long?Satoshis = null, string WalletID = null, string WithdrawID = null, string SentTo = null)
 {
     // to ensure "TimeDetails" is required (not null)
     if (TimeDetails == null)
     {
         throw new InvalidDataException("TimeDetails is a required property for WalletCoinWithdrawData and cannot be null");
     }
     else
     {
         this.TimeDetails = TimeDetails;
     }
     // to ensure "TxID" is required (not null)
     if (TxID == null)
     {
         throw new InvalidDataException("TxID is a required property for WalletCoinWithdrawData and cannot be null");
     }
     else
     {
         this.TxID = TxID;
     }
     // to ensure "Message" is required (not null)
     if (Message == null)
     {
         throw new InvalidDataException("Message is a required property for WalletCoinWithdrawData and cannot be null");
     }
     else
     {
         this.Message = Message;
     }
     // to ensure "Satoshis" is required (not null)
     if (Satoshis == null)
     {
         throw new InvalidDataException("Satoshis is a required property for WalletCoinWithdrawData and cannot be null");
     }
     else
     {
         this.Satoshis = Satoshis;
     }
     // to ensure "WalletID" is required (not null)
     if (WalletID == null)
     {
         throw new InvalidDataException("WalletID is a required property for WalletCoinWithdrawData and cannot be null");
     }
     else
     {
         this.WalletID = WalletID;
     }
     // to ensure "WithdrawID" is required (not null)
     if (WithdrawID == null)
     {
         throw new InvalidDataException("WithdrawID is a required property for WalletCoinWithdrawData and cannot be null");
     }
     else
     {
         this.WithdrawID = WithdrawID;
     }
     // to ensure "SentTo" is required (not null)
     if (SentTo == null)
     {
         throw new InvalidDataException("SentTo is a required property for WalletCoinWithdrawData and cannot be null");
     }
     else
     {
         this.SentTo = SentTo;
     }
 }