Пример #1
0
        public ZpiObject(CommandSubsystem commandSubsystem, byte cmdId)
        {
            CommandSubsystem = commandSubsystem;
            CommandId        = cmdId;

            ZpiObject zpi = ZpiMeta.GetCommand(commandSubsystem, cmdId);

            if (zpi != null)
            {
                this.Type             = zpi.Type;
                this.Name             = zpi.Name;
                this.RequestArguments = zpi.RequestArguments;
            }
        }
Пример #2
0
        public ZpiSREQ(CommandSubsystem subSystem, byte cmdId)
        {
            CommandSubsystem = subSystem;
            CommandId        = cmdId;

            ZpiObject zpi = ZpiMeta.GetCommand(subSystem, cmdId);

            if (zpi != null)
            {
                this.Type             = zpi.Type;
                this.Name             = zpi.Name;
                this.RequestArguments = zpi.RequestArguments;
                if (zpi is ZpiSREQ)
                {
                    this.ResponseArguments = ((ZpiSREQ)zpi).ResponseArguments;
                }
            }
        }