Interface CarpoolingNotificationsService

All Known Implementing Classes:
CarpoolingNotificationsServiceImpl

public interface CarpoolingNotificationsService
Service in charge of the notification for carpooling requests and responses.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 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 seat
      matchId - Concerned match ID
      carId - ID of the selected car
      Throws:
      ApplicationException
    • notifyCarpoolingUpdate

      void notifyCarpoolingUpdate(Integer playerId, Integer matchId, Integer carId, boolean isCarSeatConfirmed) throws 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 seat
      matchId - Concerned match ID
      carId - ID of the selected car
      isCarSeatConfirmed - Whether the seat has been confirmed (carpooling request)
      Throws:
      ApplicationException