C# Class MonoSoftware.MonoX.Samples.Repositories.PopularGroupRepository

Repository for social network popular group-related functionality
Inheritance: MonoSoftware.MonoX.Repositories.GroupRepository
Mostra file Open project: MonoSoftware/MonoX-Sample-Solution

Public Methods

Method Description
GetInstance ( ) : PopularGroupRepository

Returns an instance of the repository class, wraps the constructor to allow for encapsulated instatiation, so the logic in he constructor can be changed without changing the client code. Reference: http://www.netobjectives.com/ezines/ez0405NetObj_PerspectivesOfUseVsCreationInOODesign.pdf

GetPopularGroups ( string category, System.Guid categoryId, int pageNumber, int pageSize, int &recordCount ) : List

Retrieves a list of groups matching the criteria specified via method parameters.

Protected Methods

Method Description
PopularGroupRepository ( ) : System

Constructor.

Method Details

GetInstance() public static method

Returns an instance of the repository class, wraps the constructor to allow for encapsulated instatiation, so the logic in he constructor can be changed without changing the client code. Reference: http://www.netobjectives.com/ezines/ez0405NetObj_PerspectivesOfUseVsCreationInOODesign.pdf
public static GetInstance ( ) : PopularGroupRepository
return PopularGroupRepository

GetPopularGroups() public method

Retrieves a list of groups matching the criteria specified via method parameters.
public GetPopularGroups ( string category, System.Guid categoryId, int pageNumber, int pageSize, int &recordCount ) : List
category string Category name.
categoryId System.Guid Category Id
pageNumber int Page number.
pageSize int Page size.
recordCount int Record count.
return List

PopularGroupRepository() protected method

Constructor.
protected PopularGroupRepository ( ) : System
return System