Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ResponseObjects/ResponseCalendar.cs @ 4263

Last change on this file since 4263 was 4263, checked in by cneumuel, 14 years ago

consolidated Response objects to use only StatusMessage with enums instead of strings.
removed Success property from Response. success is now represented by StatusMessage alone. (#1159)

File size: 950 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Runtime.Serialization;
6using HeuristicLab.Hive.Contracts.BusinessObjects;
7using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
8
9namespace HeuristicLab.Hive.Contracts.ResponseObjects {
10  [StorableClass]
11  [DataContract]
12  [Serializable]
13  public class ResponseCalendar : Response {
14    [Storable]
15    [DataMember]
16    public bool ForceFetch { get; set; }
17    [Storable]
18    [DataMember]
19    public IEnumerable<AppointmentDto> Appointments { get; set; }
20
21    public override Common.IDeepCloneable Clone(Common.Cloner cloner) {
22      ResponseCalendar clone = (ResponseCalendar) base.Clone(cloner);
23      clone.Appointments = (from a in this.Appointments
24                           select (AppointmentDto)cloner.Clone(a)).ToList();
25      clone.ForceFetch = this.ForceFetch;
26      return clone;
27    }
28  }
29}
Note: See TracBrowser for help on using the repository browser.