C# Class BusinessLogic.Logic.Champions.ChampionRecalculator

Inheritance: IChampionRecalculator
Mostrar archivo Open project: NemeStats/NemeStats Class Usage Examples

Public Methods

Method Description
ChampionRecalculator ( IDataContext dataContext, IChampionRepository championRepository ) : System.Collections.Generic
RecalculateAllChampions ( ) : void
RecalculateChampion ( int gameDefinitionId, ApplicationUser applicationUser, bool allowedToClearExistingChampion = true ) : Champion

Private Methods

Method Description
ClearChampionId ( ApplicationUser applicationUser, GameDefinition gameDefinition ) : void
UpdateExistingChampionIfNecessary ( ApplicationUser applicationUser, Champion existingChampion, Champion newChampion ) : Champion

Method Details

ChampionRecalculator() public method

public ChampionRecalculator ( IDataContext dataContext, IChampionRepository championRepository ) : System.Collections.Generic
dataContext IDataContext
championRepository IChampionRepository
return System.Collections.Generic

RecalculateAllChampions() public method

public RecalculateAllChampions ( ) : void
return void

RecalculateChampion() public method

public RecalculateChampion ( int gameDefinitionId, ApplicationUser applicationUser, bool allowedToClearExistingChampion = true ) : Champion
gameDefinitionId int
applicationUser ApplicationUser
allowedToClearExistingChampion bool
return Champion