-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDto.py
More file actions
32 lines (25 loc) · 823 Bytes
/
Dto.py
File metadata and controls
32 lines (25 loc) · 823 Bytes
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
class Vaccine:
def __init__(self, id, date, supplier, quantity):
self.id = int(id)
self.date = date
self.supplier = int(supplier)
self.quantity = int(quantity)
class Supplier:
def __init__(self, id, name, logistic):
self.id = int(id)
self.name = name
self.logistic = int(logistic)
def get_name(self):
return self.name
class Clinic:
def __init__(self, id, location, demand, logistic):
self.id = int(id)
self.location = location
self.demand = int(demand)
self.logistic = int(logistic)
class Logistic:
def __init__(self, id, name, count_sent, count_received):
self.id = int(id)
self.name = name
self.count_sent = int(count_sent)
self.count_received = int(count_received)