C# 클래스 UI.Transformations.PlayerTransformations.PlayerDetailsViewModelBuilder

상속: IPlayerDetailsViewModelBuilder
파일 보기 프로젝트 열기: NemeStats/NemeStats 1 사용 예제들

공개 메소드들

메소드 설명
Build ( PlayerDetails playerDetails, string urlForMinionBragging, ApplicationUser currentUser = null ) : PlayerDetailsViewModel
PlayerDetailsViewModelBuilder ( IGameResultViewModelBuilder builder, IMinionViewModelBuilder minionViewModelBuilder, IMapperFactory mapperFactory ) : AutoMapper

비공개 메소드들

메소드 설명
GetWinPercentage ( PlayerVersusPlayerStatistics playerVersusPlayerStatistics ) : decimal
PopulateNemesisData ( Nemesis nemesis, PlayerDetailsViewModel playerDetailsViewModel ) : void
PopulatePlayerGameResults ( PlayerDetails playerDetails, PlayerDetailsViewModel playerDetailsViewModel ) : void
PopulatePlayerVersusPlayersViewModel ( PlayerDetails playerDetails, PlayerDetailsViewModel playerDetailsViewModel ) : void
SetAveragePointsPerGame ( PlayerDetails playerDetails, PlayerDetailsViewModel playerDetailsViewModel ) : void
SetAveragePointsPerPlayer ( PlayerDetails playerDetails, PlayerDetailsViewModel playerDetailsViewModel ) : void
SetChampionedGames ( PlayerDetails playerDetails, PlayerDetailsViewModel playerDetailsViewModel ) : void
SetFormerChampionedGames ( PlayerDetails playerDetails, PlayerDetailsViewModel playerDetailsViewModel ) : void
SetTwitterBraggingUrlIfThePlayerIsTheCurrentlyLoggedInUser ( PlayerDetails playerDetails, string urlForMinionBragging, ApplicationUser currentUser, PlayerDetailsViewModel playerDetailsViewModel ) : void
SetUserCanEditFlag ( PlayerDetails playerDetails, ApplicationUser currentUser, PlayerDetailsViewModel playerDetailsViewModel ) : void
Validate ( PlayerDetails playerDetails ) : void
ValidateChampionedGames ( PlayerDetails playerDetails ) : void
ValidateFormerChampionedGames ( PlayerDetails playerDetails ) : void
ValidateMinions ( PlayerDetails playerDetails ) : void
ValidatePlayerDetailsIsNotNull ( PlayerDetails playerDetails ) : void
ValidatePlayerGameResultsIsNotNull ( PlayerDetails playerDetails ) : void
ValidatePlayerStatisticsIsNotNull ( PlayerDetails playerDetails ) : void

메소드 상세

Build() 공개 메소드

public Build ( PlayerDetails playerDetails, string urlForMinionBragging, ApplicationUser currentUser = null ) : PlayerDetailsViewModel
playerDetails BusinessLogic.Models.Players.PlayerDetails
urlForMinionBragging string
currentUser ApplicationUser
리턴 UI.Models.Players.PlayerDetailsViewModel

PlayerDetailsViewModelBuilder() 공개 메소드

public PlayerDetailsViewModelBuilder ( IGameResultViewModelBuilder builder, IMinionViewModelBuilder minionViewModelBuilder, IMapperFactory mapperFactory ) : AutoMapper
builder IGameResultViewModelBuilder
minionViewModelBuilder IMinionViewModelBuilder
mapperFactory IMapperFactory
리턴 AutoMapper