Ejemplo n.º 1
0
    private void OnSignedIn(Messages.PluginMessage msg)
    {
        OnScreenLog.Add(msg.ToString());
        ResultCode result = default(ResultCode);

        User.GetLastSignInError(out result);
        if (result.lastError == ErrorCode.NP_SIGNED_IN_FLIGHT_MODE)
        {
            OnScreenLog.Add("INFO: Signed in but flight mode is on");
        }
        else if (result.lastError != 0)
        {
            OnScreenLog.Add("Error: " + result.className + ": " + result.lastError + ", sce error 0x" + result.lastErrorSCE.ToString("X8"));
        }
    }
Ejemplo n.º 2
0
    private void OnUserGotProfile(Messages.PluginMessage msg)
    {
        User.UserProfile cachedUserProfile = User.GetCachedUserProfile();
        OnScreenLog.Add(msg.ToString());
        OnScreenLog.Add(" OnlineID: " + cachedUserProfile.get_onlineID());
        string @string = Encoding.get_Default().GetString(cachedUserProfile.get_npID());

        OnScreenLog.Add(" NpID: " + @string);
        OnScreenLog.Add(" Avatar URL: " + cachedUserProfile.get_avatarURL());
        OnScreenLog.Add(" Country Code: " + cachedUserProfile.get_countryCode());
        OnScreenLog.Add(" Language: " + cachedUserProfile.language);
        OnScreenLog.Add(" Age: " + cachedUserProfile.age);
        OnScreenLog.Add(" Chat Restrict: " + cachedUserProfile.chatRestricted);
        OnScreenLog.Add(" Content Restrict: " + cachedUserProfile.contentRestricted);
        SonyNpMain.SetAvatarURL(cachedUserProfile.get_avatarURL(), 0);
    }
Ejemplo n.º 3
0
 private void OnSomeEvent(Messages.PluginMessage msg)
 {
     OnScreenLog.Add(msg.ToString());
 }