< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Dlna.ProfileCondition
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Dlna/ProfileCondition.cs
Line coverage
22%
Covered lines: 2
Uncovered lines: 7
Coverable lines: 9
Total lines: 40
Line coverage: 22.2%
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%
.ctor(...)100%210%
.ctor(...)100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Model/Dlna/ProfileCondition.cs

#LineLine coverage
 1#nullable disable
 2#pragma warning disable CS1591
 3
 4using System.Xml.Serialization;
 5
 6namespace MediaBrowser.Model.Dlna
 7{
 8    public class ProfileCondition
 9    {
 10        public ProfileCondition()
 11        {
 255312            IsRequired = true;
 255313        }
 14
 15        public ProfileCondition(ProfileConditionType condition, ProfileConditionValue property, string value)
 016            : this(condition, property, value, false)
 17        {
 018        }
 19
 20        public ProfileCondition(ProfileConditionType condition, ProfileConditionValue property, string value, bool isReq
 21        {
 022            Condition = condition;
 023            Property = property;
 024            Value = value;
 025            IsRequired = isRequired;
 026        }
 27
 28        [XmlAttribute("condition")]
 29        public ProfileConditionType Condition { get; set; }
 30
 31        [XmlAttribute("property")]
 32        public ProfileConditionValue Property { get; set; }
 33
 34        [XmlAttribute("value")]
 35        public string Value { get; set; }
 36
 37        [XmlAttribute("isRequired")]
 38        public bool IsRequired { get; set; }
 39    }
 40}