Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace StoreHoursModel
- {
- /// <summary>
- /// Status of the store
- /// </summary>
- public enum StoreStatus
- {
- open,
- closed,
- goneforlunch
- }
- /// <summary>
- /// Commercial entity
- /// </summary>
- public class Store
- {
- public Schedule StoreSchedule { get; set; }
- }
- /// <summary>
- /// WeeklySchedule is a collection of daily schedules
- /// </summary>
- public class Schedule
- {
- public List<DaySchedule> WeeklySchedule { get; set; }
- }
- /// <summary>
- /// The single day schedule
- /// </summary>
- public class DaySchedule
- {
- public TimeSpan? OpeningHour { get; set; }
- public TimeSpan? ClosingHour { get; set; }
- public StoreStatus Status { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement