< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Activity.ActivityLogEntry
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Activity/ActivityLogEntry.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 85
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/MediaBrowser.Model/Activity/ActivityLogEntry.cs

#LineLine coverage
 1using System;
 2using Microsoft.Extensions.Logging;
 3
 4namespace MediaBrowser.Model.Activity
 5{
 6    /// <summary>
 7    /// An activity log entry.
 8    /// </summary>
 9    public class ActivityLogEntry
 10    {
 11        /// <summary>
 12        /// Initializes a new instance of the <see cref="ActivityLogEntry"/> class.
 13        /// </summary>
 14        /// <param name="name">The name.</param>
 15        /// <param name="type">The type.</param>
 16        /// <param name="userId">The user id.</param>
 17        public ActivityLogEntry(string name, string type, Guid userId)
 18        {
 3819            Name = name;
 3820            Type = type;
 3821            UserId = userId;
 3822        }
 23
 24        /// <summary>
 25        /// Gets or sets the identifier.
 26        /// </summary>
 27        /// <value>The identifier.</value>
 28        public long Id { get; set; }
 29
 30        /// <summary>
 31        /// Gets or sets the name.
 32        /// </summary>
 33        /// <value>The name.</value>
 34        public string Name { get; set; }
 35
 36        /// <summary>
 37        /// Gets or sets the overview.
 38        /// </summary>
 39        /// <value>The overview.</value>
 40        public string? Overview { get; set; }
 41
 42        /// <summary>
 43        /// Gets or sets the short overview.
 44        /// </summary>
 45        /// <value>The short overview.</value>
 46        public string? ShortOverview { get; set; }
 47
 48        /// <summary>
 49        /// Gets or sets the type.
 50        /// </summary>
 51        /// <value>The type.</value>
 52        public string Type { get; set; }
 53
 54        /// <summary>
 55        /// Gets or sets the item identifier.
 56        /// </summary>
 57        /// <value>The item identifier.</value>
 58        public string? ItemId { get; set; }
 59
 60        /// <summary>
 61        /// Gets or sets the date.
 62        /// </summary>
 63        /// <value>The date.</value>
 64        public DateTime Date { get; set; }
 65
 66        /// <summary>
 67        /// Gets or sets the user identifier.
 68        /// </summary>
 69        /// <value>The user identifier.</value>
 70        public Guid UserId { get; set; }
 71
 72        /// <summary>
 73        /// Gets or sets the user primary image tag.
 74        /// </summary>
 75        /// <value>The user primary image tag.</value>
 76        [Obsolete("UserPrimaryImageTag is not used.")]
 77        public string? UserPrimaryImageTag { get; set; }
 78
 79        /// <summary>
 80        /// Gets or sets the log severity.
 81        /// </summary>
 82        /// <value>The log severity.</value>
 83        public LogLevel Severity { get; set; }
 84    }
 85}