diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-07-26 23:02:32 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-07-26 23:02:32 +0200 |
| commit | 501de7b6dcbeeb124cc0a2a84f21be4ec19be8ec (patch) | |
| tree | 2eeb7e7a92c20639fdbbb7484bf08a339866a6ec /Emby.Dlna/Eventing | |
| parent | b024059f7120a901974c0ec673371b819b23bdfd (diff) | |
Enable nullable in more files
Diffstat (limited to 'Emby.Dlna/Eventing')
| -rw-r--r-- | Emby.Dlna/Eventing/DlnaEventManager.cs | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/Emby.Dlna/Eventing/DlnaEventManager.cs b/Emby.Dlna/Eventing/DlnaEventManager.cs index 2e672b886b..3c91360904 100644 --- a/Emby.Dlna/Eventing/DlnaEventManager.cs +++ b/Emby.Dlna/Eventing/DlnaEventManager.cs @@ -51,11 +51,7 @@ namespace Emby.Dlna.Eventing return GetEventSubscriptionResponse(subscriptionId, requestedTimeoutString, timeoutSeconds); } - return new EventSubscriptionResponse - { - Content = string.Empty, - ContentType = "text/plain" - }; + return new EventSubscriptionResponse(string.Empty, "text/plain"); } public EventSubscriptionResponse CreateEventSubscription(string notificationType, string requestedTimeoutString, string callbackUrl) @@ -103,20 +99,12 @@ namespace Emby.Dlna.Eventing _subscriptions.TryRemove(subscriptionId, out _); - return new EventSubscriptionResponse - { - Content = string.Empty, - ContentType = "text/plain" - }; + return new EventSubscriptionResponse(string.Empty, "text/plain"); } private EventSubscriptionResponse GetEventSubscriptionResponse(string subscriptionId, string requestedTimeoutString, int timeoutSeconds) { - var response = new EventSubscriptionResponse - { - Content = string.Empty, - ContentType = "text/plain" - }; + var response = new EventSubscriptionResponse(string.Empty, "text/plain"); response.Headers["SID"] = subscriptionId; response.Headers["TIMEOUT"] = string.IsNullOrEmpty(requestedTimeoutString) ? ("SECOND-" + timeoutSeconds.ToString(_usCulture)) : requestedTimeoutString; |
