C# Class BusinessLogic.Logic.Players.PlayerRetriever

Inheritance: IPlayerRetriever
Afficher le fichier Open project: NemeStats/NemeStats Class Usage Examples

Méthodes publiques

Méthode Description
GetAllPlayers ( int gamingGroupId, bool includeInactive = true ) : List
GetAllPlayersWithNemesisInfo ( int gamingGroupId, IDateRangeFilter dateRangeFilter = null ) : List
GetPlayerDetails ( int playerId, int numberOfRecentGamesToRetrieve ) : PlayerDetails
GetPlayerIdForCurrentUser ( string applicationUserId, int gamingGroupId ) : int
GetPlayerQuickStatsForUser ( string applicationUserId, int gamingGroupId ) : PlayerQuickStats
GetPlayerStatistics ( int playerId ) : PlayerStatistics
GetPlayers ( List ids ) : List
GetPlayersToCreate ( string currentUserId, int currentGamingGroupId ) : PlayersToCreateModel
PlayerRetriever ( IDataContext dataContext, IPlayerRepository playerRepository, IPlayedGameRetriever playedGameRetriever ) : BusinessLogic.DataAccess

Private Methods

Méthode Description
GetAllPlayersInGamingGroupQueryable ( int gamingGroupId ) : IQueryable
GetChampionedGames ( int playerId ) : List
GetFormerChampionedGames ( int playerId ) : List
GetGameDefinitionTotals ( int playerId ) : GameDefinitionTotals
GetMinions ( int nemesisPlayerId ) : List
GetNemePointsSummary ( int playerId ) : NemePointsSummary
GetPlayerGameResultsWithPlayedGameAndGameDefinition ( int playerID, int numberOfRecentGamesToRetrieve ) : List
GetPlayerInfoForUser ( Player p ) : PlayerInfoForUser
GetPlayersToCreateQueryable ( Player currentUserPlayer, int gaminggruopid ) : IQueryable
GetTopLevelTotals ( GameDefinitionTotals gameDefinitionTotals ) : TopLevelTotals
PopulateAchivements ( List playersWithNemesis ) : void
PopulateNemePointsSummary ( int gamingGroupId, List playersWithNemesis, IDateRangeFilter dateRangeFilter ) : void
ValidatePlayerWasFound ( int playerId, Player returnPlayer ) : void

Method Details

GetAllPlayers() public méthode

public GetAllPlayers ( int gamingGroupId, bool includeInactive = true ) : List
gamingGroupId int
includeInactive bool
Résultat List

GetAllPlayersWithNemesisInfo() public méthode

public GetAllPlayersWithNemesisInfo ( int gamingGroupId, IDateRangeFilter dateRangeFilter = null ) : List
gamingGroupId int
dateRangeFilter IDateRangeFilter
Résultat List

GetPlayerDetails() public méthode

public GetPlayerDetails ( int playerId, int numberOfRecentGamesToRetrieve ) : PlayerDetails
playerId int
numberOfRecentGamesToRetrieve int
Résultat BusinessLogic.Models.Players.PlayerDetails

GetPlayerIdForCurrentUser() public méthode

public GetPlayerIdForCurrentUser ( string applicationUserId, int gamingGroupId ) : int
applicationUserId string
gamingGroupId int
Résultat int

GetPlayerQuickStatsForUser() public méthode

public GetPlayerQuickStatsForUser ( string applicationUserId, int gamingGroupId ) : PlayerQuickStats
applicationUserId string
gamingGroupId int
Résultat BusinessLogic.Models.Players.PlayerQuickStats

GetPlayerStatistics() public méthode

public GetPlayerStatistics ( int playerId ) : PlayerStatistics
playerId int
Résultat BusinessLogic.Models.Players.PlayerStatistics

GetPlayers() public méthode

public GetPlayers ( List ids ) : List
ids List
Résultat List

GetPlayersToCreate() public méthode

public GetPlayersToCreate ( string currentUserId, int currentGamingGroupId ) : PlayersToCreateModel
currentUserId string
currentGamingGroupId int
Résultat BusinessLogic.Models.Players.PlayersToCreateModel

PlayerRetriever() public méthode

public PlayerRetriever ( IDataContext dataContext, IPlayerRepository playerRepository, IPlayedGameRetriever playedGameRetriever ) : BusinessLogic.DataAccess
dataContext IDataContext
playerRepository IPlayerRepository
playedGameRetriever IPlayedGameRetriever
Résultat BusinessLogic.DataAccess