Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineResponse20013" /> class.
 /// </summary>
 /// <param name="genesisBlockHash">The hash of genesis block (required).</param>
 /// <param name="blockchainStartTime">blockchainStartTime (required).</param>
 /// <param name="slotLength">slotLength (required).</param>
 /// <param name="epochLength">epochLength (required).</param>
 /// <param name="securityParameter">securityParameter (required).</param>
 /// <param name="activeSlotCoefficient">activeSlotCoefficient (required).</param>
 /// <param name="decentralizationLevel">decentralizationLevel (required).</param>
 /// <param name="desiredPoolNumber">desiredPoolNumber (required).</param>
 /// <param name="minimumUtxoValue">minimumUtxoValue (required).</param>
 /// <param name="eras">eras (required).</param>
 public InlineResponse20013(string genesisBlockHash = default(string), string blockchainStartTime = default(string), ApiNetworkParametersSlotLength slotLength = default(ApiNetworkParametersSlotLength), ApiNetworkParametersEpochLength epochLength = default(ApiNetworkParametersEpochLength), WalletsTipHeight securityParameter = default(WalletsTipHeight), ApiNetworkParametersActiveSlotCoefficient activeSlotCoefficient = default(ApiNetworkParametersActiveSlotCoefficient), ApiNetworkParametersActiveSlotCoefficient decentralizationLevel = default(ApiNetworkParametersActiveSlotCoefficient), int?desiredPoolNumber = default(int?), WalletswalletIdpaymentfeesAmount minimumUtxoValue = default(WalletswalletIdpaymentfeesAmount), ApiNetworkParametersEras eras = default(ApiNetworkParametersEras))
 {
     // to ensure "genesisBlockHash" is required (not null)
     if (genesisBlockHash == null)
     {
         throw new InvalidDataException("genesisBlockHash is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.GenesisBlockHash = genesisBlockHash;
     }
     // to ensure "blockchainStartTime" is required (not null)
     if (blockchainStartTime == null)
     {
         throw new InvalidDataException("blockchainStartTime is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.BlockchainStartTime = blockchainStartTime;
     }
     // to ensure "slotLength" is required (not null)
     if (slotLength == null)
     {
         throw new InvalidDataException("slotLength is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.SlotLength = slotLength;
     }
     // to ensure "epochLength" is required (not null)
     if (epochLength == null)
     {
         throw new InvalidDataException("epochLength is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.EpochLength = epochLength;
     }
     // to ensure "securityParameter" is required (not null)
     if (securityParameter == null)
     {
         throw new InvalidDataException("securityParameter is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.SecurityParameter = securityParameter;
     }
     // to ensure "activeSlotCoefficient" is required (not null)
     if (activeSlotCoefficient == null)
     {
         throw new InvalidDataException("activeSlotCoefficient is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.ActiveSlotCoefficient = activeSlotCoefficient;
     }
     // to ensure "decentralizationLevel" is required (not null)
     if (decentralizationLevel == null)
     {
         throw new InvalidDataException("decentralizationLevel is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.DecentralizationLevel = decentralizationLevel;
     }
     // to ensure "desiredPoolNumber" is required (not null)
     if (desiredPoolNumber == null)
     {
         throw new InvalidDataException("desiredPoolNumber is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.DesiredPoolNumber = desiredPoolNumber;
     }
     // to ensure "minimumUtxoValue" is required (not null)
     if (minimumUtxoValue == null)
     {
         throw new InvalidDataException("minimumUtxoValue is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.MinimumUtxoValue = minimumUtxoValue;
     }
     // to ensure "eras" is required (not null)
     if (eras == null)
     {
         throw new InvalidDataException("eras is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.Eras = eras;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WalletswalletIdtransactionsPendingSince" /> class.
 /// </summary>
 /// <param name="absoluteSlotNumber">The 0-based slot index starting from genesis of the blockchain. (required).</param>
 /// <param name="slotNumber">The zero-based slot index within an epoch. (required).</param>
 /// <param name="epochNumber">An epoch is a time period which is divided into slots. (required).</param>
 /// <param name="time">time (required).</param>
 /// <param name="height">height (required).</param>
 public WalletswalletIdtransactionsPendingSince(int?absoluteSlotNumber = default(int?), int?slotNumber = default(int?), int?epochNumber = default(int?), string time = default(string), WalletsTipHeight height = default(WalletsTipHeight))
 {
     // to ensure "absoluteSlotNumber" is required (not null)
     if (absoluteSlotNumber == null)
     {
         throw new InvalidDataException("absoluteSlotNumber is a required property for WalletswalletIdtransactionsPendingSince and cannot be null");
     }
     else
     {
         this.AbsoluteSlotNumber = absoluteSlotNumber;
     }
     // to ensure "slotNumber" is required (not null)
     if (slotNumber == null)
     {
         throw new InvalidDataException("slotNumber is a required property for WalletswalletIdtransactionsPendingSince and cannot be null");
     }
     else
     {
         this.SlotNumber = slotNumber;
     }
     // to ensure "epochNumber" is required (not null)
     if (epochNumber == null)
     {
         throw new InvalidDataException("epochNumber is a required property for WalletswalletIdtransactionsPendingSince and cannot be null");
     }
     else
     {
         this.EpochNumber = epochNumber;
     }
     // to ensure "time" is required (not null)
     if (time == null)
     {
         throw new InvalidDataException("time is a required property for WalletswalletIdtransactionsPendingSince and cannot be null");
     }
     else
     {
         this.Time = time;
     }
     // to ensure "height" is required (not null)
     if (height == null)
     {
         throw new InvalidDataException("height is a required property for WalletswalletIdtransactionsPendingSince and cannot be null");
     }
     else
     {
         this.Height = height;
     }
 }