Exemple #1
0
        /// <summary>
        /// The Bypass Command
        ///
        /// Provides IAS ACE clients with a method to send zone bypass requests to the IAS ACE
        /// server. Bypassed zones may be faulted or in alarm but will not trigger the security
        /// system to go into alarm. For example, a user MAYwish to allow certain windows in his
        /// premises protected by an IAS Zone server to be left open while the user leaves the
        /// premises. The user could bypass the IAS Zone server protecting the window on his IAS
        /// ACE client (e.g., security keypad), and if the IAS ACE server indicates that zone is
        /// successfully by-passed, arm his security system while he is away.
        ///
        /// <param name="numberOfZones" <see cref="byte"> Number Of Zones</ param >
        /// <param name="zoneIds" <see cref="List<byte>"> Zone IDs</ param >
        /// <param name="armDisarmCode" <see cref="string"> Arm/Disarm Code</ param >
        /// <returns> the command result Task </returns>
        /// </summary>
        public Task <CommandResult> BypassCommand(byte numberOfZones, List <byte> zoneIds, string armDisarmCode)
        {
            BypassCommand command = new BypassCommand();

            // Set the fields
            command.NumberOfZones = numberOfZones;
            command.ZoneIds       = zoneIds;
            command.ArmDisarmCode = armDisarmCode;

            return(Send(command));
        }
Exemple #2
0
        public override object VisitBypassCommand([NotNull] PostgresParser.BypassCommandContext context)
        {
            var res = new BypassCommand();

            if (context.ddlStatement() != null)
            {
                res.Query = (DdlQuery)Visit(context.ddlStatement());
            }

            if (context.dmlStatement() != null)
            {
                res.Query = (DmlQuery)Visit(context.dmlStatement());
            }

            return(res);
        }