diff options
| author | WWWesten <4700006+WWWesten@users.noreply.github.com> | 2021-11-01 23:43:29 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-01 23:43:29 +0500 |
| commit | 0a14279e2a21bcb9654a06a2d49e1e4f0cc5329c (patch) | |
| tree | e1b1bd603b011ca98e5793e356326bf4a35a7050 /MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs | |
| parent | f2817fef743eeb75a00782ceea363b2d3e7dc9f2 (diff) | |
| parent | 76eeb8f655424d295e73ced8349c6fefee6ddb12 (diff) | |
Merge branch 'jellyfin:master' into master
Diffstat (limited to 'MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs')
| -rw-r--r-- | MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs | 41 |
1 files changed, 29 insertions, 12 deletions
diff --git a/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs b/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs index d1f3577f7..f9f474586 100644 --- a/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs +++ b/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs @@ -1,26 +1,43 @@ namespace MediaBrowser.Model.ApiClient { + /// <summary> + /// The server discovery info model. + /// </summary> public class ServerDiscoveryInfo { /// <summary> - /// Gets or sets the address. + /// Initializes a new instance of the <see cref="ServerDiscoveryInfo"/> class. /// </summary> - /// <value>The address.</value> - public string Address { get; set; } + /// <param name="address">The server address.</param> + /// <param name="id">The server id.</param> + /// <param name="name">The server name.</param> + /// <param name="endpointAddress">The endpoint address.</param> + public ServerDiscoveryInfo(string address, string id, string name, string? endpointAddress = null) + { + Address = address; + Id = id; + Name = name; + EndpointAddress = endpointAddress; + } + /// <summary> - /// Gets or sets the server identifier. + /// Gets the address. /// </summary> - /// <value>The server identifier.</value> - public string Id { get; set; } + public string Address { get; } + /// <summary> - /// Gets or sets the name. + /// Gets the server identifier. /// </summary> - /// <value>The name.</value> - public string Name { get; set; } + public string Id { get; } + /// <summary> - /// Gets or sets the endpoint address. + /// Gets the name. /// </summary> - /// <value>The endpoint address.</value> - public string EndpointAddress { get; set; } + public string Name { get; } + + /// <summary> + /// Gets the endpoint address. + /// </summary> + public string? EndpointAddress { get; } } } |
