Table of Contents

Class SecurityIdConverter

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

The converter for converting a SecurityId and SecurityIdentifier.

public static class SecurityIdConverter
Inheritance
SecurityIdConverter
Inherited Members

Fields

SecurityIdKnownIdLookup

The lookup of knownIds to their Id in SecurityId table.

public static readonly ReadOnlyDictionary<Guid, Id> SecurityIdKnownIdLookup

Field Value

ReadOnlyDictionary<Guid, Id>

SecurityIdToSecurityIdentifierLookup

The lookup of SecurityIdentifier Enum to their knownIds.

public static readonly ReadOnlyDictionary<Id, SecurityIdentifier> SecurityIdToSecurityIdentifierLookup

Field Value

ReadOnlyDictionary<Id, SecurityIdentifier>

Methods

GetSecurityId(SecurityIdentifier)

This converts a system SecurityIdentifier to a SecurityId. This is only for system Ids.

public static SecurityId GetSecurityId(SecurityIdentifier securityIdentifier)

Parameters

securityIdentifier SecurityIdentifier

The security identifier to convert.

Returns

SecurityId

SecurityId

GetSecurityIdFromString(string)

Gets a SecurityId from a SecurityIdentifier as a string

public static SecurityId GetSecurityIdFromString(string securityIdentifier)

Parameters

securityIdentifier string

The string representation of the Enum SecurityIdentifier.

Returns

SecurityId

SecurityId

Exceptions

NotSupportedException

The securityIdentifier is not found

GetSecurityIdentifier(SecurityId?)

This converts a system SecurityId to a SecurityIdentifier. This is only for system Ids.

public static SecurityIdentifier? GetSecurityIdentifier(SecurityId? securityId)

Parameters

securityId SecurityId

The securityId.

Returns

SecurityIdentifier?

SecurityIdentifier