Class ConsentResult
- Inheritance
-
ConsentResult
- Inherited Members
- Namespace
- TabularEditor.Shared.Contracts.AI
- Assembly
- TabularEditor3.Shared.dll
The result of a consent request.
public class ConsentResult
- Extension Methods
Constructors
ConsentResult()
public ConsentResult()
Properties
Denied
Creates a denied result.
public static ConsentResult Denied { get; }
Property Value
| Type | Description |
|---|---|
| ConsentResult |
Duration
The duration for which consent was granted.
public ConsentDuration Duration { get; init; }
Property Value
| Type | Description |
|---|---|
| ConsentDuration |
Granted
Whether consent was granted.
public bool Granted { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Grant(ConsentDuration)
Creates a granted result with specified duration.
public static ConsentResult Grant(ConsentDuration duration)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsentDuration | duration |
Returns
| Type | Description |
|---|---|
| ConsentResult |