diff --git a/src/Serval/src/Serval.Client/Client.g.cs b/src/Serval/src/Serval.Client/Client.g.cs index fcd093fe..c6a32125 100644 --- a/src/Serval/src/Serval.Client/Client.g.cs +++ b/src/Serval/src/Serval.Client/Client.g.cs @@ -11473,10 +11473,6 @@ public partial class TranslationBuild [Newtonsoft.Json.JsonProperty("step", Required = Newtonsoft.Json.Required.Always)] public int Step { get; set; } = default!; - [Newtonsoft.Json.JsonProperty("percentCompleted", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - [System.Obsolete] - public double? PercentCompleted { get; set; } = default!; - [Newtonsoft.Json.JsonProperty("progress", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public double? Progress { get; set; } = default!; @@ -12337,10 +12333,6 @@ public partial class WordAlignmentBuild [Newtonsoft.Json.JsonProperty("step", Required = Newtonsoft.Json.Required.Always)] public int Step { get; set; } = default!; - [Newtonsoft.Json.JsonProperty("percentCompleted", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - [System.Obsolete] - public double? PercentCompleted { get; set; } = default!; - [Newtonsoft.Json.JsonProperty("progress", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public double? Progress { get; set; } = default!; diff --git a/src/Serval/src/Serval.Translation/Dtos/TranslationBuildDto.cs b/src/Serval/src/Serval.Translation/Dtos/TranslationBuildDto.cs index cbf96e38..723c5aea 100644 --- a/src/Serval/src/Serval.Translation/Dtos/TranslationBuildDto.cs +++ b/src/Serval/src/Serval.Translation/Dtos/TranslationBuildDto.cs @@ -10,9 +10,6 @@ public record TranslationBuildDto public IReadOnlyList? TrainOn { get; init; } public IReadOnlyList? Pretranslate { get; init; } public required int Step { get; init; } - - [Obsolete] - public double? PercentCompleted { get; init; } public double? Progress { get; init; } public string? Message { get; init; } diff --git a/src/Serval/src/Serval.Translation/Services/DtoMapper.cs b/src/Serval/src/Serval.Translation/Services/DtoMapper.cs index 3ab61c9c..67e3cf61 100644 --- a/src/Serval/src/Serval.Translation/Services/DtoMapper.cs +++ b/src/Serval/src/Serval.Translation/Services/DtoMapper.cs @@ -43,7 +43,6 @@ public TranslationBuildDto Map(Build source) TrainOn = source.TrainOn?.Select(s => Map(source.EngineRef, s)).ToList(), Pretranslate = source.Pretranslate?.Select(s => Map(source.EngineRef, s)).ToList(), Step = source.Step, - PercentCompleted = source.Progress, Progress = source.Progress, Message = source.Message, QueueDepth = source.QueueDepth, diff --git a/src/Serval/src/Serval.WordAlignment/Dtos/WordAlignmentBuildDto.cs b/src/Serval/src/Serval.WordAlignment/Dtos/WordAlignmentBuildDto.cs index d46fb0ad..059a2540 100644 --- a/src/Serval/src/Serval.WordAlignment/Dtos/WordAlignmentBuildDto.cs +++ b/src/Serval/src/Serval.WordAlignment/Dtos/WordAlignmentBuildDto.cs @@ -10,9 +10,6 @@ public record WordAlignmentBuildDto public IReadOnlyList? TrainOn { get; init; } public IReadOnlyList? WordAlignOn { get; init; } public required int Step { get; init; } - - [Obsolete] - public double? PercentCompleted { get; init; } public double? Progress { get; init; } public string? Message { get; init; } diff --git a/src/Serval/src/Serval.WordAlignment/Services/DtoMapper.cs b/src/Serval/src/Serval.WordAlignment/Services/DtoMapper.cs index 302e2f45..174df136 100644 --- a/src/Serval/src/Serval.WordAlignment/Services/DtoMapper.cs +++ b/src/Serval/src/Serval.WordAlignment/Services/DtoMapper.cs @@ -72,7 +72,6 @@ public WordAlignmentBuildDto Map(Build source) TrainOn = source.TrainOn?.Select(s => Map(source.EngineRef, s)).ToList(), WordAlignOn = source.WordAlignOn?.Select(s => Map(source.EngineRef, s)).ToList(), Step = source.Step, - PercentCompleted = source.Progress, Progress = source.Progress, Message = source.Message, QueueDepth = source.QueueDepth,