-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel.py
45 lines (36 loc) · 1.2 KB
/
model.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
class Officer:
def __init__(self, static_data, vacation=None, officer_count=None, officer_extreme_count=None):
self.__name = static_data.get('name')
self.__status = static_data.get('status')
self.__country = static_data.get('country')
self.__state = static_data.get('state')
self.__vacation = vacation
self.__officer_count = officer_count
self.__officer_extreme_count = officer_extreme_count
@property
def name(self):
return self.__name
@property
def status(self):
return self.__status
@property
def country(self):
return self.__country
@property
def state(self):
return self.__state
@property
def vacation(self):
return self.__vacation
@property
def officer_count(self):
return self.__officer_count
@officer_count.setter
def officer_count(self, officer_count):
self.__officer_count = officer_count
@property
def officer_extreme_count(self):
return self.__officer_extreme_count
@officer_extreme_count.setter
def officer_extreme_count(self, officer_extreme_count):
self.__officer_extreme_count = officer_extreme_count