MGS-Developers / my-mgs

The MyMGS app's mobile-native client
MIT License
1 stars 0 forks source link

Make a function to stringify club timings #2

Closed palkerecsenyi closed 3 years ago

palkerecsenyi commented 3 years ago

We have a class ClubTime that looks something like this:

enum DayOfWeek {
  Monday,
  Tuesday,
  Wednesday,
  Thursday,
  Friday,
  Saturday,
  Sunday
}

class ClubTime {
  DayOfWeek dayOfWeek;
  TimeOfDay time;
}

Add an instance method to the ClubTime class to convert the class instance to a user-friendly string (e.g. 'Every Tuesday at 1:30PM'). I've added a comment to club_time.dart to show you where you need to add this method.