Advertisement
easyswiftui

Untitled

May 24th, 2024
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.83 KB | None | 0 0
  1. class TaibEntry {
  2.   final String taibDate;
  3.   final String location;
  4.   final List<TwoPrayItems> twoPrayers;
  5.   final List<PrayItem> prayers;
  6.   final CurrentPrayItem currentPrayItem;
  7.   final ReminderItem reminderItem;
  8.  
  9.   TaibEntry({
  10.     required this.taibDate,
  11.     required this.location,
  12.     required this.twoPrayers,
  13.     required this.prayers,
  14.     required this.currentPrayItem,
  15.     required this.reminderItem,
  16.   });
  17. }
  18.  
  19. class TwoPrayItems {
  20.   final String icon;
  21.   final String name;
  22.   final String time;
  23.   final bool isPicked;
  24.  
  25.   TwoPrayItems({
  26.     required this.icon,
  27.     required this.name,
  28.     required this.time,
  29.     required this.isPicked,
  30.   });
  31. }
  32.  
  33. class PrayItem {
  34.   final String icon;
  35.   final String name;
  36.   final String time;
  37.   final bool isPicked;
  38.  
  39.   PrayItem({
  40.     required this.icon,
  41.     required this.name,
  42.     required this.time,
  43.     required this.isPicked,
  44.   });
  45. }
  46.  
  47. class CurrentPrayItem {
  48.   final String currentPrayName;
  49.   final String currentPrayTime;
  50.   final double progress;
  51.   final String timeBeforeNextPray;
  52.   final String nextPrayName;
  53.   final String nextPrayTime;
  54.  
  55.   CurrentPrayItem({
  56.     required this.currentPrayName,
  57.     required this.currentPrayTime,
  58.     required this.progress,
  59.     required this.timeBeforeNextPray,
  60.     required this.nextPrayName,
  61.     required this.nextPrayTime,
  62.   });
  63. }
  64.  
  65. class ReminderItem {
  66.   final String startIcon;
  67.   final String startName;
  68.   final String startTime;
  69.   final String endIcon;
  70.   final String endTime;
  71.   final String endName;
  72.   final double progress;
  73.   final String reminderText;
  74.  
  75.   ReminderItem({
  76.     required this.startIcon,
  77.     required this.startName,
  78.     required this.startTime,
  79.     required this.endIcon,
  80.     required this.endTime,
  81.     required this.endName,
  82.     required this.progress,
  83.     required this.reminderText,
  84.   });
  85. }
  86.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement