Changeset 4755 for branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/UpTimeStatisticsDto.cs
- Timestamp:
- 11/09/10 15:18:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/UpTimeStatisticsDto.cs
r4424 r4755 24 24 using HeuristicLab.DataAccess; 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Common; 26 27 27 28 namespace HeuristicLab.Hive.Contracts.BusinessObjects { … … 40 41 public DateTime Logout { get; set; } 41 42 42 public override Common.IDeepCloneable Clone(Common.Cloner cloner) { 43 UpTimeStatisticsDto clone = (UpTimeStatisticsDto) base.Clone(cloner); 44 clone.Slave = (SlaveDto)cloner.Clone(this.Slave); 45 clone.Login = this.Login; 46 clone.Logout = this.Logout; 47 return clone; 43 public UpTimeStatisticsDto() { } 44 [StorableConstructor] 45 protected UpTimeStatisticsDto(bool deserializing) : base(deserializing) { } 46 protected UpTimeStatisticsDto(UpTimeStatisticsDto original, Cloner cloner) 47 : base(original, cloner) { 48 this.Slave = cloner.Clone(original.Slave); 49 this.Login = original.Login; 50 this.Logout = original.Logout; 51 } 52 public override IDeepCloneable Clone(Cloner cloner) { 53 return new UpTimeStatisticsDto(this, cloner); 48 54 } 49 55 }
Note: See TracChangeset
for help on using the changeset viewer.