AnalogIO / coffeecard_app

Cross-platform coffee card app for Cafe Analog
https://www.cafeanalog.dk/app
MIT License
6 stars 1 forks source link

Fix uncaught error in ServerException #402

Closed marfavi closed 1 year ago

marfavi commented 1 year ago

Use Failures instead of exceptions where possible

Make message in ServerFailure.fromResponse nullable; catch FormatException (happens when empty string gets parsed)

Remove interface fo OpeningHoursRemoteDataSource, since its implementation was in the same file

Improve logic that generates opening hours from list of shifts; now all days that don't have shifts are closed (no assumptions are made about what days are closed)

fremartini commented 1 year ago

@marfavi @TTA777 https://github.com/AnalogIO/coffeecard_app/pull/404

fremartini commented 1 year ago

closed by #404