Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Document" /> class.
 /// </summary>
 /// <param name="Links">Link to the document.</param>
 /// <param name="DocumentProperties">Document properties.</param>
 /// <param name="Pages">Document pages.</param>
 public Document(List <Link> Links = default(List <Link>), DocumentProperties DocumentProperties = default(DocumentProperties), Pages Pages = default(Pages))
 {
     this.Links = Links;
     this.DocumentProperties = DocumentProperties;
     this.Pages = Pages;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentPagesResponse" /> class.
 /// </summary>
 /// <param name="Code">Response status code. (required)</param>
 /// <param name="Status">Response status.</param>
 /// <param name="Pages">Page object</param>
 public DocumentPagesResponse(int?Code = default(int?), string Status = default(string), Pages Pages = default(Pages))
 {
     // to ensure "Code" is required (not null)
     if (Code == null)
     {
         throw new InvalidDataException("Code is a required property for DocumentPagesResponse and cannot be null");
     }
     else
     {
         this.Code = Code;
     }
     this.Status = Status;
     this.Pages  = Pages;
 }