fix protobuf model

This commit is contained in:
ngfrolov 2023-01-20 09:10:34 +05:00
parent 4dced662e1
commit b178af93fb
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -15,15 +15,15 @@ namespace AsbCloudWebApi
private static void EnshureRegisteredWirelineRunOutDto()
{
var type = typeof(TelemetryWirelineRunOutDto);
var type = typeof(TelemetryWirelineRunOutBaseDto);
if (RuntimeTypeModel.Default.IsDefined(type))
return;
RuntimeTypeModel.Default.Add(type, false)
.Add(1, nameof(TelemetryWirelineRunOutDto.DateTime))
.Add(2, nameof(TelemetryWirelineRunOutDto.Hauling))
.Add(3, nameof(TelemetryWirelineRunOutDto.HaulingWarnSp))
.Add(4, nameof(TelemetryWirelineRunOutDto.Replace))
.Add(5, nameof(TelemetryWirelineRunOutDto.ReplaceWarnSp));
.Add(1, nameof(TelemetryWirelineRunOutBaseDto.DateTime))
.Add(2, nameof(TelemetryWirelineRunOutBaseDto.Hauling))
.Add(3, nameof(TelemetryWirelineRunOutBaseDto.HaulingWarnSp))
.Add(4, nameof(TelemetryWirelineRunOutBaseDto.Replace))
.Add(5, nameof(TelemetryWirelineRunOutBaseDto.ReplaceWarnSp));
}
private static void EnshureRegisteredWITS()