C# 클래스 BusinessLogic.Logic.Players.PlayerSaver

상속: IPlayerSaver
파일 보기 프로젝트 열기: NemeStats/NemeStats

공개 메소드들

메소드 설명
CreatePlayer ( CreatePlayerRequest createPlayerRequest, ApplicationUser applicationUser, bool linkCurrentUserToThisPlayer = false ) : Player
PlayerSaver ( IDataContext dataContext, INemeStatsEventTracker eventTracker, INemesisRecalculator nemesisRecalculator ) : BusinessLogic.DataAccess
UpdatePlayer ( UpdatePlayerRequest updatePlayerRequest, ApplicationUser applicationUser ) : void

비공개 메소드들

메소드 설명
RecalculateNemeses ( Player player, ApplicationUser currentUser ) : void
Save ( Player player, ApplicationUser applicationUser ) : Player
ThrowPlayerAlreadyExistsExceptionIfPlayerExistsWithThisName ( string playerName, int gamingGroupId ) : void
ValidatePlayerIsNotNull ( Player player ) : void
ValidatePlayerNameIsNotNullOrWhiteSpace ( string playerName ) : void
ValidatePlayerWithThisNameDoesntAlreadyExist ( Player player, ApplicationUser currentUser ) : void

메소드 상세

CreatePlayer() 공개 메소드

public CreatePlayer ( CreatePlayerRequest createPlayerRequest, ApplicationUser applicationUser, bool linkCurrentUserToThisPlayer = false ) : Player
createPlayerRequest BusinessLogic.Models.Players.CreatePlayerRequest
applicationUser ApplicationUser
linkCurrentUserToThisPlayer bool
리턴 Player

PlayerSaver() 공개 메소드

public PlayerSaver ( IDataContext dataContext, INemeStatsEventTracker eventTracker, INemesisRecalculator nemesisRecalculator ) : BusinessLogic.DataAccess
dataContext IDataContext
eventTracker INemeStatsEventTracker
nemesisRecalculator INemesisRecalculator
리턴 BusinessLogic.DataAccess

UpdatePlayer() 공개 메소드

public UpdatePlayer ( UpdatePlayerRequest updatePlayerRequest, ApplicationUser applicationUser ) : void
updatePlayerRequest BusinessLogic.Models.Players.UpdatePlayerRequest
applicationUser ApplicationUser
리턴 void