-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGenerateUIResponse.cs
33 lines (30 loc) · 1.44 KB
/
GenerateUIResponse.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright © 2023 Textkernel BV. All rights reserved.
// This file is provided for use by, or on behalf of, Textkernel licensees
// within the terms of their license of Textkernel products or Textkernel customers
// within the Terms of Service pertaining to the Textkernel SaaS products.
using System.Text.Json.Serialization;
namespace Textkernel.Tx.Models.API.Matching.UI
{
/// <summary>
/// The response body from a request to generate the Matching UI
/// </summary>
public class GenerateUIResponse
{
/// <summary>
/// The URL to navigate to (or set as the src for an iFrame) that will
/// display the Matching UI. This URL will be valid for at least 24 hours.
/// <br/><b>NOTE: for security purposes, you should redirect a user to the session
/// immediately after generating the session for that user</b>
/// <br/>For more info, see <see href="https://developer.textkernel.com/tx-platform/v10/matching-ui/overview/#authentication">here</see>
/// </summary>
[JsonPropertyName("url")]
public string URL { get; set; }
/// <summary>
/// The number of seconds until the URL auto-authentication expires. If you try
/// to use this URL after that period of time, the user will be asked to
/// login (if not already authenticated)
/// </summary>
[JsonPropertyName("expires_in")]
public int ExpiresIn { get; set; }
}
}