Exemplo n.º 1
0
        /// <summary>
        /// Create a new PositionSwitch object.
        /// </summary>
        /// <param name="id">Initial value of Id.</param>
        /// <param name="number">Initial value of Number.</param>
        /// <param name="gPIO">Initial value of GPIO.</param>
        public static PositionSwitch CreatePositionSwitch(int id, int number, int gPIO)
        {
            PositionSwitch positionSwitch = new PositionSwitch();

            positionSwitch.Id     = id;
            positionSwitch.Number = number;
            positionSwitch.GPIO   = gPIO;
            return(positionSwitch);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PositionSwitches EntitySet.
 /// </summary>
 public void AddToPositionSwitches(PositionSwitch positionSwitch)
 {
     base.AddObject("PositionSwitches", positionSwitch);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create a new PositionSwitch object.
 /// </summary>
 /// <param name="id">Initial value of Id.</param>
 /// <param name="number">Initial value of Number.</param>
 /// <param name="gPIO">Initial value of GPIO.</param>
 public static PositionSwitch CreatePositionSwitch(int id, int number, int gPIO)
 {
     PositionSwitch positionSwitch = new PositionSwitch();
     positionSwitch.Id = id;
     positionSwitch.Number = number;
     positionSwitch.GPIO = gPIO;
     return positionSwitch;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PositionSwitches EntitySet.
 /// </summary>
 public void AddToPositionSwitches(PositionSwitch positionSwitch)
 {
     base.AddObject("PositionSwitches", positionSwitch);
 }