jellyfin-server/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs

44 lines
1.2 KiB
C#
Raw Normal View History

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