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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Runtime.Serialization;
|
---|
6 | using HeuristicLab.Hive.Contracts.BusinessObjects;
|
---|
7 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
8 |
|
---|
9 | namespace 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.