예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiEraInfo" /> class.
 /// </summary>
 /// <param name="byron">byron.</param>
 /// <param name="shelley">shelley.</param>
 /// <param name="allegra">allegra.</param>
 /// <param name="mary">mary.</param>
 public ApiEraInfo(WalletsDelegationChangesAt byron = default(WalletsDelegationChangesAt), WalletsDelegationChangesAt shelley = default(WalletsDelegationChangesAt), WalletsDelegationChangesAt allegra = default(WalletsDelegationChangesAt), WalletsDelegationChangesAt mary = default(WalletsDelegationChangesAt))
 {
     this.Byron   = byron;
     this.Shelley = shelley;
     this.Allegra = allegra;
     this.Mary    = mary;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiNetworkParametersEras" /> class.
 /// </summary>
 /// <param name="byron">byron.</param>
 /// <param name="shelley">shelley.</param>
 /// <param name="allegra">allegra.</param>
 /// <param name="mary">mary.</param>
 public ApiNetworkParametersEras(WalletsDelegationChangesAt byron = default(WalletsDelegationChangesAt), WalletsDelegationChangesAt shelley = default(WalletsDelegationChangesAt), WalletsDelegationChangesAt allegra = default(WalletsDelegationChangesAt), WalletsDelegationChangesAt mary = default(WalletsDelegationChangesAt))
 {
     this.Byron   = byron;
     this.Shelley = shelley;
     this.Allegra = allegra;
     this.Mary    = mary;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WalletsDelegationNext" /> class.
 /// </summary>
 /// <param name="status">status (required).</param>
 /// <param name="target">A unique Stake-Pool identifier (present only if status &#x3D; &#x60;delegating&#x60;).</param>
 /// <param name="changesAt">changesAt (required).</param>
 public WalletsDelegationNext(StatusEnum status = default(StatusEnum), string target = default(string), WalletsDelegationChangesAt changesAt = default(WalletsDelegationChangesAt))
 {
     // to ensure "status" is required (not null)
     if (status == null)
     {
         throw new InvalidDataException("status is a required property for WalletsDelegationNext and cannot be null");
     }
     else
     {
         this.Status = status;
     }
     // to ensure "changesAt" is required (not null)
     if (changesAt == null)
     {
         throw new InvalidDataException("changesAt is a required property for WalletsDelegationNext and cannot be null");
     }
     else
     {
         this.ChangesAt = changesAt;
     }
     this.Target = target;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiNetworkInformation" /> class.
 /// </summary>
 /// <param name="syncProgress">syncProgress (required).</param>
 /// <param name="nodeTip">nodeTip (required).</param>
 /// <param name="networkTip">networkTip.</param>
 /// <param name="nextEpoch">nextEpoch.</param>
 /// <param name="nodeEra">nodeEra (required).</param>
 public ApiNetworkInformation(ApiNetworkInformationSyncProgress syncProgress = default(ApiNetworkInformationSyncProgress), ApiNetworkInformationNodeTip nodeTip = default(ApiNetworkInformationNodeTip), ApiNetworkInformationNetworkTip networkTip = default(ApiNetworkInformationNetworkTip), WalletsDelegationChangesAt nextEpoch = default(WalletsDelegationChangesAt), NodeEraEnum nodeEra = default(NodeEraEnum))
 {
     // to ensure "syncProgress" is required (not null)
     if (syncProgress == null)
     {
         throw new InvalidDataException("syncProgress is a required property for ApiNetworkInformation and cannot be null");
     }
     else
     {
         this.SyncProgress = syncProgress;
     }
     // to ensure "nodeTip" is required (not null)
     if (nodeTip == null)
     {
         throw new InvalidDataException("nodeTip is a required property for ApiNetworkInformation and cannot be null");
     }
     else
     {
         this.NodeTip = nodeTip;
     }
     // to ensure "nodeEra" is required (not null)
     if (nodeEra == null)
     {
         throw new InvalidDataException("nodeEra is a required property for ApiNetworkInformation and cannot be null");
     }
     else
     {
         this.NodeEra = nodeEra;
     }
     this.NetworkTip = networkTip;
     this.NextEpoch  = nextEpoch;
 }