From b63f615fd4f92f40394d04c9ae764b35aadc000d Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Thu, 15 Apr 2021 07:39:59 -0600 Subject: Enable nullability for ServerDiscoveryInfo (#5804) --- .../ApiClient/ServerDiscoveryInfo.cs | 41 ++++++++++++++-------- 1 file changed, 26 insertions(+), 15 deletions(-) (limited to 'MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs') diff --git a/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs b/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs index fcc90a1f7..f9f474586 100644 --- a/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs +++ b/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs @@ -1,32 +1,43 @@ -#nullable disable -#pragma warning disable CS1591 - namespace MediaBrowser.Model.ApiClient { + /// + /// The server discovery info model. + /// public class ServerDiscoveryInfo { /// - /// Gets or sets the address. + /// Initializes a new instance of the class. + /// + /// The server address. + /// The server id. + /// The server name. + /// The endpoint address. + public ServerDiscoveryInfo(string address, string id, string name, string? endpointAddress = null) + { + Address = address; + Id = id; + Name = name; + EndpointAddress = endpointAddress; + } + + /// + /// Gets the address. /// - /// The address. - public string Address { get; set; } + public string Address { get; } /// - /// Gets or sets the server identifier. + /// Gets the server identifier. /// - /// The server identifier. - public string Id { get; set; } + public string Id { get; } /// - /// Gets or sets the name. + /// Gets the name. /// - /// The name. - public string Name { get; set; } + public string Name { get; } /// - /// Gets or sets the endpoint address. + /// Gets the endpoint address. /// - /// The endpoint address. - public string EndpointAddress { get; set; } + public string? EndpointAddress { get; } } } -- cgit v1.2.3