C# Class HaloShare.Services.GameTypeService

Inheritance: BaseService
Mostrar archivo Open project: ElDewrito/HaloShare

Public Methods

Method Description
AddVariant ( Models variant ) : void
GetByInternalId ( int id ) : Models.GameType
GetType ( int id ) : Models.GameType
GetTypeSelectlist ( int typeId ) : IEnumerable
GetTypes ( ) : IEnumerable
GetVariant ( int id ) : Models.GameTypeVariant
GetVariants ( int gameTypeId ) : IEnumerable
Rate ( int id, int userId, int value ) : ViewModels.RateResponse
Reply ( ViewModels model, int userId ) : int
SearchVariants ( string q, string orderBy, bool asc, int typeId, bool staffPick, int authorId, bool hideDeleted = true ) : IEnumerable
ValidateHash ( string md5Hash ) : Models.GameTypeVariant

Method Details

AddVariant() public method

public AddVariant ( Models variant ) : void
variant Models
return void

GetByInternalId() public method

public GetByInternalId ( int id ) : Models.GameType
id int
return Models.GameType

GetType() public method

public GetType ( int id ) : Models.GameType
id int
return Models.GameType

GetTypeSelectlist() public method

public GetTypeSelectlist ( int typeId ) : IEnumerable
typeId int
return IEnumerable

GetTypes() public method

public GetTypes ( ) : IEnumerable
return IEnumerable

GetVariant() public method

public GetVariant ( int id ) : Models.GameTypeVariant
id int
return Models.GameTypeVariant

GetVariants() public method

public GetVariants ( int gameTypeId ) : IEnumerable
gameTypeId int
return IEnumerable

Rate() public method

public Rate ( int id, int userId, int value ) : ViewModels.RateResponse
id int
userId int
value int
return ViewModels.RateResponse

Reply() public method

public Reply ( ViewModels model, int userId ) : int
model ViewModels
userId int
return int

SearchVariants() public method

public SearchVariants ( string q, string orderBy, bool asc, int typeId, bool staffPick, int authorId, bool hideDeleted = true ) : IEnumerable
q string
orderBy string
asc bool
typeId int
staffPick bool
authorId int
hideDeleted bool
return IEnumerable

ValidateHash() public method

public ValidateHash ( string md5Hash ) : Models.GameTypeVariant
md5Hash string
return Models.GameTypeVariant