Exemple #1
0
        private void SetUserProfile(GenieResponseWrapper inResponse)
        {
            UserID = inResponse.getStringResult("uid");
            SaveData.instance.SetUserID(UserID);
            m_UserProfileLoaded = true;

            string handle = inResponse.getStringResult("handle", string.Empty);

            IsAnonymousUser = UserID == EMPTY_UID || String.IsNullOrEmpty(handle);

            if (!IsAnonymousUser)
            {
                UserData             = new JSONClass();
                UserData["gender"]   = inResponse.getStringResult("gender", string.Empty);
                UserData["age"]      = inResponse.getIntResult("age").ToStringLookup();
                UserData["standard"] = inResponse.getIntResult("standard").ToStringLookup();
                UserLanguage         = inResponse.getStringResult("language", string.Empty);

                Logger.Log("Handle: \"{0}\"\nLanguage: \"{1}\"\nData: {2}", handle, UserLanguage, UserData.ToFormattedString());
            }

            LogStart();
        }