From 7d7b1919fdb526944aa996954e32ea9922aad6d3 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 16:28:07 +0300 Subject: Autocommit at 05.05.2022 @ 16:28 --- src/EventSystem/Event.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/EventSystem/Event.cpp') diff --git a/src/EventSystem/Event.cpp b/src/EventSystem/Event.cpp index 4d1637e..02640ce 100644 --- a/src/EventSystem/Event.cpp +++ b/src/EventSystem/Event.cpp @@ -4,10 +4,18 @@ Event::Event() : Event(nullptr, "", Date()) {} -Event::Event(const Hall* hall, String name, Date time) : tickets(), reservations() { +Event::Event(const Hall* hall, String name, Date date) : tickets(), reservations() { this->hall = hall; this->name = name; - this->time = time; + this->date = date; +} + +const Stirng& Event::get_name() const { + return name; +} + +const Date& Event::get_date() const { + return date; } StatusCode Event::reserveTicket(const Ticket& ticket, const char* password, const char* note) { -- cgit v1.3.1-23-gd82d