C# Class JustPressPlay.ViewModels.EarningsViewModel

显示文件 Open project: RIT-MAGIC/JustPressPlay

Private Properties

Property Type Description

Public Methods

Method Description
Populate ( int id = null, int achievementID = null, int questID = null, bool friendsOf = false, int start = null, int count = null, int startComments = null, int countComments = null, UnitOfWork work = null ) : EarningsViewModel

Returns a list of earnings for the specified user. TODO: Secure this so users can't spoof and get non-friend info

SingleEarning ( int id, bool isAchievement ) : Earning

Method Details

Populate() public static method

Returns a list of earnings for the specified user. TODO: Secure this so users can't spoof and get non-friend info
public static Populate ( int id = null, int achievementID = null, int questID = null, bool friendsOf = false, int start = null, int count = null, int startComments = null, int countComments = null, UnitOfWork work = null ) : EarningsViewModel
id int The id of the player whose earnings should be returned
achievementID int Use this to return earnings relating to the specified achievement
questID int /// Use this to return earnings relating to the achievements that correspond /// to the specified quest. This overrides the "achievementID" parameter.\ ///
friendsOf bool Return earnings of players who are friends with the specified player instead?
start int The zero-based index of the first earning to return
count int How many earnings should be returned?
startComments int The zero-based index of the first comment to be returned
countComments int How many comments should be returned?
work JustPressPlay.Models.Repositories.UnitOfWork The unit of work for DB access. If null, one will be created
return EarningsViewModel

SingleEarning() public static method

public static SingleEarning ( int id, bool isAchievement ) : Earning
id int
isAchievement bool
return Earning