C# Class JustPressPlay.ViewModels.EarningCommentsViewModel

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

Private Properties

Property Type Description

Public Methods

Method Description
Populate ( int id = null, bool isAchievement = true, int instanceID = null, int achievementID = null, int questID = null, int start = null, int count = null, bool includeDeleted = null, UnitOfWork work = null ) : EarningCommentsViewModel

Returns a populated list of earning comments TODO: Test once we have comments!

Method Details

Populate() public static method

Returns a populated list of earning comments TODO: Test once we have comments!
public static Populate ( int id = null, bool isAchievement = true, int instanceID = null, int achievementID = null, int questID = null, int start = null, int count = null, bool includeDeleted = null, UnitOfWork work = null ) : EarningCommentsViewModel
id int The id of the user who's achievement the comments are on (requires 'achievementID' to be present as well)
isAchievement bool
instanceID int
achievementID int The id of the achievement template the comments are on (requires 'id' to be present as well)
questID int
start int The zero-based index of the first comment to get
count int How many comments should be returned?
includeDeleted bool Should deleted comments be included? TODO: Require specific roles for this!
work JustPressPlay.Models.Repositories.UnitOfWork The unit of work for DB access. If null, one will be created
return EarningCommentsViewModel