Ejemplo n.º 1
0
        public bool IsOfDeviceType(string typeList)
        {
            bool retval = false;
            var  types  = ModulesManager.GetArgumentsList(typeList);

            foreach (var t in types)
            {
                if (t.ToLower() == module.DeviceType.ToString().ToLower())
                {
                    retval = true;
                    break;
                }
            }
            return(retval);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a copy of the actual modules selection.
        /// </summary>
        /// <returns>ModulesManager</returns>
        public ModulesManager Copy()
        {
            var modulesManager = new ModulesManager(homegenie)
            {
                command             = command,
                commandOptions      = commandOptions,
                withName            = withName,
                ofDeviceType        = ofDeviceType,
                inGroup             = inGroup,
                inDomain            = inDomain,
                withAddress         = withAddress,
                withParameter       = withParameter,
                withFeature         = withFeature,
                withoutFeature      = withoutFeature,
                iterationDelay      = iterationDelay,
                modulesListCallback = modulesListCallback
            };

            return(modulesManager);
        }