aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-09-03 07:46:52 -0600
committercrobibero <cody@robibe.ro>2020-09-03 07:46:52 -0600
commitfb422ff7411aaedb36d9cb90cc6cc61dd2859a0f (patch)
treea40f3d83f025a8227bfcf64c9ad8c93828eb5ba3 /MediaBrowser.Model/QuickConnect/QuickConnectResult.cs
parentae8ff1ca54fd5a4081c2e63a5ea1505ba0a69657 (diff)
parenta2d6ea2eed58b5cd1ecb519e3eda820f336d5485 (diff)
Merge remote-tracking branch 'upstream/master' into http-client-migrate
Diffstat (limited to 'MediaBrowser.Model/QuickConnect/QuickConnectResult.cs')
-rw-r--r--MediaBrowser.Model/QuickConnect/QuickConnectResult.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs b/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs
new file mode 100644
index 000000000..0fa40b6a7
--- /dev/null
+++ b/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs
@@ -0,0 +1,40 @@
+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 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 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; }
+ }
+}