Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logic to handle cancelled departures #13

Merged
merged 1 commit into from
May 14, 2023

Conversation

braintimeException
Copy link
Contributor

Hi,

I have added the logic to handle cancelled departures.

A departure can have a property cancelled set to true. Unfortunately, this property is not always present, but it is mentioned in the example response here https://github.com/public-transport/hafas-client/blob/5/docs/departures.md, and I have seen it a couple of times myself as well.

The changes introduce a cancelled property to the Departure class and updates the UI such that the cancelled departures appear struck-through by default and can be configured not to be shown entirely.

@braintimeException
Copy link
Contributor Author

should fix #9

Copy link
Owner

@vas3k vas3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I like it

@vas3k vas3k merged commit 047b869 into vas3k:main May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants