From c55181eb93174ddf6e8eff743c187c309bc50d36 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 16:38:11 +0300 Subject: Autocommit at 05.05.2022 @ 16:38 --- src/EventSystem/Event.h | 2 ++ src/EventSystem/EventSystem.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/EventSystem') 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& queryFreeSeats(const char* name, const Date& dt); void queryReservations(unsigned eventIndex); void queryBoughtTickets(Date start, Date end, unsigned hall); void queryMostVisited(); -- cgit v1.3.1-26-gb76a