Exemplo n.º 1
0
        public override ApolloLoginInfo FromString(string src)
        {
            ApolloStringParser parser = new ApolloStringParser(src);

            this.AccountInfo = parser.GetObject <ApolloAccountInfo>("AccountInfo");
            this.WaitingInfo = parser.GetObject <ApolloWaitingInfo>("WaitingInfo");
            string data = parser.GetString("ServerInfo");

            if (data != null)
            {
                this.ServerInfo = new ApolloServerRouteInfo();
                this.ServerInfo.FromString(data);
            }
            return(this);
        }
Exemplo n.º 2
0
        public override ApolloLoginInfo FromString(string src)
        {
            ApolloStringParser apolloStringParser = new ApolloStringParser(src);

            this.AccountInfo = apolloStringParser.GetObject <ApolloAccountInfo>("AccountInfo");
            this.WaitingInfo = apolloStringParser.GetObject <ApolloWaitingInfo>("WaitingInfo");
            string text = apolloStringParser.GetString("ServerInfo");

            if (text != null)
            {
                text            = ApolloStringParser.ReplaceApolloStringQuto(text);
                this.ServerInfo = new ApolloServerRouteInfo();
                this.ServerInfo.FromString(text);
            }
            return(this);
        }