IDLive Face C# API  1.50.5
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
More...
 
bool Ok ()
 Checks if status is OK More...
 
override string ToString ()
 Returns string representation of object More...
 

Properties

StatusInfo Status [get]
 Status info More...
 
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 More...
 

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

◆ StatusInfo()

Idrnd.FaceSdk.OptionalResult< T >.StatusInfo ( value,
StatusInfo  status 
)

Constructor

Parameters
valueResult value
statusStatus info

◆ ToString()

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

Returns string representation of object

Returns
String representation of object

Property Documentation

◆ Status

Status info

◆ Value

T Idrnd.FaceSdk.OptionalResult< T >.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


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