diff options
| author | ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> | 2020-04-15 14:28:42 -0500 |
|---|---|---|
| committer | ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> | 2020-04-15 14:49:20 -0500 |
| commit | 36f3e933a23d802d154c16fd304a82c3fe3f453d (patch) | |
| tree | 4c4bc33b45b6aa0bf4d5f1883e926225b8ef8fb7 /MediaBrowser.Model/QuickConnect/QuickConnectResult.cs | |
| parent | d7df890017d2663b5ec70ce798d0775c7f4c5dbd (diff) | |
Add quick connect
Diffstat (limited to 'MediaBrowser.Model/QuickConnect/QuickConnectResult.cs')
| -rw-r--r-- | MediaBrowser.Model/QuickConnect/QuickConnectResult.cs | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs b/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs new file mode 100644 index 000000000..bc3fd0046 --- /dev/null +++ b/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs @@ -0,0 +1,50 @@ +using System; + +namespace MediaBrowser.Model.QuickConnect +{ + /// <summary> + /// Stores the result of an incoming quick connect request. + /// </summary> + public class QuickConnectResult + { + /// <summary> + /// Gets a value indicating whether this request is authorized. + /// </summary> + public bool Authenticated => !string.IsNullOrEmpty(Authentication); + + /// <summary> + /// Gets or sets the secret value used to uniquely identify this request. Can be used to retrieve authentication information. + /// </summary> + public string Secret { get; set; } + + /// <summary> + /// Gets or sets the public value used to uniquely identify this request. Can only be used to authorize the request. + /// </summary> + public string Lookup { get; set; } + + /// <summary> + /// Gets or sets the user facing code used so the user can quickly differentiate this request from others. + /// </summary> + public string Code { get; set; } + + /// <summary> + /// Gets or sets the device friendly name. + /// </summary> + public string FriendlyName { get; set; } + + /// <summary> + /// Gets or sets the private access token. + /// </summary> + public string Authentication { get; set; } + + /// <summary> + /// Gets or sets an error message. + /// </summary> + public string Error { get; set; } + + /// <summary> + /// Gets or sets the DateTime that this request was created. + /// </summary> + public DateTime DateAdded { get; set; } + } +} |
