blob: 70ed51ac3f7051de40c6dc48529391ec5ae81387 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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.add(Reservation(ticket, password, note));
return Success;
}
|