Class CarpoolingNotificationsServiceImpl
java.lang.Object
net.andresbustamante.yafoot.core.services.impl.CarpoolingNotificationsServiceImpl
- All Implemented Interfaces:
CarpoolingNotificationsService
@Service
public class CarpoolingNotificationsServiceImpl
extends Object
implements CarpoolingNotificationsService
-
Constructor Summary
ConstructorsConstructorDescriptionCarpoolingNotificationsServiceImpl
(MatchDao matchDao, PlayerDao playerDao, CarDao carDao, org.springframework.context.MessageSource messageSource, TemplateUtils templateUtils, MessagingService messagingService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
notifyCarpoolingRequest
(Integer playerId, Integer matchId, Integer carId) Sends a notification to the driver of the car selected by a player for a carpooling request.void
notifyCarpoolingUpdate
(Integer playerId, Integer matchId, Integer carId, boolean isCarSeatConfirmed) Sends a notification to the player that asked for the seat on the given car with the answer from its driver.
-
Constructor Details
-
CarpoolingNotificationsServiceImpl
public CarpoolingNotificationsServiceImpl(MatchDao matchDao, PlayerDao playerDao, CarDao carDao, org.springframework.context.MessageSource messageSource, TemplateUtils templateUtils, MessagingService messagingService)
-
-
Method Details
-
notifyCarpoolingRequest
@Transactional public void notifyCarpoolingRequest(Integer playerId, Integer matchId, Integer carId) throws ApplicationException Description copied from interface:CarpoolingNotificationsService
Sends a notification to the driver of the car selected by a player for a carpooling request.- Specified by:
notifyCarpoolingRequest
in interfaceCarpoolingNotificationsService
- Parameters:
playerId
- ID of the player asking for a seatmatchId
- Concerned match IDcarId
- ID of the selected car- Throws:
ApplicationException
-
notifyCarpoolingUpdate
@Transactional public void notifyCarpoolingUpdate(Integer playerId, Integer matchId, Integer carId, boolean isCarSeatConfirmed) throws ApplicationException Description copied from interface:CarpoolingNotificationsService
Sends a notification to the player that asked for the seat on the given car with the answer from its driver.- Specified by:
notifyCarpoolingUpdate
in interfaceCarpoolingNotificationsService
- Parameters:
playerId
- ID of the player asking for a seatmatchId
- Concerned match IDcarId
- ID of the selected carisCarSeatConfirmed
- Whether the seat has been confirmed (carpooling request)- Throws:
ApplicationException
-