2018-12-27 16:27:57 -07:00
|
|
|
namespace MediaBrowser.Model.ApiClient
|
|
|
|
{
|
2021-04-15 06:39:59 -07:00
|
|
|
/// <summary>
|
|
|
|
/// The server discovery info model.
|
|
|
|
/// </summary>
|
2018-12-27 16:27:57 -07:00
|
|
|
public class ServerDiscoveryInfo
|
|
|
|
{
|
|
|
|
/// <summary>
|
2021-04-15 06:39:59 -07: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 16:27:57 -07:00
|
|
|
/// </summary>
|
2021-04-15 06:39:59 -07:00
|
|
|
public string Address { get; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
2021-04-15 06:39:59 -07:00
|
|
|
/// Gets the server identifier.
|
2018-12-27 16:27:57 -07:00
|
|
|
/// </summary>
|
2021-04-15 06:39:59 -07:00
|
|
|
public string Id { get; }
|
2020-02-03 17:49:27 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
2021-04-15 06:39:59 -07:00
|
|
|
/// Gets the name.
|
2018-12-27 16:27:57 -07:00
|
|
|
/// </summary>
|
2021-04-15 06:39:59 -07:00
|
|
|
public string Name { get; }
|
2020-02-23 04:11:43 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
/// <summary>
|
2021-04-15 06:39:59 -07:00
|
|
|
/// Gets the endpoint address.
|
2018-12-27 16:27:57 -07:00
|
|
|
/// </summary>
|
2021-04-15 06:39:59 -07:00
|
|
|
public string? EndpointAddress { get; }
|
2018-12-27 16:27:57 -07:00
|
|
|
}
|
|
|
|
}
|