ServerDiscoveryInfo.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. namespace MediaBrowser.Model.ApiClient
  2. {
  3. /// <summary>
  4. /// The server discovery info model.
  5. /// </summary>
  6. public class ServerDiscoveryInfo
  7. {
  8. /// <summary>
  9. /// Initializes a new instance of the <see cref="ServerDiscoveryInfo"/> class.
  10. /// </summary>
  11. /// <param name="address">The server address.</param>
  12. /// <param name="id">The server id.</param>
  13. /// <param name="name">The server name.</param>
  14. /// <param name="endpointAddress">The endpoint address.</param>
  15. public ServerDiscoveryInfo(string address, string id, string name, string? endpointAddress = null)
  16. {
  17. Address = address;
  18. Id = id;
  19. Name = name;
  20. EndpointAddress = endpointAddress;
  21. }
  22. /// <summary>
  23. /// Gets the address.
  24. /// </summary>
  25. public string Address { get; }
  26. /// <summary>
  27. /// Gets the server identifier.
  28. /// </summary>
  29. public string Id { get; }
  30. /// <summary>
  31. /// Gets the name.
  32. /// </summary>
  33. public string Name { get; }
  34. /// <summary>
  35. /// Gets the endpoint address.
  36. /// </summary>
  37. public string? EndpointAddress { get; }
  38. }
  39. }