Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem
diff options
context:
space:
mode:
2 files changed, 3 insertions, 1 deletions
-rw-r--r--src/EventSystem/Event.h2
-rw-r--r--src/EventSystem/EventSystem.h2
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();