C# Класс BolfTracker.Services.ShotService

Наследование: IShotService
Показать файл Открыть проект

Открытые методы

Метод Описание
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