File size: 1,778 Bytes
e26fba6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace MovieFinder.Web
{
public class ScheduleModel
{
public ScheduleModel()
{
Dates = new List<DateTime>();
for (var i = 0; i < 30; i++)
Dates.Add(DateTime.Now.AddDays(i));
Activities = new List<Activity>();
}
public List<DateTime> Dates { get; set; }
public List<Activity> Activities { get; set; }
}
public class Activity
{
public string ActivityTitle { get; set; }
public bool IsAdult { get; set; }
public bool IsSeniorCitizen { get; set; }
public string Location { get; set; }
public string MoreInformation { get; set; }
public float Price { get; set; }
public int ClubNo { get; set; }
public string Day { get; set; }
public string Month { get; set; }
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public DateTime Date { get; set; }
//display stuff
public string DateText
{
get
{
return Date.ToShortDateString();
}
}
public string StartTimeText
{
get
{
return StartTime.ToShortTimeString();
}
}
public string EndTimeText
{
get
{
return EndTime.ToShortTimeString();
}
}
public string Club
{
get
{
return ScheduleService.clubs[ClubNo];
}
}
}
} |