Beispiel #1
0
 public SendVoiceMessageType(pSendVoiceMessageType pPVMT) : base(pPVMT.Time)
 {
     this.channelName = pPVMT.ChannelName;
     this.filePath = pPVMT.FilePath;
 }
Beispiel #2
0
        public override pSendVoiceMessageType pGetSendVoiceMessage()
        {
            string channel = "Unknown Voice Channel";
            string fileName;
            int time;
            try
            {
                pSendVoiceMessageType returnValue;
                reader.Read();
                channel = pGetString();
                fileName = pGetString();
                time = pGetInt();
                reader.ReadEndElement();
                returnValue = new pSendVoiceMessageType(channel, fileName, time);
                return returnValue;

            }
            catch (SystemException e)
            {
                throw new ApplicationException("Could not read SendChatMessage for room " + channel);
            }
        }