|
|
|
@ -4,34 +4,34 @@ namespace Service.FireControl;
|
|
|
|
|
|
|
|
|
|
public class FireAutoMapper
|
|
|
|
|
{
|
|
|
|
|
public static Entity.Api.Resp.Subzone2 Subzone2(Service.FireControl.Msg.Subzone2 subzone2)
|
|
|
|
|
public static Entity.Api.Resp.Subzone2Resp 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;
|
|
|
|
|
Entity.Api.Resp.Subzone2Resp subzone2Resp = new Subzone2Resp();
|
|
|
|
|
subzone2Resp.PrimingSpray = subzone2.PrimingSpray.Value;
|
|
|
|
|
subzone2Resp.Spray = subzone2.Spray.Value;
|
|
|
|
|
subzone2Resp.AudibleVisualAlarmStatus = subzone2.AudibleVisualAlarmStatus.Value;
|
|
|
|
|
subzone2Resp.DeflatedDoNotEnter = subzone2.DeflatedDoNotEnter.Value;
|
|
|
|
|
|
|
|
|
|
return Subzone2;
|
|
|
|
|
return subzone2Resp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Entity.Api.Resp.Subzone5 Subzone5(Service.FireControl.Msg.Subzone5 subzone5)
|
|
|
|
|
public static Entity.Api.Resp.Subzone5Resp 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;
|
|
|
|
|
Entity.Api.Resp.Subzone5Resp subzone5Resp = new Subzone5Resp();
|
|
|
|
|
subzone5Resp.DetectorID001 = subzone5.DetectorID001.Value;
|
|
|
|
|
subzone5Resp.Temperature001 = subzone5.Temperature001.Value;
|
|
|
|
|
subzone5Resp.CoConcentration001 = subzone5.CoConcentration001.Value;
|
|
|
|
|
subzone5Resp.AlarmLevel001 = subzone5.AlarmLevel001.Value;
|
|
|
|
|
subzone5Resp.Smoke001 = subzone5.Smoke001.Value;
|
|
|
|
|
|
|
|
|
|
return subzone5Resp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Entity.Api.Resp.Subzone7 Subzone7(Service.FireControl.Msg.Subzone7 subzone7)
|
|
|
|
|
public static Entity.Api.Resp.Subzone7Resp Subzone7(Service.FireControl.Msg.Subzone7 subzone7)
|
|
|
|
|
{
|
|
|
|
|
Entity.Api.Resp.Subzone7 Subzone7 = new Subzone7();
|
|
|
|
|
Entity.Api.Resp.Subzone7Resp subzone7Resp = new Subzone7Resp();
|
|
|
|
|
|
|
|
|
|
return Subzone7;
|
|
|
|
|
return subzone7Resp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|