C# Class JustPressPlay.ViewModels.HomeViewModel

The view model for the homepage of the site
Show file Open project: RIT-MAGIC/JustPressPlay

Public Methods

Method Description
Populate ( int start = null, int count = null, int startComments = null, int countComments = null, bool includePublic = null, int newsCount = null, UnitOfWork work = null ) : HomeViewModel

Populates the timeline view model. If the user is logged in, the player's profile information and friends earnings will be included. If the user is not logged in, only public earnings will be included.

Method Details

Populate() public static method

Populates the timeline view model. If the user is logged in, the player's profile information and friends earnings will be included. If the user is not logged in, only public earnings will be included.
public static Populate ( int start = null, int count = null, int startComments = null, int countComments = null, bool includePublic = null, int newsCount = null, UnitOfWork work = null ) : HomeViewModel
start int The zero-based index of the first earning to return
count int The amount of earnings to return
startComments int
countComments int
includePublic bool Include public earnings? Only used when logged in.
newsCount int
work JustPressPlay.Models.Repositories.UnitOfWork Unit of work for DB access. If null, one will be created.
return HomeViewModel