Class GatewayServiceResult
- Namespace
- Geotab.Checkmate.ObjectModel.Registration.Gateway
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Root class containing common elements for the requests to the Gateway service.
public class GatewayServiceResult
- Inheritance
-
GatewayServiceResult
- Derived
- Inherited Members
Remarks
The API will generate and throw exceptions. We will package them and add additional properties where applicable.
Constructors
GatewayServiceResult(Exception?, DateTime?)
Initializes a new instance of the GatewayServiceResult class.
protected GatewayServiceResult(Exception? exception, DateTime? attemptedDateTime)
Parameters
exception
ExceptionThe exception to encapsulate.
attemptedDateTime
DateTime?The attempted registration date/time.
Properties
AttemptedDateTime
Gets the attempted date/time (UTC).
public DateTime? AttemptedDateTime { get; }
Property Value
Exception
Gets the Gateway registration exception.
public Exception? Exception { get; }
Property Value
ExceptionMessage
Gets the exception message.
public string? ExceptionMessage { get; }
Property Value
ExceptionType
Gets the exception type.
public string? ExceptionType { get; }
Property Value
IsSuccess
Gets a value indicating whether the request was successful.
public bool IsSuccess { get; }