Files
DCIT/DCIT.Core/Models/ProcessingModels.cs
2026-07-13 10:04:36 +08:00

72 lines
1.6 KiB
C#

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; }
}
}