Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Runtime.Serialization;
|
---|
5 | using System.ServiceModel;
|
---|
6 | using System.Text;
|
---|
7 | using System.IO;
|
---|
8 |
|
---|
9 | namespace HeuristicLab.Update.Service {
|
---|
10 | [ServiceContract]
|
---|
11 | public interface IUpdateLocation {
|
---|
12 |
|
---|
13 | [OperationContract]
|
---|
14 | IEnumerable<PluginInformation> GetAvailablePluginsByName(string name);
|
---|
15 |
|
---|
16 | [OperationContract]
|
---|
17 | IEnumerable<byte[]> GetPluginFiles(PluginInformation info);
|
---|
18 | }
|
---|
19 |
|
---|
20 |
|
---|
21 | [DataContract]
|
---|
22 | public class PluginInformation {
|
---|
23 | private string name;
|
---|
24 | [DataMember]
|
---|
25 | public string Name {
|
---|
26 | get { return name; }
|
---|
27 | set { name = value; }
|
---|
28 | }
|
---|
29 | private Version version;
|
---|
30 | [DataMember]
|
---|
31 | public Version Version {
|
---|
32 | get { return version; }
|
---|
33 | set { version = value; }
|
---|
34 | }
|
---|
35 | private DateTime buildDate;
|
---|
36 | [DataMember]
|
---|
37 | public DateTime BuildDate {
|
---|
38 | get { return buildDate; }
|
---|
39 | set { buildDate = value; }
|
---|
40 | }
|
---|
41 |
|
---|
42 | public PluginInformation(string name, Version version, DateTime buildDate)
|
---|
43 | : base() {
|
---|
44 | this.name = name;
|
---|
45 | this.version = version;
|
---|
46 | this.buildDate = buildDate;
|
---|
47 | }
|
---|
48 | }
|
---|
49 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.