/// <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="DisplayProperties">Document display properties.</param> /// <param name="Pages">Document pages.</param> public Document(List <Link> Links = default(List <Link>), DocumentProperties DocumentProperties = default(DocumentProperties), DisplayProperties DisplayProperties = default(DisplayProperties), Pages Pages = default(Pages)) { this.Links = Links; this.DocumentProperties = DocumentProperties; this.DisplayProperties = DisplayProperties; this.Pages = Pages; }
/// <summary> /// Initializes a new instance of the <see cref="DocumentPropertiesResponse" /> class. /// </summary> /// <param name="Code">Response status code. (required)</param> /// <param name="Status">Response status.</param> /// <param name="DocumentProperties">DocumentProperties object</param> public DocumentPropertiesResponse(int?Code = default(int?), string Status = default(string), DocumentProperties DocumentProperties = default(DocumentProperties)) { // to ensure "Code" is required (not null) if (Code == null) { throw new InvalidDataException("Code is a required property for DocumentPropertiesResponse and cannot be null"); } else { this.Code = Code; } this.Status = Status; this.DocumentProperties = DocumentProperties; }
/// <summary> /// Initializes a new instance of the <see cref="DocumentConfig" /> class. /// </summary> /// <param name="DisplayProperties">Sets DisplayProperties of document</param> /// <param name="DocumentProperties">Sets DocumentProperties of document</param> /// <param name="PagesCount">Sets count of pages for new document. From 1 to 100 (required)</param> /// <param name="DefaultPageConfig">Sets default page config for new document</param> public DocumentConfig(DisplayProperties DisplayProperties = default(DisplayProperties), DocumentProperties DocumentProperties = default(DocumentProperties), int?PagesCount = default(int?), DefaultPageConfig DefaultPageConfig = default(DefaultPageConfig)) { // to ensure "PagesCount" is required (not null) if (PagesCount == null) { throw new InvalidDataException("PagesCount is a required property for DocumentConfig and cannot be null"); } else { this.PagesCount = PagesCount; } this.DisplayProperties = DisplayProperties; this.DocumentProperties = DocumentProperties; this.DefaultPageConfig = DefaultPageConfig; }