-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPacket.cpp
More file actions
81 lines (62 loc) · 1.61 KB
/
Packet.cpp
File metadata and controls
81 lines (62 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#include "Packet.h"
Packet::Packet() {}
Packet::Packet(string id, vector<string> sites, Date begin, Date end, string pricePerPerson, string maxPersons, string boughtTickets) {
this->id = id;
this->sites = sites;
this->begin = begin;
this->end = end;
this->pricePerPerson = pricePerPerson;
this->maxPersons = maxPersons;
this->boughtTickets = boughtTickets;
}
Packet::Packet(vector<string> sites, Date begin, Date end, string pricePerPerson, string maxPersons) {
this->sites = sites;
this->begin = begin;
this->end = end;
this->pricePerPerson = pricePerPerson;
this->maxPersons = maxPersons;
}
// metodos GET
string Packet::getId() const {
return id;
}
vector<string> Packet::getSites() const {
return sites;
}
Date Packet::getBeginDate() const {
return begin;
}
Date Packet::getEndDate() const {
return end;
}
string Packet::getPricePerPerson() const {
return pricePerPerson;
}
string Packet::getMaxPersons() const {
return maxPersons;
}
string Packet::getBoughtTickets() const {
return boughtTickets;
}
// metodos SET
void Packet::setId(string id) {
this->id = id;
}
void Packet::setSites(vector<string> sites) {
this->sites = sites;
}
void Packet::setBeginDate(Date begin) {
this->begin = begin;
}
void Packet::setEndDate(Date end) {
this->end = end;
}
void Packet::setPricePerPerson(string pricePerPerson) {
this->pricePerPerson = pricePerPerson;
}
void Packet::setMaxPersons(string maxPersons) {
this->maxPersons = maxPersons;
}
void Packet::setBoughtTickets(string boughtTickets) {
this->boughtTickets = boughtTickets;
}