< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Tasks.TaskInfo
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Tasks/TaskInfo.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 80
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/Tasks/TaskInfo.cs

#LineLine coverage
 1#nullable disable
 2using System;
 3using System.Collections.Generic;
 4
 5namespace MediaBrowser.Model.Tasks
 6{
 7    /// <summary>
 8    /// Class TaskInfo.
 9    /// </summary>
 10    public class TaskInfo
 11    {
 12        /// <summary>
 13        /// Initializes a new instance of the <see cref="TaskInfo"/> class.
 14        /// </summary>
 15        public TaskInfo()
 16        {
 017            Triggers = [];
 018        }
 19
 20        /// <summary>
 21        /// Gets or sets the name.
 22        /// </summary>
 23        /// <value>The name.</value>
 24        public string Name { get; set; }
 25
 26        /// <summary>
 27        /// Gets or sets the state of the task.
 28        /// </summary>
 29        /// <value>The state of the task.</value>
 30        public TaskState State { get; set; }
 31
 32        /// <summary>
 33        /// Gets or sets the progress.
 34        /// </summary>
 35        /// <value>The progress.</value>
 36        public double? CurrentProgressPercentage { get; set; }
 37
 38        /// <summary>
 39        /// Gets or sets the id.
 40        /// </summary>
 41        /// <value>The id.</value>
 42        public string Id { get; set; }
 43
 44        /// <summary>
 45        /// Gets or sets the last execution result.
 46        /// </summary>
 47        /// <value>The last execution result.</value>
 48        public TaskResult LastExecutionResult { get; set; }
 49
 50        /// <summary>
 51        /// Gets or sets the triggers.
 52        /// </summary>
 53        /// <value>The triggers.</value>
 54        public IReadOnlyList<TaskTriggerInfo> Triggers { get; set; }
 55
 56        /// <summary>
 57        /// Gets or sets the description.
 58        /// </summary>
 59        /// <value>The description.</value>
 60        public string Description { get; set; }
 61
 62        /// <summary>
 63        /// Gets or sets the category.
 64        /// </summary>
 65        /// <value>The category.</value>
 66        public string Category { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets a value indicating whether this instance is hidden.
 70        /// </summary>
 71        /// <value><c>true</c> if this instance is hidden; otherwise, <c>false</c>.</value>
 72        public bool IsHidden { get; set; }
 73
 74        /// <summary>
 75        /// Gets or sets the key.
 76        /// </summary>
 77        /// <value>The key.</value>
 78        public string Key { get; set; }
 79    }
 80}

Methods/Properties

.ctor()