Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/AppointmentDto.cs @ 4133

Last change on this file since 4133 was 4133, checked in by cneumuel, 14 years ago
  • Made HiveExperiment storable, so that a running HiveExperiment can be disconnected, stored and later resumed. (#1115)
  • Added Log to each JobItem (#1115)
File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Runtime.Serialization;
6using HeuristicLab.DataAccess;
7using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
8
9namespace HeuristicLab.Hive.Contracts.BusinessObjects {
10 
11  [StorableClass]
12  [DataContract]
13  public class AppointmentDto: PersistableObject {
14    [Storable]
15    [DataMember]
16    public DateTime StartDate { get; set; }
17    [Storable]
18    [DataMember]
19    public DateTime EndDate { get; set; }
20    [Storable]
21    [DataMember]
22    public bool AllDayEvent { get; set; }
23    [Storable]
24    [DataMember]
25    public bool Recurring { get; set; }
26    [Storable]
27    [DataMember]
28    public Guid RecurringId { get; set; }
29    [Storable]
30    [DataMember]
31    public Guid ResourceId { get; set; }
32
33    public override Common.IDeepCloneable Clone(Common.Cloner cloner) {
34      AppointmentDto clone = (AppointmentDto)base.Clone(cloner);
35      clone.AllDayEvent = this.AllDayEvent;
36      clone.EndDate = this.EndDate;
37      clone.Recurring = this.Recurring;
38      clone.RecurringId = this.RecurringId;
39      clone.ResourceId = this.ResourceId;
40      clone.StartDate = this.StartDate;
41      return clone;
42    }
43  }
44}
Note: See TracBrowser for help on using the repository browser.