Class BookingStatusReceiver

java.lang.Object
com.montytskyi.Statuses.Implementations.BookingStatusReceiver
All Implemented Interfaces:
StatusReceivable

public class BookingStatusReceiver extends Object implements StatusReceivable
An implementation class of the StatusReceivable interface which allows to create a status for the booking made by the user
  • Constructor Details

    • BookingStatusReceiver

      public BookingStatusReceiver()
  • Method Details

    • receiveStatus

      public Status receiveStatus(String statusLabel)
      A method implemented from the interface StatusReceivable which allows to receive a specific status of a user's booking
      Specified by:
      receiveStatus in interface StatusReceivable
      Parameters:
      statusLabel - - a string which defines a status of a booking
      Returns:
      Booking Status of an existing user's booking
      Throws:
      IllegalArgumentException