C# Class BusinessLogic.Logic.Players.PlayerDeleter

Inheritance: IPlayerDeleter
Show file Open project: NemeStats/NemeStats

Public Methods

Method Description
DeletePlayer ( int playerId, ApplicationUser currentUser ) : void
PlayerDeleter ( IDataContext dataContext, IChampionRecalculator championRecalculator, INemesisRecalculator nemesisRecalculator ) : System

Private Methods

Method Description
ClearOutCurrentNemesis ( int nemesisId, ApplicationUser currentUser, HashSet playerIdsToClear ) : void
ClearOutPreviousNemesis ( int nemesisId, ApplicationUser currentUser ) : void
DeleteChampionRecords ( int playerId, ApplicationUser currentUser ) : void
DeletePlayerAchievements ( int playerId, ApplicationUser currentUser ) : void
DeletePlayerNemesesRecords ( int playerId, ApplicationUser currentUser ) : void
RecalculateChampions ( IEnumerable gameDefinitionIds, ApplicationUser currentUser ) : void
RecalculateNemesis ( IEnumerable playerIdsThatNeedNewNemesis, ApplicationUser currentUser ) : void
ValidatePlayer ( int playerId ) : void

Method Details

DeletePlayer() public method

public DeletePlayer ( int playerId, ApplicationUser currentUser ) : void
playerId int
currentUser ApplicationUser
return void

PlayerDeleter() public method

public PlayerDeleter ( IDataContext dataContext, IChampionRecalculator championRecalculator, INemesisRecalculator nemesisRecalculator ) : System
dataContext IDataContext
championRecalculator IChampionRecalculator
nemesisRecalculator INemesisRecalculator
return System