Exemple #1
0
        public JsonSite(string name, List <JsonDay> days)
        {
            this.name = name;
            this.days = days;

            if (days.Count > 0)
            {
                this.stats = days.Last().stats;
            }
        }
Exemple #2
0
 public void AddDay(JsonDay day)
 {
     days.Add(day);
     this.stats = days.Last().stats;
 }
Exemple #3
0
 public JsonDay(string date, stats stats)
 {
     this.date  = date;
     this.stats = stats;
 }