You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
393 B
13 lines
393 B
class TrainStationPresenter:
|
|
def __init__(self, data):
|
|
self.data = data
|
|
|
|
def as_dict(self):
|
|
return {
|
|
"index": self.data.index,
|
|
"trainNo": self.data.train_no,
|
|
"name": self.data.station_name,
|
|
"arrTime": self.data.arrival_time,
|
|
"depTime": self.data.departure_time,
|
|
"price": self.data.price,
|
|
} |