Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ResponsePlugin.cs @ 4254

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

some small refactorings (#1159)

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