2018-12-27 23:27:57 +00:00
|
|
|
namespace MediaBrowser.Model.ApiClient
|
|
|
|
{
|
2021-04-15 13:39:59 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The server discovery info model.
|
|
|
|
/// </summary>
|
2018-12-27 23:27:57 +00:00
|
|
|
public class ServerDiscoveryInfo
|
|
|
|
{
|
|
|
|
/// <summary>
|
2021-04-15 13:39:59 +00:00
|
|
|
/// Initializes a new instance of the <see cref="ServerDiscoveryInfo"/> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <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 the address.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
2021-04-15 13:39:59 +00:00
|
|
|
public string Address { get; }
|
2020-02-04 00:49:27 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
2021-04-15 13:39:59 +00:00
|
|
|
/// Gets the server identifier.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
2021-04-15 13:39:59 +00:00
|
|
|
public string Id { get; }
|
2020-02-04 00:49:27 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
2021-04-15 13:39:59 +00:00
|
|
|
/// Gets the name.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
2021-04-15 13:39:59 +00:00
|
|
|
public string Name { get; }
|
2020-02-23 11:11:43 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
2021-04-15 13:39:59 +00:00
|
|
|
/// Gets the endpoint address.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
2021-04-15 13:39:59 +00:00
|
|
|
public string? EndpointAddress { get; }
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|