Class DataDetectionResult
Represents the result of data detection.
Implements
Inherited Members
Namespace: DevToys.Api
Assembly: DevToys.Api.dll
Syntax
public record DataDetectionResult : IEquatable<DataDetectionResult>
Constructors
DataDetectionResult(bool, object?)
Represents the result of data detection.
Declaration
public DataDetectionResult(bool Success, object? Data)
Parameters
Type | Name | Description |
---|---|---|
bool | Success | A value indicating whether the data detection was successful. |
object | Data | The detected data. |
Fields
Unsuccessful
Represents an unsuccessful data detection result.
Declaration
public static readonly DataDetectionResult Unsuccessful
Field Value
Type | Description |
---|---|
DataDetectionResult |
Properties
Data
Gets the detected data.
Declaration
public object? Data { get; init; }
Property Value
Type | Description |
---|---|
object |
DataType
Gets the type of the detected data.
Declaration
public Type? DataType { get; }
Property Value
Type | Description |
---|---|
Type |
Success
Gets a value indicating whether the data detection was successful.
Declaration
public bool Success { get; init; }
Property Value
Type | Description |
---|---|
bool |