/// <summary> /// Initializes a new instance of the <see cref="CreateCommentFromDraftResult" /> class. /// </summary> /// <param name="Comment">Comment (required).</param> /// <param name="Hdr">Hdr (required).</param> public CreateCommentFromDraftResult(CommentV2Record Comment = null, ResponseHeaderRecord Hdr = null) { // to ensure "Comment" is required (not null) if (Comment == null) { throw new InvalidDataException("Comment is a required property for CreateCommentFromDraftResult and cannot be null"); } else { this.Comment = Comment; } // to ensure "Hdr" is required (not null) if (Hdr == null) { throw new InvalidDataException("Hdr is a required property for CreateCommentFromDraftResult and cannot be null"); } else { this.Hdr = Hdr; } }
/// <summary> /// Initializes a new instance of the <see cref="CreateCommentInput" /> class. /// </summary> /// <param name="ContentKey"> (required).</param> /// <param name="Comment">Comment (required).</param> public CreateCommentInput(string ContentKey = null, CommentV2Record Comment = null) { // to ensure "ContentKey" is required (not null) if (ContentKey == null) { throw new InvalidDataException("ContentKey is a required property for CreateCommentInput and cannot be null"); } else { this.ContentKey = ContentKey; } // to ensure "Comment" is required (not null) if (Comment == null) { throw new InvalidDataException("Comment is a required property for CreateCommentInput and cannot be null"); } else { this.Comment = Comment; } }