Class TermsPolicy
A policy of the Terms stage, such as terms of service, that the user reads and accepts, in one language.
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Core
Assembly: Uniform.Matrix.Protocol.Core.dll
Syntax
public sealed record TermsPolicy : IEquatable<TermsPolicy>
Properties
| Edit this page View SourceId
Policy key, e.g. terms_of_service.
Declaration
public required string Id { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Name for people, e.g. Terms of Service.
Declaration
public required string Name { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Url
Address of the policy document.
Declaration
public required string Url { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Version
Version of the policy.
Declaration
public string? Version { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceFrom(UserInteractiveAuthResponse, string)
Return the policies of the Terms stage in response, in language when offered, else English, else the first language; empty without the stage.
Declaration
public static IReadOnlyList<TermsPolicy> From(UserInteractiveAuthResponse response, string language = "en")
Parameters
| Type | Name | Description |
|---|---|---|
| UserInteractiveAuthResponse | response | |
| string | language |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<TermsPolicy> |