Class JurisdictionHelper
- Namespace
- Geotab.Checkmate.ObjectModel.Jurisdictional
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Jurisdiction related helpers.
public static class JurisdictionHelper
- Inheritance
-
JurisdictionHelper
- Inherited Members
Methods
IsCentralTimeZone(string)
If the provided Timezone is central.
public static bool IsCentralTimeZone(string timeZoneId)
Parameters
timeZoneId
stringThe Timezone.
Returns
- bool
Boolean indicating the Timezone provided is a central Timezone.
IsEasternTimeZone(string)
If the provided Timezone is eastern.
public static bool IsEasternTimeZone(string timeZoneId)
Parameters
timeZoneId
stringThe Timezone.
Returns
- bool
Boolean indicating the Timezone provided is a eastern Timezone.
IsMountainTimeZone(string)
If the provided Timezone is mountain time.
public static bool IsMountainTimeZone(string timeZoneId)
Parameters
timeZoneId
stringThe timeZoneId.
Returns
- bool
Boolean indicating the Timezone provided is a mountain Timezone.
IsPacificTimeZone(string)
If the provided Timezone is pacific.
public static bool IsPacificTimeZone(string timeZoneId)
Parameters
timeZoneId
stringThe Timezone.
Returns
- bool
Boolean indicating the Timezone provided is a pacific Timezone.
ParseFromEnum(Jurisdiction?)
Jurisdiction to it's string equivalent.
public static string ParseFromEnum(Jurisdiction? jurisdiction)
Parameters
jurisdiction
Jurisdiction?The jurisdiction.
Returns
- string
The string equivalent.
ParseFromString(string?)
String jurisdiction as enumerated equivalent.
public static Jurisdiction ParseFromString(string? jurisdiction)
Parameters
jurisdiction
stringThe jurisdiction as a string.
Returns
- Jurisdiction
The enumerated equivalent.
ServerLocationToJurisdiction(string?)
Identifies and returns the juristiction of the provided server location.
public static Jurisdiction ServerLocationToJurisdiction(string? location)
Parameters
location
stringThe server location.
Returns
- Jurisdiction
The jurisdiction.