using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JiangsuEarthquake.Models { public class StateFeedBackModel : ParameterModel { public object this[int index] { get { return null; } set { bool Set_Value = Convert.ToBoolean(value); switch (index) { case 25: this.SEI_PowerMode = Set_Value; break; case 26: this.SEI_PowerState = Set_Value; break; case 27: this.JBH_ADCP_State = Set_Value; break; case 28: this.SEI_State2 = Set_Value; break; case 29: this.SEI_State1 = Set_Value; break; case 30: this.JBH_Switch_State = Set_Value; break; case 31: this.JBH_DSL_State = Set_Value; break; default: break; } } } private bool sEI_PowerMode; /// /// 地震仪供电方式 /// public bool SEI_PowerMode { get { return sEI_PowerMode; } set { sEI_PowerMode = value; } } private bool sEI_PowerState; /// /// 当前是那台地震仪 /// public bool SEI_PowerState { get { return sEI_PowerState; } set { sEI_PowerState = value; } } private bool jBH_ADCP_State; /// /// 接驳盒海流计当前状态 /// public bool JBH_ADCP_State { get { return jBH_ADCP_State; } set { jBH_ADCP_State = value; } } private bool sEI_State1; /// /// 地震仪1状态 /// public bool SEI_State1 { get { return sEI_State1; } set { sEI_State1 = value; } } private bool sEI_State2; /// /// 地震仪2状态 /// public bool SEI_State2 { get { return sEI_State2; } set { sEI_State2 = value; } } private bool jBH_Switch; /// /// 接驳盒交换机状态 /// public bool JBH_Switch_State { get { return jBH_Switch; } set { jBH_Switch = value; } } private bool jBH_DSL_State; /// /// 接驳盒电力载波状态 /// public bool JBH_DSL_State { get { return jBH_DSL_State; } set { jBH_DSL_State = value; } } } }