first commit
This commit is contained in:
72
DCIT.Core/Models/ProcessingModels.cs
Normal file
72
DCIT.Core/Models/ProcessingModels.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
|
||||
namespace DCIT.Core.Models
|
||||
{
|
||||
public class ReplaceFileRequest
|
||||
{
|
||||
public string SourcePath { get; set; }
|
||||
|
||||
public string OutputPath { get; set; }
|
||||
|
||||
public string DiffPath { get; set; }
|
||||
|
||||
public string SourceRootDirectory { get; set; }
|
||||
|
||||
public string RuleFilePath { get; set; }
|
||||
|
||||
public RuleFile RuleFile { get; set; }
|
||||
|
||||
public bool EncryptDiff { get; set; }
|
||||
|
||||
public bool EnableImageReplacement { get; set; } = true;
|
||||
|
||||
public int? FixedImageSeed { get; set; }
|
||||
}
|
||||
|
||||
public class RestoreFileRequest
|
||||
{
|
||||
public string ReplacedPath { get; set; }
|
||||
|
||||
public string DiffPath { get; set; }
|
||||
|
||||
public string OutputPath { get; set; }
|
||||
|
||||
public string ReplaceRootDirectory { get; set; }
|
||||
|
||||
public string CurrentRuleFilePath { get; set; }
|
||||
}
|
||||
|
||||
public class FileProcessProgress
|
||||
{
|
||||
public string FilePath { get; set; }
|
||||
|
||||
public int FilePercent { get; set; }
|
||||
|
||||
public string CurrentRuleId { get; set; }
|
||||
|
||||
public string CurrentRuleName { get; set; }
|
||||
|
||||
public int CurrentFileTextCount { get; set; }
|
||||
|
||||
public int TotalTextCount { get; set; }
|
||||
|
||||
public string Message { get; set; }
|
||||
|
||||
public bool IsWarning { get; set; }
|
||||
}
|
||||
|
||||
public class FileProcessResult
|
||||
{
|
||||
public string OutputPath { get; set; }
|
||||
|
||||
public string DiffPath { get; set; }
|
||||
|
||||
public string BmpPath { get; set; }
|
||||
|
||||
public int TextOperationCount { get; set; }
|
||||
|
||||
public int ImageOperationCount { get; set; }
|
||||
|
||||
public bool Stopped { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user