@@ -19,7 +19,13 @@ def __init__(self, id, password, status):
19
19
self .__password = password
20
20
self .__status = status
21
21
22
- def changePassword (self ):
22
+ def check_password (self ):
23
+ pass
24
+
25
+ def create_user (self ):
26
+ pass
27
+
28
+ def logout_account (self ):
23
29
pass
24
30
25
31
@@ -33,10 +39,13 @@ def __init__(self, fullname, email, phone_number, address, birth_date, emergency
33
39
self .__emergency_contact_fullname = emergency_contact_fullname
34
40
self .__emergency_contact_phone_number = emergency_contact_phone_number
35
41
36
- def makeBooking (self ):
42
+ def add_booking (self , slot , description ):
37
43
pass
38
44
39
- def getBooking (self ):
45
+ def get_booking_detail (self ):
46
+ pass
47
+
48
+ def search_booking_by_id (self , id ):
40
49
pass
41
50
42
51
@@ -45,13 +54,10 @@ def __init__(self, fullname, email, phone_number, address, birth_date, emergency
45
54
super ().__init__ (fullname , email , phone_number , address , birth_date ,
46
55
emergency_contact_fullname , emergency_contact_phone_number )
47
56
48
- def addBooking (self ):
49
- pass
50
-
51
- def addSlot (self ):
57
+ def add_slot (self ):
52
58
pass
53
59
54
- def approveBooking (self ):
60
+ def approve_booking (self ):
55
61
pass
56
62
57
63
@@ -66,51 +72,54 @@ def __init__(self, fullname, email, phone_number, address, birth_date, emergency
66
72
super ().__init__ (fullname , email , phone_number , address , birth_date ,
67
73
emergency_contact_fullname , emergency_contact_phone_number )
68
74
69
- def addField (self ):
70
- pass
71
-
72
- def editField (self ):
75
+ def add_field (self , name , description , price_by_slot , category , type , slot ):
73
76
pass
74
77
75
- def deleteField (self ):
78
+ def edit_field (self , name , description , price_by_slot , category , type , slot ):
76
79
pass
77
80
78
- def addBooking (self ):
81
+ def delete_field (self ):
79
82
pass
80
83
81
- def approveBooking (self ):
84
+ def approve_booking (self ):
82
85
pass
83
86
84
- def addNews (self ):
87
+ def add_news (self , title , content , image_url , created_on , status ):
85
88
pass
86
89
87
- def editNews (self ):
90
+ def edit_news (self , title , content , image_url , created_on , status ):
88
91
pass
89
92
90
- def deleteNews (self ):
93
+ def delete_news (self ):
91
94
pass
92
95
93
- def addSlot (self ):
96
+ def add_slot (self , created_on , start_time , end_time ):
94
97
pass
95
98
96
- def editSlot (self ):
99
+ def edit_slot (self , created_on , start_time , end_time ):
97
100
pass
98
101
99
- def deleteSlot (self ):
102
+ def delete_slot (self ):
100
103
pass
101
104
102
- def blockUser (self ):
105
+ def block_user (self ):
103
106
pass
104
107
105
108
106
109
class Guest :
107
110
def __init__ (self ):
108
111
pass
109
112
110
- def registerAccount (self ):
113
+ def register_account (self ):
114
+ pass
115
+
116
+ def login_account (self ):
117
+ pass
118
+
119
+ def check_register (self ):
111
120
pass
112
121
113
- def loginAccount (self ):
122
+ def check_login (self ):
114
123
pass
115
124
116
125
@@ -133,11 +142,23 @@ def __init__(self, booking_id, status, created_on, description):
133
142
def cancel (self ):
134
143
pass
135
144
145
+ def create_payment (self ):
146
+ pass
147
+
148
+ def set_equipment (self ):
149
+ pass
150
+
151
+ def get_booking_detail (self ):
152
+ pass
153
+
136
154
137
155
class BookingHistory :
138
156
def __init__ (self , booking ):
139
157
self .__booking = booking
140
158
159
+ def search_booking_by_id (self ):
160
+ pass
161
+
141
162
142
163
class Equipment :
143
164
def __init__ (self , name , price , item ):
@@ -177,20 +198,20 @@ def __init__(self, name, description, price_by_slot, category, type):
177
198
self .__category = category
178
199
self .__type = type
179
200
180
- def getSlot (self ):
201
+ def get_slot (self , field , date ):
202
+ pass
203
+
204
+ def get_field_detail (self ):
181
205
pass
182
206
183
207
184
208
class Category :
185
209
def __init__ (self , fields ):
186
210
self .__field_category = fields
187
-
188
- def search_by_category (self ):
189
- pass
190
-
191
- def search_by_date (self ):
211
+
212
+ def search_field (self , date , catalog ):
192
213
pass
193
-
214
+
194
215
195
216
class Payment :
196
217
def __init__ (self , amount , created_on , payment_status , transaction_id ):
0 commit comments