mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-26 17:25:06 -05:00
Initial commit
This commit is contained in:
31
Remote/IWeatherService.cs
Normal file
31
Remote/IWeatherService.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ServiceModel;
|
||||
using System.ServiceModel.Web;
|
||||
using WeatherService.Devices;
|
||||
using WeatherService.Remote;
|
||||
using WeatherService.Values;
|
||||
|
||||
namespace WeatherService
|
||||
{
|
||||
[ServiceContract]
|
||||
public interface IWeatherService
|
||||
{
|
||||
[WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
|
||||
List<DeviceBase> GetDevices();
|
||||
|
||||
[WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
|
||||
ReadingBase GetLatestReading(string deviceAddress, WeatherValueType valueType);
|
||||
|
||||
[WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
|
||||
DeviceHistory GetDeviceHistory(string deviceAddress);
|
||||
|
||||
[WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
|
||||
Dictionary<DeviceBase, List<ReadingBase>> GetDeviceHistoryByValueType(WeatherValueType valueType);
|
||||
|
||||
[WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
|
||||
Dictionary<string, List<WindSpeedReading>> GetWindSpeedHistory(int groupIntervalMinutes);
|
||||
|
||||
[WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
|
||||
Dictionary<string, int> GetWindDirectionHistory();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user