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.

79 lines
3.8 KiB

using Entity.Api.Resp;
namespace Service.FireControl;
public class FireAutoMapper
{
public static Entity.Api.Resp.Subzone2Resp Subzone2(Service.FireControl.Msg.Subzone2 subzone2)
{
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 subzone2Resp;
}
public static Entity.Api.Resp.Subzone5Resp Subzone5(Service.FireControl.Msg.Subzone5 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;
subzone5Resp.DetectorID002 = subzone5.DetectorID002.Value;
subzone5Resp.Temperature002 = subzone5.Temperature002.Value;
subzone5Resp.CoConcentration002 = subzone5.CoConcentration002.Value;
subzone5Resp.AlarmLevel002 = subzone5.AlarmLevel002.Value;
subzone5Resp.Smoke002 = subzone5.Smoke002.Value;
subzone5Resp.DetectorID003 = subzone5.DetectorID003.Value;
subzone5Resp.Temperature003 = subzone5.Temperature003.Value;
subzone5Resp.CoConcentration003 = subzone5.CoConcentration003.Value;
subzone5Resp.AlarmLevel003 = subzone5.AlarmLevel003.Value;
subzone5Resp.Smoke003 = subzone5.Smoke003.Value;
subzone5Resp.DetectorID004 = subzone5.DetectorID004.Value;
subzone5Resp.Temperature004 = subzone5.Temperature004.Value;
subzone5Resp.CoConcentration004 = subzone5.CoConcentration004.Value;
subzone5Resp.AlarmLevel004 = subzone5.AlarmLevel004.Value;
subzone5Resp.Smoke004 = subzone5.Smoke004.Value;
subzone5Resp.DetectorID005 = subzone5.DetectorID005.Value;
subzone5Resp.Temperature005 = subzone5.Temperature005.Value;
subzone5Resp.CoConcentration005 = subzone5.CoConcentration005.Value;
subzone5Resp.AlarmLevel005 = subzone5.AlarmLevel005.Value;
subzone5Resp.Smoke005 = subzone5.Smoke005.Value;
subzone5Resp.DetectorID006 = subzone5.DetectorID006.Value;
subzone5Resp.Temperature006 = subzone5.Temperature006.Value;
subzone5Resp.CoConcentration006 = subzone5.CoConcentration006.Value;
subzone5Resp.AlarmLevel006 = subzone5.AlarmLevel006.Value;
subzone5Resp.Smoke006 = subzone5.Smoke006.Value;
return subzone5Resp;
}
public static Entity.Api.Resp.Subzone7Resp Subzone7(Service.FireControl.Msg.Subzone7 subzone7)
{
Entity.Api.Resp.Subzone7Resp subzone7Resp = new Subzone7Resp();
subzone7Resp.FireExtinguisherStatus01 = subzone7.FireExtinguisherStatus01.Value;
subzone7Resp.FireExtinguisherProtectionArea01=subzone7.FireExtinguisherProtectionArea01.Value;
subzone7Resp.FireExtinguisherStatus02 = subzone7.FireExtinguisherStatus02.Value;
subzone7Resp.FireExtinguisherProtectionArea02=subzone7.FireExtinguisherProtectionArea02.Value;
subzone7Resp.FireExtinguisherStatus03 = subzone7.FireExtinguisherStatus03.Value;
subzone7Resp.FireExtinguisherProtectionArea03=subzone7.FireExtinguisherProtectionArea03.Value;
subzone7Resp.FireExtinguisherStatus04 = subzone7.FireExtinguisherStatus04.Value;
subzone7Resp.FireExtinguisherProtectionArea04=subzone7.FireExtinguisherProtectionArea04.Value;
return subzone7Resp;
}
}