Exemple #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);
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the PositionSwitches EntitySet.
 /// </summary>
 public void AddToPositionSwitches(PositionSwitch positionSwitch)
 {
     base.AddObject("PositionSwitches", positionSwitch);
 }
Exemple #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;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the PositionSwitches EntitySet.
 /// </summary>
 public void AddToPositionSwitches(PositionSwitch positionSwitch)
 {
     base.AddObject("PositionSwitches", positionSwitch);
 }