Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. namespace StoreHoursModel
  5. {
  6. /// <summary>
  7. /// Status of the store
  8. /// </summary>
  9. public enum StoreStatus
  10. {
  11. open,
  12. closed,
  13. goneforlunch
  14. }
  15.  
  16. /// <summary>
  17. /// Commercial entity
  18. /// </summary>
  19. public class Store
  20. {
  21. public Schedule StoreSchedule { get; set; }
  22. }
  23.  
  24. /// <summary>
  25. /// WeeklySchedule is a collection of daily schedules
  26. /// </summary>
  27. public class Schedule
  28. {
  29. public List<DaySchedule> WeeklySchedule { get; set; }
  30. }
  31.  
  32. /// <summary>
  33. /// The single day schedule
  34. /// </summary>
  35. public class DaySchedule
  36. {
  37. public TimeSpan? OpeningHour { get; set; }
  38. public TimeSpan? ClosingHour { get; set; }
  39.  
  40. public StoreStatus Status { get; set; }
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement