aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2020-09-03 14:54:00 +0200
committerGitHub <noreply@github.com>2020-09-03 14:54:00 +0200
commit2f9b4825550c97d1432033958d7a016d8775dff9 (patch)
tree0b896551a3f0d955122190ff6217e6bbd4e16dda /MediaBrowser.Model/QuickConnect/QuickConnectResult.cs
parentc7b5bc55a1ac985c46b918e4b6208ea1f4ae0b2f (diff)
parent8c28824c8878e409ca426e4860dc3f05521f39b8 (diff)
Merge branch 'master' into master
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; }
+ }
+}