source: src/main/java/com/example/rezevirajmasa/demo/service/ReservationService.java@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1package com.example.rezevirajmasa.demo.service;
2
3import com.example.rezevirajmasa.demo.model.Customer;
4import com.example.rezevirajmasa.demo.model.Reservation;
5import com.example.rezevirajmasa.demo.model.Restaurant;
6import com.example.rezevirajmasa.demo.model.TableEntity;
7
8import java.time.LocalDateTime;
9import java.util.List;
10
11public interface ReservationService {
12 public void makeReservation(Customer customer, TableEntity table, Restaurant restaurant, LocalDateTime localDateTime, LocalDateTime checkInTime, int partySize, String specialRequests);
13 public Reservation makeReservationRest(Reservation reservation);
14 public List<Reservation> listAll();
15 public Reservation findById(Long id);
16 public Reservation getReservationById(Long reservationId);
17 public boolean cancelReservation(Long reservationId);
18 public List<Reservation> findReservationByCustomer(Customer customer);
19 public List<Reservation> findReservationsByTableAndDateRange(TableEntity table, LocalDateTime startDateTime, LocalDateTime endDateTime);
20 List<Reservation> findReservationsToMove(LocalDateTime currentTime);
21 void deleteReservation(Long reservationID);
22}
Note: See TracBrowser for help on using the repository browser.