Пример #1
0
 public OpenVoiceChannelType(pOpenVoiceChannelType c)
     : base(c.Time)
 {
     this.channel = c.Channel;
     this.initialMembers = new List<string>(c.Access.ToArray());
     NameLists.voicechannelNames.New(c.Channel, this.initialMembers);//Do not care if open references a previous name as scenario might legally reuse names or use conditionally.
 }
Пример #2
0
        public override pOpenVoiceChannelType pGetOpenVoiceChannel()
        {
            pOpenVoiceChannelType returnValue;
            string channel = "Unknown voice channel";
            List<string> accessList = new List<string>();
            int time;
            try
            {
                reader.Read();
                channel = pGetString();
                time = pGetInt();
                accessList = pGetStringList(commaRegex);
                returnValue = new pOpenVoiceChannelType(channel, time, accessList);
                //AD: Commented out because schema no longer dictates an Owner field.
                //if ("Owner" == reader.Name)
                //{
                //    returnValue.Owner = pGetString();
                //}

                return returnValue;

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