diff options
Autocommit at 05.05.2022 @ 16:38
2 files changed, 3 insertions, 1 deletions
| -rw-r--r-- | src/EventSystem/Event.h | 2 | ||||
| -rw-r--r-- | src/EventSystem/EventSystem.h | 2 |
diff --git a/src/EventSystem/Event.h b/src/EventSystem/Event.h index c3159d9..efe0c00 100644 --- a/src/EventSystem/Event.h +++ b/src/EventSystem/Event.h @@ -16,6 +16,8 @@ class Event { String name; const Hall* hall; + unsigned freeSeats; + public: Event(); Event(const Hall* hall, String name, Date date); diff --git a/src/EventSystem/EventSystem.h b/src/EventSystem/EventSystem.h index 3db6343..080a479 100644 --- a/src/EventSystem/EventSystem.h +++ b/src/EventSystem/EventSystem.h @@ -25,7 +25,7 @@ public: StatusCode buyTicket(); void queryUpcoming(unsigned hallIndex); - unsigned queryFreeSeats(const char* name, const Date& dt); + const List<Ticket>& queryFreeSeats(const char* name, const Date& dt); void queryReservations(unsigned eventIndex); void queryBoughtTickets(Date start, Date end, unsigned hall); void queryMostVisited(); |
