You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

using Entity.Api.Resp;
namespace Service.FireControl;
public class FireAutoMapper
{
public static Entity.Api.Resp.Subzone2 Subzone2(Service.FireControl.Msg.Subzone2 subzone2)
{
Entity.Api.Resp.Subzone2 Subzone2 = new Subzone2();
Subzone2.PrimingSpray = subzone2.PrimingSpray.Value;
Subzone2.Spray = subzone2.Spray.Value;
Subzone2.AudibleVisualAlarmStatus = subzone2.AudibleVisualAlarmStatus.Value;
Subzone2.DeflatedDoNotEnter = subzone2.DeflatedDoNotEnter.Value;
return Subzone2;
}
public static Entity.Api.Resp.Subzone5 Subzone5(Service.FireControl.Msg.Subzone5 subzone5)
{
Entity.Api.Resp.Subzone5 Subzone5 = new Subzone5();
Subzone5.DetectorID001 = subzone5.DetectorID001.Value;
Subzone5.Temperature001 = subzone5.Temperature001.Value;
Subzone5.CoConcentration001 = subzone5.CoConcentration001.Value;
Subzone5.AlarmLevel001 = subzone5.AlarmLevel001.Value;
Subzone5.Smoke001 = subzone5.Smoke001.Value;
return Subzone5;
}
public static Entity.Api.Resp.Subzone7 Subzone7(Service.FireControl.Msg.Subzone7 subzone7)
{
Entity.Api.Resp.Subzone7 Subzone7 = new Subzone7();
return Subzone7;
}
}