Exemplo n.º 1
0
    private void OnGotRemoteUserProfile(Messages.PluginMessage msg)
    {
        User.RemoteUserProfile cachedRemoteUserProfile = User.GetCachedRemoteUserProfile();
        OnScreenLog.Add("Got Remote User Profile");
        OnScreenLog.Add(" OnlineID: " + cachedRemoteUserProfile.get_onlineID());
        string @string = Encoding.get_Default().GetString(cachedRemoteUserProfile.get_npID());

        OnScreenLog.Add(" NpID: " + @string);
        OnScreenLog.Add(" Avatar URL: " + cachedRemoteUserProfile.get_avatarURL());
        OnScreenLog.Add(" Country Code: " + cachedRemoteUserProfile.get_countryCode());
        OnScreenLog.Add(" Language: " + cachedRemoteUserProfile.language);
        SonyNpMain.SetAvatarURL(cachedRemoteUserProfile.get_avatarURL(), 1);
    }
Exemplo 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);
    }