using System; using Newtonsoft.Json; using TMDbLib.Utilities.Converters; namespace TMDbLib.Objects.Authentication { /// /// A request token is required in order to request a user authenticated session id. /// Request tokens will expire after 60 minutes. /// As soon as a valid session id has been created the token will be useless. /// public class Token { // This field is populated by custom code [JsonIgnore] public string AuthenticationCallback { get; set; } /// /// The date / time before which the token must be used, else it will expire. Time is expressed as local time. /// [JsonProperty("expires_at")] [JsonConverter(typeof(CustomDatetimeFormatConverter))] public DateTime ExpiresAt { get; set; } [JsonProperty("request_token")] public string RequestToken { get; set; } [JsonProperty("success")] public bool Success { get; set; } } }