Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetPushMetaDataResult" /> class.
 /// </summary>
 /// <param name="PushMetaData">PushMetaData (required).</param>
 /// <param name="Hdr">Hdr (required).</param>
 public GetPushMetaDataResult(RuleMetaDataRecord PushMetaData = null, ResponseHeaderRecord Hdr = null)
 {
     // to ensure "PushMetaData" is required (not null)
     if (PushMetaData == null)
     {
         throw new InvalidDataException("PushMetaData is a required property for GetPushMetaDataResult and cannot be null");
     }
     else
     {
         this.PushMetaData = PushMetaData;
     }
     // to ensure "Hdr" is required (not null)
     if (Hdr == null)
     {
         throw new InvalidDataException("Hdr is a required property for GetPushMetaDataResult and cannot be null");
     }
     else
     {
         this.Hdr = Hdr;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchResult" /> class.
 /// </summary>
 /// <param name="Pager">Pager (required).</param>
 /// <param name="Stream">.</param>
 /// <param name="Hdr">Hdr (required).</param>
 /// <param name="RuleMetaData">RuleMetaData (required).</param>
 public SearchResult(ListPageRecord Pager = null, List <StreamRecordWrapper> Stream = null, ResponseHeaderRecord Hdr = null, RuleMetaDataRecord RuleMetaData = null)
 {
     // to ensure "Pager" is required (not null)
     if (Pager == null)
     {
         throw new InvalidDataException("Pager is a required property for SearchResult and cannot be null");
     }
     else
     {
         this.Pager = Pager;
     }
     // to ensure "Hdr" is required (not null)
     if (Hdr == null)
     {
         throw new InvalidDataException("Hdr is a required property for SearchResult and cannot be null");
     }
     else
     {
         this.Hdr = Hdr;
     }
     // to ensure "RuleMetaData" is required (not null)
     if (RuleMetaData == null)
     {
         throw new InvalidDataException("RuleMetaData is a required property for SearchResult and cannot be null");
     }
     else
     {
         this.RuleMetaData = RuleMetaData;
     }
     this.Stream = Stream;
 }