C# 클래스 BolfTracker.Services.ShotService

상속: IShotService
파일 보기 프로젝트 열기: mkchandler/bolf-tracker-mvc

공개 메소드들

메소드 설명
Create ( int gameId, int playerId, int holeId, int attempts, bool shotMade ) : void
Delete ( int id ) : void
DeleteToShot ( int gameId, int shotId ) : void
GetShot ( int id ) : Shot
GetShots ( int gameId ) : IEnumerable
RecalculateShots ( int gameId ) : void
ShotService ( IShotRepository shotRepository, IShotTypeRepository shotTypeRepository, IGameRepository gameRepository, IPlayerRepository playerRepository, IHoleRepository holeRepository ) : System
Update ( int id, int points, ShotType shotType ) : void

메소드 상세

Create() 공개 메소드

public Create ( int gameId, int playerId, int holeId, int attempts, bool shotMade ) : void
gameId int
playerId int
holeId int
attempts int
shotMade bool
리턴 void

Delete() 공개 메소드

public Delete ( int id ) : void
id int
리턴 void

DeleteToShot() 공개 메소드

public DeleteToShot ( int gameId, int shotId ) : void
gameId int
shotId int
리턴 void

GetShot() 공개 메소드

public GetShot ( int id ) : Shot
id int
리턴 Shot

GetShots() 공개 메소드

public GetShots ( int gameId ) : IEnumerable
gameId int
리턴 IEnumerable

RecalculateShots() 공개 메소드

public RecalculateShots ( int gameId ) : void
gameId int
리턴 void

ShotService() 공개 메소드

public ShotService ( IShotRepository shotRepository, IShotTypeRepository shotTypeRepository, IGameRepository gameRepository, IPlayerRepository playerRepository, IHoleRepository holeRepository ) : System
shotRepository IShotRepository
shotTypeRepository IShotTypeRepository
gameRepository IGameRepository
playerRepository IPlayerRepository
holeRepository IHoleRepository
리턴 System

Update() 공개 메소드

public Update ( int id, int points, ShotType shotType ) : void
id int
points int
shotType ShotType
리턴 void