Profile Class

Class Diagram

Profile Class Diagram

Class Structure

public class Profile
{
    //Properties
    public string Location { get; set; }
    public string PsnId { get; set; }
    public string AvatarSmall { get; set; }
    public int? Level { get; set; }
    public int? Progress { get; set; }
    public TrophyCount TrophyCount { get; set; }
    public List<PlayedGame> PlayedGames { get; set; }

    //Constructors
    public Profile()

    //Methods
    public static Profile NewProfile(string psnId, string location)
    private static Profile GetUSProfile(string psnId)
}

Class Objects

Properties

Location : string
Playstation Network Location used the collect the information.

PsnId : string
Playstation Network ID collected on the Playstation Network.

AvatarSmall : string
The full URL for the small avatar image.

Level : Nullable<int>
The current level the user is in.

Progress : Nullable<int>
The progress the user to reach the next level, this value is a percentage value that variate from 1 to 100.

TrophyCount : TrophyCount
The trophy count to the user, this includes total, bronze, silver, gold and platinum trophies.

PlayedGames : List<PlayedGame>
A list of games the user have played and the total trophies for each one.

Constructors

Profile()
This class constructor does not execute any action.

Methods

NewProfile(psnId : string, location : string) : Profile
This method execute all the actions needed to collect the full profile information from Playstation Network
- psnId : string - The Playstation Network ID to be used in the collection.
- location : string - The Playstation Network Location to be used in the collection.
- return: Profile - The collected profile.

GetUSProfile(psnId : string) : Profile
This method execute all the actions needed to collect the full profile information from US Playstation Network
- psnId : string - The Playstation Network ID to be used in the collection.
- return: Profile - The collected profile.
Updated on Version 1.0.3852.30835.

Last edited Sep 21, 2010 at 4:28 PM by jmtvms, version 10

Comments

No comments yet.