public static ElectoralClass GetElectoralClass(string electionKey) { var stateCode = GetStateCodeFromKey(electionKey); var countyCode = GetCountyCodeFromKey(electionKey); var localCode = GetLocalCodeFromKey(electionKey); return(Offices.GetElectoralClass(stateCode, countyCode, localCode)); }
public static bool IsStateOrFederal(this OfficeClass officeClass) { return(Offices.GetElectoralClass(officeClass) == Vote.ElectoralClass.State || officeClass.IsFederal()); }
public static bool IsState(this OfficeClass officeClass) { return(Offices.GetElectoralClass(officeClass) == Vote.ElectoralClass.State); }
public static bool IsLocal(this OfficeClass officeClass) { return(Offices.GetElectoralClass(officeClass) == Vote.ElectoralClass.Local); }
public static bool IsCounty(this OfficeClass officeClass) { return(Offices.GetElectoralClass(officeClass) == Vote.ElectoralClass.County); }
public static ElectoralClass ElectoralClass(this OfficeClass officeClass) { return(Offices.GetElectoralClass(officeClass)); }