Last change
on this file since 2802 was
2802,
checked in by gkronber, 14 years ago
|
Worked on administration front-end for deployment service. #860 (Deployment server for plugin installation from web locations)
|
File size:
1.1 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Runtime.Serialization;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Services.Deployment.DataAccess {
|
---|
8 | [DataContract(Name = "ProductDescription")]
|
---|
9 | public class ProductDescription {
|
---|
10 | [DataMember(Name = "Name")]
|
---|
11 | private string name;
|
---|
12 | public string Name {
|
---|
13 | get { return name; }
|
---|
14 | }
|
---|
15 |
|
---|
16 | [DataMember(Name = "Version")]
|
---|
17 | private Version version;
|
---|
18 | public Version Version {
|
---|
19 | get { return version; }
|
---|
20 | }
|
---|
21 |
|
---|
22 | [DataMember(Name = "Plugins")]
|
---|
23 | private IEnumerable<PluginDescription> plugins;
|
---|
24 | public IEnumerable<PluginDescription> Plugins {
|
---|
25 | get { return plugins; }
|
---|
26 | }
|
---|
27 |
|
---|
28 | public ProductDescription(string name, Version version, IEnumerable<PluginDescription> plugins) {
|
---|
29 | this.name = name;
|
---|
30 | this.version = version;
|
---|
31 | this.plugins = new List<PluginDescription>(plugins).AsReadOnly();
|
---|
32 | }
|
---|
33 |
|
---|
34 | public ProductDescription(string name, Version version) : this(name, version, Enumerable.Empty<PluginDescription>()) { }
|
---|
35 | }
|
---|
36 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.