C# Class HaloShare.Services.GameTypeService

Inheritance: BaseService
Afficher le fichier Open project: ElDewrito/HaloShare

Méthodes publiques

Méthode 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 méthode

public AddVariant ( Models variant ) : void
variant Models
Résultat void

GetByInternalId() public méthode

public GetByInternalId ( int id ) : Models.GameType
id int
Résultat Models.GameType

GetType() public méthode

public GetType ( int id ) : Models.GameType
id int
Résultat Models.GameType

GetTypeSelectlist() public méthode

public GetTypeSelectlist ( int typeId ) : IEnumerable
typeId int
Résultat IEnumerable

GetTypes() public méthode

public GetTypes ( ) : IEnumerable
Résultat IEnumerable

GetVariant() public méthode

public GetVariant ( int id ) : Models.GameTypeVariant
id int
Résultat Models.GameTypeVariant

GetVariants() public méthode

public GetVariants ( int gameTypeId ) : IEnumerable
gameTypeId int
Résultat IEnumerable

Rate() public méthode

public Rate ( int id, int userId, int value ) : ViewModels.RateResponse
id int
userId int
value int
Résultat ViewModels.RateResponse

Reply() public méthode

public Reply ( ViewModels model, int userId ) : int
model ViewModels
userId int
Résultat int

SearchVariants() public méthode

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
Résultat IEnumerable

ValidateHash() public méthode

public ValidateHash ( string md5Hash ) : Models.GameTypeVariant
md5Hash string
Résultat Models.GameTypeVariant