Table of Contents

Class SystemSettingsExtensions

Namespace
Geotab.Checkmate
Assembly
Geotab.Checkmate.ObjectModel.dll

The following class contains extensions for system settings

public static class SystemSettingsExtensions
Inheritance
SystemSettingsExtensions
Inherited Members

Methods

GetCustomCodeValue(SystemSettings, string)

Method searches for custom codes within a system settings instance without using DB/Cache, system settings instance may become stale.

public static string? GetCustomCodeValue(this SystemSettings systemSettings, string customCode)

Parameters

systemSettings SystemSettings

The instance of system settings

customCode string

The custom code to be searched

Returns

string

Matched regex value if, null if not found

HasCustomCode(SystemSettings, string)

Method searches for custom codes within a system settings instance without using DB/Cache, system settings instance may become stale.

public static bool HasCustomCode(this SystemSettings systemSettings, string customCode)

Parameters

systemSettings SystemSettings

The instance of system settings

customCode string

The custom code to be searched

Returns

bool

True or False depending if custom code is present