Website Summary Files Commits Branches @commit @diff @stats
path: root / src / EventSystem / Event.cpp
blob: cdbc0177e7225f1e2566498c013fb939d8ca5098 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "Event.h"
#include "StatusCodes.h"

Event::Event() : Event(nullptr, "", DateTime()) {}

Event::Event(const Hall* hall, String name, DateTime time) {
	this->hall = hall;
	this->name = name;
	this->time = time;
}

StatusCode Event::reserveTicket(const Ticket& ticket, const char* password, const char* note) {
	// TODO: if (reservations.contains(ticket) || tickets.contain(ticket)) return E_...
	reservations.insert(Reservation(ticket, password, note));
	return Success;
}

StatusCode Event::cancelReservation(const Ticket& ticket) {

}