Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PluginInfrastructure Refactoring/HeuristicLab.Update.Service/IUpdateLocation.cs @ 2582

Last change on this file since 2582 was 2528, checked in by gkronber, 15 years ago

Worked on update location service. #799

File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Runtime.Serialization;
5using System.ServiceModel;
6using System.Text;
7using System.IO;
8
9namespace 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.