コード例 #1
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Command":
                if (!command.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Ratio":
                if (!ratio.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #2
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            XElement value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Server":
                if (!server.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "ServerPassword":
                if (!serverPassword.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #3
0
ファイル: FaultStruct.cs プロジェクト: moayyaed/XmlRpc-2
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            XElement value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "faultCode":
                if (!faultCode.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "faultString":
                if (!faultString.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #4
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Override":
                if ([email protected](value))
                {
                    return(false);
                }
                break;

            case "Url":
                if (!url.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "File":
                if (!file.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #5
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Name":
                if (!name.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Code":
                if (!code.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #6
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Lang":
                if (!lang.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Text":
                if (!text.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #7
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "State":
                if (!state.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "StateName":
                if (!stateName.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "TransactionId":
                if (!transactionId.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #8
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Login":
                if (!login.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "ClientName":
                if (!clientName.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "IPAddress":
                if (!ipAddress.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #9
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "CallerLogin":
                if (!callerLogin.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CmdName":
                if (!cmdName.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CmdParam":
                if (!cmdParam.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #10
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Login":
                if (!login.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "PlayerId":
                if (!playerId.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Result":
                if (!result.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #11
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Login":
                if (!login.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "IPAddress":
                if (!ipAddress.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "StateUpdateLatency":
                if (!stateUpdateLatency.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "StateUpdatePeriod":
                if (!stateUpdatePeriod.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "LatestNetworkActivity":
                if (!latestNetworkActivity.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NetworkLossRate":
                if (!networkLossRate.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #12
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Name":
                if (!name.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "TitleId":
                if (!titleId.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Version":
                if (!version.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Build":
                if (!build.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "ApiVersion":
                if (!apiVersion.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #13
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Orig":
                if (!orig.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Name":
                if (!name.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Checksum":
                if (!checksum.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Url":
                if (!url.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #14
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Name":
                if (!name.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Comment":
                if (!comment.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Password":
                if (!password.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "PasswordForSpectator":
                if (!passwordForSpectator.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextMaxPlayers":
                if (!nextMaxPlayers.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextMaxSpectators":
                if (!nextMaxSpectators.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "IsP2PUpload":
                if (!isP2PUpload.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "IsP2PDownload":
                if (!isP2PDownload.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextLadderMode":
                if (!nextLadderMode.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextVehicleNetQuality":
                if (!nextVehicleNetQuality.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextCallVoteTimeOut":
                if (!nextCallVoteTimeOut.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CallVoteRatio":
                if (!callVoteRatio.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "AllowChallengeDownload":
                if (!allowChallengeDownload.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "AutoSaveReplays":
                if (!autoSaveReplays.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #15
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Name":
                if (!name.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "UId":
                if (!uId.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Filename":
                if (!filename.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Environnement":     // [sic]
                if (!environment.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Author":
                if (!author.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "GoldTime":
                if (!goldTime.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CopperPrice":
                if (!copperPrice.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "MapType":
                if (!mapType.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "MapStyle":
                if (!mapStyle.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #16
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Name":
                if (!name.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "ZonePath":
                if (!zonePath.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "City":
                if (!city.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "EmblemUrl":
                if (!emblemUrl.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "ClubLinkUrl":
                if (!clubLinkUrl.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "HuePrimary":
                if (!huePrimary.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "HueSecondary":
                if (!hueSecondary.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "RGB":
                if (!rgb.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #17
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "PublishedIp":
                if (!publishedIp.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Port":
                if (!port.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "P2PPort":
                if (!p2pPort.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "TitleId":
                if (!titleId.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "ServerLogin":
                if (!serverLogin.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "ServerPlayerId":
                if (!serverPlayerId.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "ConnectionDownloadRate":
                if (!connectionDownloadRate.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "ConnectionUploadRate":
                if (!connectionUploadRate.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "IsServer":
                if (!isServer.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "IsDedicated":
                if (!isDedicated.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #18
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Name":
                if (!name.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Comment":
                if (!comment.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Password":
                if (!password.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "PasswordForSpectator":
                if (!passwordForSpectator.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "HideServer":
                if (!hideServer.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CurrentMaxPlayers":
                if (!currentMaxPlayers.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextMaxPlayers":
                if (!nextMaxPlayers.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CurrentMaxSpectators":
                if (!currentMaxSpectators.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextMaxSpectators":
                if (!nextMaxSpectators.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "KeepPlayerSlots":
                if (!keepPlayerSlots.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "IsP2PUpload":
                if (!isP2PUpload.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "IsP2PDownload":
                if (!isP2PDownload.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CurrentLadderMode":
                if (!currentLadderMode.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextLadderMode":
                if (!nextLadderMode.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "LadderServerLimitMax":
                if (!ladderServerLimitMax.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "LadderServerLimitMin":
                if (!ladderServerLimitMin.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CurrentVehicleNetQuality":
                if (!currentVehicleNetQuality.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextVehicleNetQuality":
                if (!nextVehicleNetQuality.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CurrentCallVoteTimeOut":
                if (!currentCallVoteTimeOut.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextCallVoteTimeOut":
                if (!nextCallVoteTimeOut.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CallVoteRatio":
                if (!callVoteRatio.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "AllowMapDownload":
                if (!allowChallengeDownload.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "AutoSaveReplays":
                if (!autoSaveReplays.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "AutoSaveValidationReplays":
                if (!autoSaveValidationReplays.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "RefereePassword":
                if (!refereePassword.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "RefereeMode":
                if (!refereeMode.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CurrentUseChangingValidationSeed":
                if (!currentUseChangingValidationSeed.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NextUseChangingValidationSeed":
                if (!nextUseChangingValidationSeed.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "ClientInputsMaxLatency":
                if (!clientInputsMaxLatency.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "DisableHorns":
                if (!disableHorns.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "DisableServiceAnnounces":     // sic
                if (!disableServiceAnnouncements.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #19
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "UId":
                if (!uId.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Name":
                if (!name.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "FileName":
                if (!filename.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Author":
                if (!author.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Environnement":     // [sic]
                if (!environment.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Mood":
                if (!mood.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "BronzeTime":
                if (!bronzeTime.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "SilverTime":
                if (!silverTime.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "GoldTime":
                if (!goldTime.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "AuthorTime":
                if (!authorTime.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "CopperPrice":
                if (!copperPrice.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "LapRace":
                if (!lapRace.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NbLaps":
                if (!nbLaps.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NbCheckpoints":
                if (!nbCheckpoints.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "MapType":
                if (!mapType.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "MapStyle":
                if (!mapStyle.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #20
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Login":
                if (!login.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NickName":
                if (!nickName.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "PlayerId":
                if (!playerId.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Rank":
                if (!rank.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "BestTime":
                if (!bestTime.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "BestCheckpoints":
                if (!bestCheckpoints.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "Score":
                if (!score.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NbrLapsFinished":
                if (!nbrLapsFinished.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "LadderScore":
                if (!ladderScore.ParseXml(value))
                {
                    return(false);
                }
                break;

            default:
                return(false);
            }

            return(true);
        }
コード例 #21
0
        /// <summary>
        /// Fills the property of this struct that has the correct name with the information contained in the member-XElement.
        /// </summary>
        /// <param name="member">The member element storing the information.</param>
        /// <returns>Whether it was successful or not.</returns>
        protected override bool parseXml(XElement member)
        {
            var value = getMemberValueElement(member);

            switch (getMemberName(member))
            {
            case "Login":
                if (!login.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "NickName":
                if (!nickName.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "PlayerId":
                if (!playerId.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "TeamId":
                if (!teamId.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "IsSpectator":
                if (!isSpectator.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "IsInOfficialMode":
                if (!isInOfficialMode.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "LadderRanking":
                if (!ladderRanking.ParseXml(value))
                {
                    return(false);
                }
                break;

            case "SpectatorStatus":
                // TODO: Do something about spectator status.
                // Should have 5 numerals, but method returns 7...
                break;

            case "Flags":
                //TODO: Do something about flags.
                break;

            default:
                return(false);
            }

            return(true);
        }