Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/19/10 12:41:05 (14 years ago)
Author:
cneumuel
Message:

consolidated Response objects to use only StatusMessage with enums instead of strings.
removed Success property from Response. success is now represented by StatusMessage alone. (#1159)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/CgCalendar.cs

    r4253 r4263  
    1313using HeuristicLab.Hive.Contracts;
    1414using System.Collections;
     15using HeuristicLab.Hive.Contracts.ResponseObjects;
    1516
    1617namespace HeuristicLab.Hive.Server.ServerConsole {
     
    5556      onlineTimes.Clear();
    5657      ResponseList<AppointmentDto> response = ServiceLocator.GetClientManager().GetUptimeCalendarForResource(ResourceId);
    57       if(response.Success) {
     58      if(response.StatusMessage == ResponseStatus.Ok) {
    5859        foreach (AppointmentDto appointmentDto in response.List) {
    5960          onlineTimes.Add(new Appointment {
Note: See TracChangeset for help on using the changeset viewer.