< Summary - Jellyfin

Information
Class: Jellyfin.Data.Entities.Security.DeviceOptions
Assembly: Jellyfin.Data
File(s): /srv/git/jellyfin/Jellyfin.Data/Entities/Security/DeviceOptions.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 35
Line coverage: 100%
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%11100%

File(s)

/srv/git/jellyfin/Jellyfin.Data/Entities/Security/DeviceOptions.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations.Schema;
 2
 3namespace Jellyfin.Data.Entities.Security
 4{
 5    /// <summary>
 6    /// An entity representing custom options for a device.
 7    /// </summary>
 8    public class DeviceOptions
 9    {
 10        /// <summary>
 11        /// Initializes a new instance of the <see cref="DeviceOptions"/> class.
 12        /// </summary>
 13        /// <param name="deviceId">The device id.</param>
 14        public DeviceOptions(string deviceId)
 15        {
 1616            DeviceId = deviceId;
 1617        }
 18
 19        /// <summary>
 20        /// Gets the id.
 21        /// </summary>
 22        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 23        public int Id { get; private set; }
 24
 25        /// <summary>
 26        /// Gets the device id.
 27        /// </summary>
 28        public string DeviceId { get; private set; }
 29
 30        /// <summary>
 31        /// Gets or sets the custom name.
 32        /// </summary>
 33        public string? CustomName { get; set; }
 34    }
 35}

Methods/Properties

.ctor(System.String)