C# Class JustPressPlay.ViewModels.PlayersListViewModel

Mostra file Open project: RIT-MAGIC/JustPressPlay

Public Methods

Method Description
Populate ( int start = null, int count = null, int userID = null, bool friendsWith = null, int earnedAchievement = null, int earnedQuest = null, UnitOfWork work = null ) : PlayersListViewModel

Populates a list of players

Method Details

Populate() public static method

Populates a list of players
public static Populate ( int start = null, int count = null, int userID = null, bool friendsWith = null, int earnedAchievement = null, int earnedQuest = null, UnitOfWork work = null ) : PlayersListViewModel
start int The zero-based index of the first player to return
count int The total number of players to return
userID int The user ID for friend-related stuff
friendsWith bool True for friends, false for non-friends, null for everywhere
earnedAchievement int Only return players who earned the specified achievement (by id)
earnedQuest int Only return players who earned the specified quest (by id)
work JustPressPlay.Models.Repositories.UnitOfWork The Unit of Work to use. If null, one will be created
return PlayersListViewModel