Interface CarpoolingNotificationsService
public interface CarpoolingNotificationsService
Service in charge of the notification for carpooling requests and responses.
-
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.
-
Method Details
-
notifyCarpoolingRequest
void notifyCarpoolingRequest(Integer playerId, Integer matchId, Integer carId) throws net.andresbustamante.yafoot.commons.exceptions.ApplicationException Sends a notification to the driver of the car selected by a player for a carpooling request.- Parameters:
playerId
- ID of the player asking for a seatmatchId
- Concerned match IDcarId
- ID of the selected car- Throws:
net.andresbustamante.yafoot.commons.exceptions.ApplicationException
-
notifyCarpoolingUpdate
void notifyCarpoolingUpdate(Integer playerId, Integer matchId, Integer carId, boolean isCarSeatConfirmed) throws net.andresbustamante.yafoot.commons.exceptions.ApplicationException Sends a notification to the player that asked for the seat on the given car with the answer from its driver.- 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:
net.andresbustamante.yafoot.commons.exceptions.ApplicationException
-