Class Request


@Entity public class Request extends Notificable
A request for Concrete Shift exchange.
  • Constructor Details

    • Request

      protected Request()
      Default constructor needed by Lombok
    • Request

      public Request(User sender, User receiver, ConcreteShift turn, Observer observer)
  • Method Details

    • getNotification

      public Notification getNotification()
      This function creates a notification which, based on the status, can change the recipient of the notification.
      Specified by:
      getNotification in class Notificable
      Returns:
      a new notification for the shift change request
    • setStatus

      public void setStatus(RequestStatus status)
      Set the status of the request to status.
      Parameters:
      status - new status for the request