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.3 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;
return subzone5Resp;
}
public static Entity.Api.Resp.Subzone7Resp Subzone7(Service.FireControl.Msg.Subzone7 subzone7)
{
Entity.Api.Resp.Subzone7Resp subzone7Resp = new Subzone7Resp();
return subzone7Resp;
}
}