using Microsoft.AspNet.SignalR; using System.Collections.Generic; using WeatherService.Devices; using WeatherService.Remote; using WeatherService.Values; namespace WeatherService.SignalR { public class WeatherHub : Hub { public List GetDevices() { return WeatherServiceCommon.GetDevices(); } public ReadingBase GetLatestReading(string deviceAddress, WeatherValueType valueType) { return WeatherServiceCommon.GetLatestReading(deviceAddress, valueType); } public DeviceHistory GetDeviceHistory(string deviceAddress) { return WeatherServiceCommon.GetDeviceHistory(deviceAddress); } public Dictionary> GetDeviceHistoryByValueType(WeatherValueType valueType) { return WeatherServiceCommon.GetDeviceHistoryByValueType(valueType); } public Dictionary> GetWindSpeedHistory(int groupIntervalMinutes) { return WeatherServiceCommon.GetWindSpeedHistory(groupIntervalMinutes); } public Dictionary GetWindDirectionHistory() { return WeatherServiceCommon.GetWindDirectionHistory(); } } }