Esempio n. 1
0
        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        new public void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                dos.writeByte((byte)_controlType);
                dos.writeByte((byte)_communicationsChannelType);
                _sourceEntityID.marshal(dos);
                dos.writeByte((byte)_sourceCommunicationsDeviceID);
                dos.writeByte((byte)_sourceLineID);
                dos.writeByte((byte)_transmitPriority);
                dos.writeByte((byte)_transmitLineState);
                dos.writeByte((byte)_command);
                _masterEntityID.marshal(dos);
                dos.writeUshort((ushort)_masterCommunicationsDeviceID);
                dos.writeUint((uint)_intercomParameters.Count);

                for (int idx = 0; idx < _intercomParameters.Count; idx++)
                {
                    IntercomCommunicationsParameters aIntercomCommunicationsParameters = (IntercomCommunicationsParameters)_intercomParameters[idx];
                    aIntercomCommunicationsParameters.marshal(dos);
                } // end of list marshalling
            }     // end try
            catch (Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        } // end of marshal method