Exemplo n.º 1
0
        } // end of marshal method

        new public void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _controlType = dis.readByte();
                _communicationsChannelType = dis.readByte();
                _sourceEntityID.unmarshal(dis);
                _sourceCommunicationsDeviceID = dis.readByte();
                _sourceLineID      = dis.readByte();
                _transmitPriority  = dis.readByte();
                _transmitLineState = dis.readByte();
                _command           = dis.readByte();
                _masterEntityID.unmarshal(dis);
                _masterCommunicationsDeviceID = dis.readUshort();
                _intercomParametersLength     = dis.readUint();
                for (int idx = 0; idx < _intercomParametersLength; idx++)
                {
                    IntercomCommunicationsParameters anX = new IntercomCommunicationsParameters();
                    anX.unmarshal(dis);
                    _intercomParameters.Add(anX);
                }
                ;
            } // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of unmarshal method
        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
               _controlType = dis.readByte();
               _communicationsChannelType = dis.readByte();
               _sourceEntityID.unmarshal(dis);
               _sourceCommunicationsDeviceID = dis.readByte();
               _sourceLineID = dis.readByte();
               _transmitPriority = dis.readByte();
               _transmitLineState = dis.readByte();
               _command = dis.readByte();
               _masterEntityID.unmarshal(dis);
               _masterCommunicationsDeviceID = dis.readUshort();
               _intercomParametersLength = dis.readUint();
            for(int idx = 0; idx < _intercomParametersLength; idx++)
            {
               IntercomCommunicationsParameters anX = new IntercomCommunicationsParameters();
            anX.unmarshal(dis);
            _intercomParameters.Add(anX);
            };

            } // end try
               catch(Exception e)
            {
              Trace.WriteLine(e);
              Trace.Flush();
            }
        }