Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/19/08 16:08:49 (16 years ago)
Author:
msteinbi
Message:

New methods defined in IClientCommunicator (new response classes and HeartBeatData class) (#351)

Location:
trunk/sources/HeuristicLab.Hive.Contracts
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Job.cs

    r751 r780  
    3131  public class Job {
    3232    [DataMember]
     33    public long JobId { get; set; }
     34    [DataMember]
    3335    public State State { get; set; }
    3436    [DataMember]
  • trunk/sources/HeuristicLab.Hive.Contracts/HeuristicLab.Hive.Contracts.csproj

    r751 r780  
    5656    <Compile Include="BusinessObjects\GrantedPermissions.cs" />
    5757    <Compile Include="BusinessObjects\ClientGroup.cs" />
     58    <Compile Include="BusinessObjects\HeartBeatData.cs" />
    5859    <Compile Include="BusinessObjects\Job.cs" />
    5960    <Compile Include="BusinessObjects\JobResult.cs" />
     
    6667    <Compile Include="BusinessObjects\User.cs" />
    6768    <Compile Include="BusinessObjects\UserGroup.cs" />
     69    <Compile Include="ResponseJob.cs" />
    6870    <Compile Include="HiveContractPlugin.cs" />
    6971    <Compile Include="Interfaces\IClientCommunicator.cs" />
    7072    <Compile Include="Properties\AssemblyInfo.cs" />
    7173    <Compile Include="Response.cs" />
     74    <Compile Include="ResponseHB.cs" />
    7275  </ItemGroup>
    7376  <ItemGroup>
  • trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IClientCommunicator.cs

    r751 r780  
    2727using HeuristicLab.Hive.Contracts.BusinessObjects;
    2828
    29 namespace HeuristicLab.Hive.Server.Interfaces {
     29namespace HeuristicLab.Hive.Contracts.Interfaces {
    3030  /// <summary>
    3131  /// This is the facade for the client communication
     
    3535    [OperationContract]
    3636    Response Login(Client clientInfo);
     37    [OperationContract]
     38    ResponseHB SendHeartBeat(HeartBeatData hbData);
     39    [OperationContract]
     40    ResponseJob PullJob(Guid clientId);
     41    [OperationContract]
     42    Response SendJobResult(JobResult Result, bool finished);
     43    [OperationContract]
     44    Response Logout(Guid clientId);
    3745  }
    3846}
  • trunk/sources/HeuristicLab.Hive.Contracts/Response.cs

    r744 r780  
    2424using System.Linq;
    2525using System.Text;
     26using System.Runtime.Serialization;
    2627
    27 namespace HeuristicLab.Hive.Server {
     28namespace HeuristicLab.Hive.Contracts {
    2829  /// <summary>
    2930  /// Server response class
    3031  /// </summary>
     32  [DataContract]
    3133  public class Response {
     34    [DataMember]
    3235    public bool Success { get; set; }
    33 
     36    [DataMember]
    3437    public string StatusMessage { get; set; }
    3538  }
Note: See TracChangeset for help on using the changeset viewer.