Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommittedEntryResponse" /> class.
 /// </summary>
 /// <param name="Entry">Entry (required).</param>
 public CommittedEntryResponse(CommittedEntry Entry = default(CommittedEntry))
 {
     // to ensure "Entry" is required (not null)
     if (Entry == null)
     {
         throw new InvalidDataException("Entry is a required property for CommittedEntryResponse and cannot be null");
     }
     else
     {
         this.Entry = Entry;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AnchoredEntryResponse" /> class.
 /// </summary>
 /// <param name="AnchoredEntry">AnchoredEntry (required).</param>
 /// <param name="AnchorTimes">All the times at which the Entry with the same Id was anchored in the blockchain in ISO 8601 format. The first, current and last Anchor Times will also be in this list.</param>
 public AnchoredEntryResponse(CommittedEntry AnchoredEntry = default(CommittedEntry), List <DateTime?> AnchorTimes = default(List <DateTime?>))
 {
     // to ensure "AnchoredEntry" is required (not null)
     if (AnchoredEntry == null)
     {
         throw new InvalidDataException("AnchoredEntry is a required property for AnchoredEntryResponse and cannot be null");
     }
     else
     {
         this.AnchoredEntry = AnchoredEntry;
     }
     this.AnchorTimes = AnchorTimes;
 }