Beispiel #1
0
 private void updatePercentValues()
 {
     m_RulesInUsePercent = new RulesCapability()
     {
         Actions    = RulesInUse.Actions * 100.0 / RulesAvailable.Actions,
         Conditions = RulesInUse.Conditions * 100.0 / RulesAvailable.Conditions,
         Count      = RulesInUse.Count * 100.0 / RulesAvailable.Count
     };
 }
Beispiel #2
0
        /// <summary>
        /// Empty constructor for HueCapabilities
        /// </summary>
        public HueCapabilities()
        {
            Lights        = new Capability();
            Sensors       = new Capability();
            Groups        = new Capability();
            Schedules     = new Capability();
            Resourcelinks = new Capability();

            RulesInUse     = new RulesCapability();
            RulesAvailable = new RulesCapability();
        }