Class PoiCategoryExtensions
- Namespace
- XENBIT.ResQueServe.Core.Extensions
- Assembly
- RQS.Core.dll
public static class PoiCategoryExtensions
- Inheritance
-
PoiCategoryExtensions
- Inherited Members
Methods
GetOpeningHours(PoiCategory)
Gets the opening hours attribute for a POI category
public static OpeningHoursAttribute? GetOpeningHours(this PoiCategory category)
Parameters
categoryPoiCategoryThe POI category
Returns
- OpeningHoursAttribute
The OpeningHours attribute or null if not defined
HasOpeningHours(PoiCategory)
Checks if a POI category has opening hours defined
public static bool HasOpeningHours(this PoiCategory category)
Parameters
categoryPoiCategoryThe POI category
Returns
- bool
True if opening hours are defined
IsOpen(PoiCategory, DateTime)
Checks if the POI category is open at the specified date and time
public static bool IsOpen(this PoiCategory category, DateTime dateTime)
Parameters
categoryPoiCategoryThe POI category to check
dateTimeDateTimeThe date and time to check
Returns
- bool
True if the POI is open or no opening hours are defined, false if closed