forked from waruto210/TravelApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.py
25 lines (24 loc) · 870 Bytes
/
routes.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
class TravelRoute:
def __init__(self, by: str, code: str, price: int, des: str, depart_time: int,
duration: int, is_tag: bool = False, stay: int = 0,
timelimit_satisfy: bool = True):
"""
:param by: 交通工具
:param code: 编号
:param price: 价格
:param des: 目的地
:param depart_time: 出发时间
:param duration: 时长
:param is_tag: 标志该对象是否为标志
:param stay: 停留多久
:param timelimit_satisfy: 是否满足了用户的时间限制
"""
self.by = by
self.code = code
self.price = price
self.des = des
self.depart_time = depart_time
self.duration = duration
self.is_tag = is_tag
self.stay = stay
self.timelimit_satisfy = timelimit_satisfy