-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflight_data.py
75 lines (56 loc) · 1.62 KB
/
flight_data.py
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
class FlightData:
_from: str
_to: str
_start: str
_end: str
_airlines: []
_passengers: int
_price: int
_connections: []
_url: str
def __init__(self, _from, _to, _start, _url, _end=None, _airlines=None, _passengers=1, _price=None, _connections=None,):
self._from = _from
self._to = _to
self._start = _start
self._end = _end
self._airlines = _airlines
self._passengers = _passengers
self._price = _price
self._connections = _connections
self._url = _url
def set_from(self, _from):
self._from = _from
def set_to(self, _to):
self._to = _to
def set_start(self, _start):
self._start = _start
def set_end(self, _end):
self._end = _end
def set_airlines(self, _airlines):
self._airlines = _airlines
def set_passengers(self, _passengers):
self._passengers = _passengers
def set_price(self, _price):
self._price = _price
def set_connections(self, _connections):
self._connections = _connections
def set_url(self, _url):
self._url = _url
def get_from(self):
return self._from
def get_to(self):
return self._to
def get_start(self):
return self._start
def get_end(self):
return self._end
def get_airlines(self):
return self._airlines
def get_passengers(self):
return self._passengers
def get_price(self):
return self._price
def get_connections(self):
return self._connections
def get_url(self):
return self._url