mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-02-09 17:52:39 -05:00
Initial commit
This commit is contained in:
36
Remote/IWeatherServiceDuplex.cs
Normal file
36
Remote/IWeatherServiceDuplex.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ServiceModel;
|
||||
using WeatherService.Devices;
|
||||
using WeatherService.Remote;
|
||||
using WeatherService.Values;
|
||||
|
||||
namespace WeatherService
|
||||
{
|
||||
[ServiceContract(CallbackContract = typeof(IWeatherServiceCallback))]
|
||||
public interface IWeatherServiceDuplex
|
||||
{
|
||||
[OperationContract]
|
||||
List<DeviceBase> GetDevices();
|
||||
|
||||
[OperationContract]
|
||||
ReadingBase GetLatestReading(string deviceAddress, WeatherValueType valueType);
|
||||
|
||||
[OperationContract]
|
||||
bool Subscribe();
|
||||
|
||||
[OperationContract]
|
||||
bool Unsubscribe();
|
||||
|
||||
[OperationContract]
|
||||
DeviceHistory GetDeviceHistory(string deviceAddress);
|
||||
|
||||
[OperationContract]
|
||||
Dictionary<DeviceBase, List<ReadingBase>> GetDeviceHistoryByValueType(WeatherValueType valueType);
|
||||
|
||||
[OperationContract]
|
||||
Dictionary<string, List<WindSpeedReading>> GetWindSpeedHistory(int groupIntervalMinutes);
|
||||
|
||||
[OperationContract]
|
||||
Dictionary<string, int> GetWindDirectionHistory();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user