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
SecurityIdToSecurityIdentifierLookup
The lookup of SecurityIdentifier Enum to their knownIds.
public static readonly ReadOnlyDictionary<Id, SecurityIdentifier> SecurityIdToSecurityIdentifierLookup
Field Value
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
SecurityIdentifierThe security identifier to convert.
Returns
GetSecurityIdFromString(string)
Gets a SecurityId from a SecurityIdentifier as a string
public static SecurityId GetSecurityIdFromString(string securityIdentifier)
Parameters
securityIdentifier
stringThe string representation of the Enum SecurityIdentifier.
Returns
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
SecurityIdThe securityId.