Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
                }
            }
        }