IDLive Face C# API 1.46.0
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Idrnd.FaceSdk.OptionalResult< T > Class Template Reference

Optional result wrapper, wraps an instance of a result class and only allows to access it when status is OK. More...

Public Member Functions

 StatusInfo (T value, StatusInfo status)
 Constructor

Parameters
valueResult value
statusStatus info

 
bool Ok ()
 Checks if status is OK.
 
override string ToString ()
 Returns string representation of object.
 

Properties

StatusInfo Status [get]
 Status info.
 
Value [get]
 Result value. Getter throws an exception if status is not OK. Use Ok() method before getter call to check if result is valid and available.
 

Detailed Description

Optional result wrapper, wraps an instance of a result class and only allows to access it when status is OK.

Member Function Documentation

◆ Ok()

bool Idrnd.FaceSdk.OptionalResult< T >.Ok ( )

Checks if status is OK.

Returns
True if status is OK, false otherwise

◆ ToString()

override string Idrnd.FaceSdk.OptionalResult< T >.ToString ( )

Returns string representation of object.

Returns
String representation of object

The documentation for this class was generated from the following file: