diff options
Diffstat (limited to 'MediaBrowser.Model')
3 files changed, 7 insertions, 18 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index afbe02dd36..76b2906069 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -76,6 +76,11 @@ namespace MediaBrowser.Model.Configuration /// <value><c>true</c> if this instance is port authorized; otherwise, <c>false</c>.</value> public bool IsPortAuthorized { get; set; } + /// <summary> + /// Gets or sets if quick connect is available for use on this server. + /// </summary> + public bool QuickConnectAvailable { get; set; } + public bool AutoRunWebApp { get; set; } public bool EnableRemoteAccess { get; set; } @@ -281,6 +286,7 @@ namespace MediaBrowser.Model.Configuration AutoRunWebApp = true; EnableRemoteAccess = true; + QuickConnectAvailable = false; EnableUPnP = false; MinResumePct = 5; diff --git a/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs b/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs index 32d7f6aba6..a10d60d57e 100644 --- a/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs +++ b/MediaBrowser.Model/QuickConnect/QuickConnectResult.cs @@ -18,11 +18,6 @@ namespace MediaBrowser.Model.QuickConnect 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; } diff --git a/MediaBrowser.Model/QuickConnect/QuickConnectResultDto.cs b/MediaBrowser.Model/QuickConnect/QuickConnectResultDto.cs index 19acc7cd88..26084caf1e 100644 --- a/MediaBrowser.Model/QuickConnect/QuickConnectResultDto.cs +++ b/MediaBrowser.Model/QuickConnect/QuickConnectResultDto.cs @@ -18,24 +18,14 @@ namespace MediaBrowser.Model.QuickConnect public string? Code { get; private set; } /// <summary> - /// Gets the public value used to uniquely identify this request. Can only be used to authorize the request. - /// </summary> - public string? Lookup { get; private set; } - - /// <summary> /// Gets the device friendly name. /// </summary> public string? FriendlyName { get; private set; } /// <summary> - /// Gets the DateTime that this request was created. - /// </summary> - public DateTime? DateAdded { get; private set; } - - /// <summary> /// Cast an internal quick connect result to a DTO by removing all sensitive properties. /// </summary> - /// <param name="result">QuickConnectResult object to cast</param> + /// <param name="result">QuickConnectResult object to cast.</param> public static implicit operator QuickConnectResultDto(QuickConnectResult result) { QuickConnectResultDto resultDto = new QuickConnectResultDto @@ -43,8 +33,6 @@ namespace MediaBrowser.Model.QuickConnect Authenticated = result.Authenticated, Code = result.Code, FriendlyName = result.FriendlyName, - DateAdded = result.DateAdded, - Lookup = result.Lookup }; return resultDto; |
