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.PluginInfrastructure;
|
---|
7 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
8 |
|
---|
9 | namespace 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.