Beispiel #1
0
        public ControllerStateInformation CreateControllerStateInformation(Entities.ControllerStateInformation controllerStateInformation, Controller controller)
        {
            var stateInformation = CreateControllerStateInformation(controllerStateInformation);

            stateInformation.Controller = controller;

            return(stateInformation);
        }
Beispiel #2
0
 public ControllerStateInformation CreateControllerStateInformation(Entities.ControllerStateInformation controllerStateInformation)
 {
     return(new ControllerStateInformation()
     {
         Id = controllerStateInformation.Id,
         Controller = (controllerStateInformation.Controller != null) ? CreateController(controllerStateInformation.Controller, false) : null,
         ControllerId = controllerStateInformation.ControllerId,
         PowerConsumption = controllerStateInformation.PowerConsumption,
         State = controllerStateInformation.State
     });
 }