using System; namespace MediaBrowser.Model.QuickConnect { /// /// Stores the state of an quick connect request. /// public class QuickConnectResult { /// /// Initializes a new instance of the class. /// /// The secret used to query the request state. /// The code used to allow the request. /// The time when the request was created. public QuickConnectResult(string secret, string code, DateTime dateAdded) { Secret = secret; Code = code; DateAdded = dateAdded; } /// /// Gets a value indicating whether this request is authorized. /// public bool Authenticated => Authentication != null; /// /// Gets the secret value used to uniquely identify this request. Can be used to retrieve authentication information. /// public string Secret { get; } /// /// Gets the user facing code used so the user can quickly differentiate this request from others. /// public string Code { get; } /// /// Gets or sets the private access token. /// public Guid? Authentication { get; set; } /// /// Gets or sets the DateTime that this request was created. /// public DateTime DateAdded { get; set; } } }