C# Class JustPressPlay.ViewModels.QuestsListViewModel

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

Private Properties

Property Type Description

Public Methods

Method Description
Populate ( int userID = null, bool completedQuests = false, bool partiallyCompletedQuests = false, bool incompleteQuests = false, bool inactiveQuests = false, bool trackedQuests = false, bool userGeneratedQuests = false, int start = null, int count = null, String search = null, UnitOfWork work = null ) : QuestsListViewModel

Populates a view model with a list of quests

Method Details

Populate() public static method

Populates a view model with a list of quests
public static Populate ( int userID = null, bool completedQuests = false, bool partiallyCompletedQuests = false, bool incompleteQuests = false, bool inactiveQuests = false, bool trackedQuests = false, bool userGeneratedQuests = false, int start = null, int count = null, String search = null, UnitOfWork work = null ) : QuestsListViewModel
userID int The id of a user for user-related searches
completedQuests bool Only include completed quests?
partiallyCompletedQuests bool Only include partially completed quests?
incompleteQuests bool Only include fully incomplete quests?
inactiveQuests bool Include inactive quests?
trackedQuests bool Show only tracked quests?
userGeneratedQuests bool Include user generated quests?
start int
count int
search String A string for searching
work JustPressPlay.Models.Repositories.UnitOfWork The unit of work for DB access. If null, one will be created.
return QuestsListViewModel