예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiByronWallet" /> class.
 /// </summary>
 /// <param name="id">A unique identifier for the wallet (required).</param>
 /// <param name="balance">balance (required).</param>
 /// <param name="assets">assets (required).</param>
 /// <param name="discovery">Mechanism used for discovering addresses. (required).</param>
 /// <param name="name">name (required).</param>
 /// <param name="passphrase">passphrase.</param>
 /// <param name="state">state (required).</param>
 /// <param name="tip">tip (required).</param>
 public ApiByronWallet(string id = default(string), ByronwalletsBalance balance = default(ByronwalletsBalance), WalletsAssets assets = default(WalletsAssets), DiscoveryEnum discovery = default(DiscoveryEnum), string name = default(string), WalletsPassphrase passphrase = default(WalletsPassphrase), WalletsState state = default(WalletsState), WalletsTip tip = default(WalletsTip))
 {
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new InvalidDataException("id is a required property for ApiByronWallet and cannot be null");
     }
     else
     {
         this.Id = id;
     }
     // to ensure "balance" is required (not null)
     if (balance == null)
     {
         throw new InvalidDataException("balance is a required property for ApiByronWallet and cannot be null");
     }
     else
     {
         this.Balance = balance;
     }
     // to ensure "assets" is required (not null)
     if (assets == null)
     {
         throw new InvalidDataException("assets is a required property for ApiByronWallet and cannot be null");
     }
     else
     {
         this.Assets = assets;
     }
     // to ensure "discovery" is required (not null)
     if (discovery == null)
     {
         throw new InvalidDataException("discovery is a required property for ApiByronWallet and cannot be null");
     }
     else
     {
         this.Discovery = discovery;
     }
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for ApiByronWallet and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "state" is required (not null)
     if (state == null)
     {
         throw new InvalidDataException("state is a required property for ApiByronWallet and cannot be null");
     }
     else
     {
         this.State = state;
     }
     // to ensure "tip" is required (not null)
     if (tip == null)
     {
         throw new InvalidDataException("tip is a required property for ApiByronWallet and cannot be null");
     }
     else
     {
         this.Tip = tip;
     }
     this.Passphrase = passphrase;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineResponse201" /> class.
 /// </summary>
 /// <param name="id">A unique identifier for the wallet (required).</param>
 /// <param name="addressPoolGap">Number of consecutive unused addresses allowed.  **IMPORTANT DISCLAIMER:** Using values other than &#x60;20&#x60; automatically makes your wallet invalid with regards to BIP-44 address discovery. It means that you **will not** be able to fully restore your wallet in a different software which is strictly following BIP-44.  Beside, using large gaps is **not recommended** as it may induce important performance degradations. Use at your own risks.  (required) (default to 20).</param>
 /// <param name="balance">balance (required).</param>
 /// <param name="assets">assets (required).</param>
 /// <param name="delegation">delegation (required).</param>
 /// <param name="name">name (required).</param>
 /// <param name="passphrase">passphrase.</param>
 /// <param name="state">state (required).</param>
 /// <param name="tip">tip (required).</param>
 public InlineResponse201(string id = default(string), int?addressPoolGap = 20, WalletsBalance balance = default(WalletsBalance), WalletsAssets assets = default(WalletsAssets), WalletsDelegation delegation = default(WalletsDelegation), string name = default(string), WalletsPassphrase passphrase = default(WalletsPassphrase), WalletsState state = default(WalletsState), WalletsTip tip = default(WalletsTip))
 {
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new InvalidDataException("id is a required property for InlineResponse201 and cannot be null");
     }
     else
     {
         this.Id = id;
     }
     // to ensure "addressPoolGap" is required (not null)
     if (addressPoolGap == null)
     {
         throw new InvalidDataException("addressPoolGap is a required property for InlineResponse201 and cannot be null");
     }
     else
     {
         this.AddressPoolGap = addressPoolGap;
     }
     // to ensure "balance" is required (not null)
     if (balance == null)
     {
         throw new InvalidDataException("balance is a required property for InlineResponse201 and cannot be null");
     }
     else
     {
         this.Balance = balance;
     }
     // to ensure "assets" is required (not null)
     if (assets == null)
     {
         throw new InvalidDataException("assets is a required property for InlineResponse201 and cannot be null");
     }
     else
     {
         this.Assets = assets;
     }
     // to ensure "delegation" is required (not null)
     if (delegation == null)
     {
         throw new InvalidDataException("delegation is a required property for InlineResponse201 and cannot be null");
     }
     else
     {
         this.Delegation = delegation;
     }
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for InlineResponse201 and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "state" is required (not null)
     if (state == null)
     {
         throw new InvalidDataException("state is a required property for InlineResponse201 and cannot be null");
     }
     else
     {
         this.State = state;
     }
     // to ensure "tip" is required (not null)
     if (tip == null)
     {
         throw new InvalidDataException("tip is a required property for InlineResponse201 and cannot be null");
     }
     else
     {
         this.Tip = tip;
     }
     this.Passphrase = passphrase;
 }