jellyfin/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirectDtos/TokenDto.cs
2021-09-12 13:56:26 -06:00

48 lines
1.2 KiB
C#

using System;
using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
{
/// <summary>
/// The token dto.
/// </summary>
public class TokenDto
{
/// <summary>
/// Gets or sets the response code.
/// </summary>
[JsonPropertyName("code")]
public int Code { get; set; }
/// <summary>
/// Gets or sets the response message.
/// </summary>
[JsonPropertyName("message")]
public string? Message { get; set; }
/// <summary>
/// Gets or sets the server id.
/// </summary>
[JsonPropertyName("serverID")]
public string? ServerId { get; set; }
/// <summary>
/// Gets or sets the token.
/// </summary>
[JsonPropertyName("token")]
public string? Token { get; set; }
/// <summary>
/// Gets or sets the current datetime.
/// </summary>
[JsonPropertyName("datetime")]
public DateTime? TokenTimestamp { get; set; }
/// <summary>
/// Gets or sets the response message.
/// </summary>
[JsonPropertyName("response")]
public string? Response { get; set; }
}
}