/// <summary>
 /// Initializes a new instance of the <see cref="OnlineMeetingSettings"/> class.
 /// </summary>
 /// <param name="lobbyBypass">The address used to initialize the OnlineMeetingSettings.</param>
 /// <param name="accessLevel">The routing type used to initialize the OnlineMeetingSettings.</param>
 /// <param name="presenters">Mailbox type of the participant.</param>
 internal OnlineMeetingSettings(
     LobbyBypass lobbyBypass,
     OnlineMeetingAccessLevel accessLevel,
     Presenters presenters)
 {
     this.lobbyBypass = lobbyBypass;
     this.accessLevel = accessLevel;
     this.presenters  = presenters;
 }
        /// <summary>
        /// Tries to read element from XML.
        /// </summary>
        /// <param name="reader">The reader.</param>
        /// <returns>True if element was read.</returns>
        internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
        {
            switch (reader.LocalName)
            {
            case XmlElementNames.LobbyBypass:
                this.lobbyBypass = reader.ReadElementValue <LobbyBypass>();
                return(true);

            case XmlElementNames.AccessLevel:
                this.accessLevel = reader.ReadElementValue <OnlineMeetingAccessLevel>();
                return(true);

            case XmlElementNames.Presenters:
                this.presenters = reader.ReadElementValue <Presenters>();
                return(true);

            default:
                return(false);
            }
        }
 /// <summary>
 /// Tries to read element from XML.
 /// </summary>
 /// <param name="reader">The reader.</param>
 /// <returns>True if element was read.</returns>
 internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
 {
     switch (reader.LocalName)
     {
         case XmlElementNames.LobbyBypass:
             this.lobbyBypass = reader.ReadElementValue<LobbyBypass>();
             return true;
         case XmlElementNames.AccessLevel:
             this.accessLevel = reader.ReadElementValue<OnlineMeetingAccessLevel>();
             return true;
         case XmlElementNames.Presenters:
             this.presenters = reader.ReadElementValue<Presenters>();
             return true;
         default:
             return false;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OnlineMeetingSettings"/> class.
 /// </summary>
 /// <param name="lobbyBypass">The address used to initialize the OnlineMeetingSettings.</param>
 /// <param name="accessLevel">The routing type used to initialize the OnlineMeetingSettings.</param>
 /// <param name="presenters">Mailbox type of the participant.</param>
 internal OnlineMeetingSettings(
     LobbyBypass lobbyBypass,
     OnlineMeetingAccessLevel accessLevel,
     Presenters presenters)
 {
     this.lobbyBypass = lobbyBypass;
     this.accessLevel = accessLevel;
     this.presenters = presenters;
 }