Пример #1
0
 public IActionResult PrimaryPump(EqipmentParameter enable)
 {
     if (enable.Power == Power.On)
     {
         terminal.PrimaryPump.TurnOn();
     }
     else
     {
         terminal.PrimaryPump.TurnOff();
     }
     return(this.Ok(true));
 }
Пример #2
0
        public IActionResult GrayFan(EqipmentParameter enable)
        {
            if (enable.Power == Power.On)
            {
                terminal.GrayFan.TurnOn();
            }
            else
            {
                terminal.GrayFan.TurnOff();
            }

            return(this.Ok(true));
        }
Пример #3
0
        public IActionResult SecondaryPlasmaGenerator(EqipmentParameter enable)
        {
            if (enable.Power == Power.On)
            {
                terminal.PlasmaGeneratorGroup.Second.TurnOn();
            }
            else
            {
                terminal.PlasmaGeneratorGroup.Second.TurnOff();
            }

            return(this.Ok(true));
        }
Пример #4
0
        public IActionResult Pulverizer(EqipmentParameter enable)
        {
            if (enable.Power == Power.On)
            {
                terminal.Pulverizer.TurnOn();
            }
            else
            {
                terminal.Pulverizer.TurnOff();
            }

            return(this.Ok(true));
        }
Пример #5
0
        public IActionResult ExhaustSlave(EqipmentParameter enable)
        {
            if (enable.Power == Power.On)
            {
                terminal.ExhaustSlave.TurnOn();
            }
            else
            {
                terminal.ExhaustSlave.TurnOff();
            }

            return(this.Ok(true));
        }