/// <summary> /// Initializes a new instance of the <see cref="PutChangesDocumentStreamRequest"/> class. /// </summary> /// <param name="request">The request.</param> public PutChangesDocumentStreamRequest(Model.ComparisonRequest request = null) { this.Request = request; }
/// <summary> /// Initializes a new instance of the <see cref="ComparisonRequest"/> class. /// </summary> /// <param name="request">The request.</param> /// <param name="outPath">outPath: path to output document on file storage</param> public ComparisonRequest(Model.ComparisonRequest request = null, string outPath = null) { this.Request = request; this.OutPath = outPath; }
/// <summary> /// Initializes a new instance of the <see cref="PutChangesDocumentRequest"/> class. /// </summary> /// <param name="request">The request.</param> /// <param name="outPath">outPath: path to output document on file storage</param> public PutChangesDocumentRequest(Model.ComparisonRequest request = null, string outPath = null) { this.Request = request; this.OutPath = outPath; }
/// <summary> /// Initializes a new instance of the <see cref="PutChangesImagesStreamRequest"/> class. /// </summary> /// <param name="request">The request.</param> public PutChangesImagesStreamRequest(Model.ComparisonRequest request = null) { this.Request = request; }
private Model.ComparisonRequest GetComparisonRequest(string sourceName, List <string> targetsNames) { Model.ComparisonRequest comparisonRequest = new Model.ComparisonRequest() { Settings = new ComparisonRequestSettings() { GenerateSummaryPage = true, ShowDeletedContent = true, StyleChangeDetection = true, UseFramesForDelInsElements = false, DetailLevel = "Low", DeletedItemsStyle = new StyleSettingsValues() { BeginSeparatorString = "", EndSeparatorString = "", Color = new Color().Red }, InsertedItemsStyle = new StyleSettingsValues() { BeginSeparatorString = "", EndSeparatorString = "", Color = new Color().Blue }, StyleChangedItemsStyle = new StyleSettingsValues() { BeginSeparatorString = "", EndSeparatorString = "", Color = new Color().Green }, CalculateComponentCoordinates = false, CloneMetadata = "Source", MarkDeletedInsertedContentDeep = false, MetaData = new ComparisonMetadataValues() { Author = "GroupDocs", Company = "GroupDocs", LastSaveBy = "GroupDocs" }, Password = "******", PasswordSaveOption = "User" }, SourceFile = new ComparisonFileInfo() { Folder = "", Name = sourceName, Password = "" }, }; List <ComparisonFileInfo> targets = new List <ComparisonFileInfo>(); foreach (string targetsName in targetsNames) { targets.Add(new ComparisonFileInfo() { Folder = "", Name = targetsName, Password = "" }); } comparisonRequest.TargetFiles = targets.ToArray(); comparisonRequest.Changes = new List <ComparisonChange>(); comparisonRequest.Changes.Add(new ComparisonChange() { Id = 0, Action = "Accept" }); comparisonRequest.Changes.Add(new ComparisonChange() { Id = 1, Action = "Reject" }); return(comparisonRequest); }
/// <summary> /// Initializes a new instance of the <see cref="PostCategoriesChangesRequest"/> class. /// </summary> /// <param name="request">The request.</param> /// <param name="categoriesType">Type of the categories.</param> public PostCategoriesChangesRequest(Model.ComparisonRequest request = null, string categoriesType = null) { this.Request = request; this.CategoriesType = categoriesType; }
/// <summary> /// Initializes a new instance of the <see cref="PostChangesRequest"/> class. /// </summary> /// <param name="request">The request.</param> public PostChangesRequest(Model.ComparisonRequest request = null) { this.Request = request; }
/// <summary> /// Initializes a new instance of the <see cref="ComparisonStreamRequest"/> class. /// </summary> /// <param name="request">The request.</param> public ComparisonStreamRequest(Model.ComparisonRequest request = null) { this.Request = request; }
/// <summary> /// Initializes a new instance of the <see cref="ComparisonImagesRequest"/> class. /// </summary> /// <param name="request">The request.</param> /// <param name="outFolder">outFolder: path to output folder on file storage</param> public ComparisonImagesRequest(Model.ComparisonRequest request = null, string outFolder = null) { this.Request = request; this.OutFolder = outFolder; }