Implement weather calculations in the service

This commit is contained in:
2020-07-17 12:31:56 +00:00
parent 4c8649fe31
commit ec0b3c9eb1
10 changed files with 263 additions and 77 deletions

View File

@@ -0,0 +1,12 @@
using System;
namespace ChrisKaczor.HomeMonitor.Weather.Service
{
public static class Extensions
{
public static bool IsBetween<T>(this T item, T start, T end) where T : IComparable
{
return item.CompareTo(start) >= 0 && item.CompareTo(end) <= 0;
}
}
}