< Summary - Jellyfin

Information
Class: MediaBrowser.Model.ApiClient.ServerDiscoveryInfo
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 43
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Model/ApiClient/ServerDiscoveryInfo.cs

#LineLine coverage
 1namespace 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;
 021        }
 22
 23        /// <summary>
 24        /// Gets the address.
 25        /// </summary>
 26        public string Address { get; }
 27
 28        /// <summary>
 29        /// Gets the server identifier.
 30        /// </summary>
 31        public string Id { get; }
 32
 33        /// <summary>
 34        /// Gets the name.
 35        /// </summary>
 36        public string Name { get; }
 37
 38        /// <summary>
 39        /// Gets the endpoint address.
 40        /// </summary>
 41        public string? EndpointAddress { get; }
 42    }
 43}