C# Class BolfTracker.Services.ShotService

Inheritance: IShotService
Afficher le fichier Open project: mkchandler/bolf-tracker-mvc

Méthodes publiques

Méthode Description
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

Method Details

Create() public méthode

public Create ( int gameId, int playerId, int holeId, int attempts, bool shotMade ) : void
gameId int
playerId int
holeId int
attempts int
shotMade bool
Résultat void

Delete() public méthode

public Delete ( int id ) : void
id int
Résultat void

DeleteToShot() public méthode

public DeleteToShot ( int gameId, int shotId ) : void
gameId int
shotId int
Résultat void

GetShot() public méthode

public GetShot ( int id ) : Shot
id int
Résultat Shot

GetShots() public méthode

public GetShots ( int gameId ) : IEnumerable
gameId int
Résultat IEnumerable

RecalculateShots() public méthode

public RecalculateShots ( int gameId ) : void
gameId int
Résultat void

ShotService() public méthode

public ShotService ( IShotRepository shotRepository, IShotTypeRepository shotTypeRepository, IGameRepository gameRepository, IPlayerRepository playerRepository, IHoleRepository holeRepository ) : System
shotRepository IShotRepository
shotTypeRepository IShotTypeRepository
gameRepository IGameRepository
playerRepository IPlayerRepository
holeRepository IHoleRepository
Résultat System

Update() public méthode

public Update ( int id, int points, ShotType shotType ) : void
id int
points int
shotType ShotType
Résultat void