Changeset 2860 for branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment/PluginDescription.cs
- Timestamp:
- 02/24/10 14:34:07 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment/PluginDescription.cs
r2816 r2860 21 21 } 22 22 23 [DataMember(Name = "ContactInformation")] 24 private string contactInformation; 25 public string ContactInformation { 26 get { return contactInformation; } 23 [DataMember(Name = "ContactName")] 24 private string contactName; 25 public string ContactName { 26 get { return contactName; } 27 } 28 29 [DataMember(Name = "ContactEmail")] 30 private string contactEmail; 31 public string ContactEmail { 32 get { return contactEmail; } 27 33 } 28 34 … … 39 45 } 40 46 41 public PluginDescription(string name, Version version, IEnumerable<PluginDescription> dependencies, string contactInformation, string license) { 47 public PluginDescription(string name, Version version, IEnumerable<PluginDescription> dependencies, 48 string contactName, string contactEmail, string license) { 42 49 if (string.IsNullOrEmpty(name)) throw new ArgumentException("name is empty"); 43 if (version == null || dependencies == null || contactInformation == null || license == null) throw new ArgumentNullException(); 50 if (version == null || dependencies == null || 51 contactName == null || contactEmail == null || 52 license == null) throw new ArgumentNullException(); 44 53 this.name = name; 45 54 this.version = version; 46 55 this.dependencies = new List<PluginDescription>(dependencies); 47 56 this.licenseText = license; 48 this.contactInformation = contactInformation; 57 this.contactName = contactName; 58 this.contactEmail = contactEmail; 49 59 } 50 60 … … 54 64 55 65 public PluginDescription(string name, Version version, IEnumerable<PluginDescription> dependencies) 56 : this(name, version, dependencies, string.Empty, string.Empty ) {66 : this(name, version, dependencies, string.Empty, string.Empty, string.Empty) { 57 67 } 58 68 }
Note: See TracChangeset
for help on using the changeset viewer.