Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit18557907cef6c1e4ff039db91763ab4d7e8df4f6 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 09:32:09 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 09:32:09 +0300
Files25f461afea8e730ae79d9f4971d61dea9c33af86 /src
FMI-OOP-P1_TicketSystem-18557907cef6c1e4ff039db91763ab4d7e8df4f6.tar
FMI-OOP-P1_TicketSystem-18557907cef6c1e4ff039db91763ab4d7e8df4f6.tar.gz
FMI-OOP-P1_TicketSystem-18557907cef6c1e4ff039db91763ab4d7e8df4f6.zip
Parente3c4a555dabfe264b6e4e69b31a0022fe1af7cd4 (diff)
Autocommit at 07.05.2022 @ 09:32
2 files changed, 3 insertions, 3 deletions
-rw-r--r--src/Services/EventService.cpp4
-rw-r--r--src/Services/EventService.h2
diff --git a/src/Services/EventService.cpp b/src/Services/EventService.cpp
index 5fd9233..912b66b 100644
--- a/src/Services/EventService.cpp
+++ b/src/Services/EventService.cpp
@@ -36,11 +36,11 @@ EventService::EventService(const Event* events, unsigned eventCount) {
updateSoonestUpcoming();
}
-StatusCode EventService::createEvent(const Hall* hall, String name, Date date) {
+StatusCode EventService::createEvent(int hallNumber, const String& name, const Date& date) {
if (indexOfEvent(date) < events.get_count())
return E_EventWillOverlap;
- events.insert(Event(hall, name, date));
+ events.insert(Event(*hall, name, date));
return Success;
}
diff --git a/src/Services/EventService.h b/src/Services/EventService.h
index c856c58..f0dd5b3 100644
--- a/src/Services/EventService.h
+++ b/src/Services/EventService.h
@@ -19,7 +19,7 @@ public:
EventService();
EventService(const Event* events, unsigned eventCount);
- StatusCode createEvent(const Hall* hall, String name, Date date);
+ StatusCode createEvent(int hallNumber, const String& name, const Date& date);
StatusCode cancelEvent(const char* name, const Date& date);
StatusCode reserveTicket(const char* name, const Date& date, const char* password, const char* note, unsigned seatRow, unsigned seatColumn);