LivenessSession Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Session result of detect liveness.
public class LivenessSession : System.ClientModel.Primitives.IJsonModel<Azure.AI.Vision.Face.LivenessSession>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Vision.Face.LivenessSession>
type LivenessSession = class
interface IJsonModel<LivenessSession>
interface IPersistableModel<LivenessSession>
Public Class LivenessSession
Implements IJsonModel(Of LivenessSession), IPersistableModel(Of LivenessSession)
- Inheritance
-
LivenessSession
- Implements
Properties
AuthTokenTimeToLiveInSeconds |
Seconds the session should last for. Range is 60 to 86400 seconds. Default value is 600. |
CreatedDateTime |
DateTime when this session was created. |
DeviceCorrelationId |
Unique Guid per each end-user device. This is to provide rate limiting and anti-hammering. If 'deviceCorrelationIdSetInClient' is true in this request, this 'deviceCorrelationId' must be null. |
Id |
The unique ID to reference this session. |
Result |
The latest session audit result only populated if status == 'ResultAvailable'. |
SessionExpired |
Whether or not the session is expired. |
SessionStartDateTime |
DateTime when this session was started by the client. |
Status |
The current status of the session. |
Explicit Interface Implementations
IJsonModel<LivenessSession>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<LivenessSession>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<LivenessSession>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<LivenessSession>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<LivenessSession>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |