< Summary - Jellyfin

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

#LineLine coverage
 1using System;
 2
 3namespace MediaBrowser.Model.Entities;
 4
 5/// <summary>
 6/// Class to hold data on user permissions for playlists.
 7/// </summary>
 8public class PlaylistUserPermissions
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="PlaylistUserPermissions"/> class.
 12    /// </summary>
 13    /// <param name="userId">The user id.</param>
 14    /// <param name="canEdit">Edit permission.</param>
 15    public PlaylistUserPermissions(Guid userId, bool canEdit = false)
 16    {
 017        UserId = userId;
 018        CanEdit = canEdit;
 019    }
 20
 21    /// <summary>
 22    /// Gets or sets the user id.
 23    /// </summary>
 24    public Guid UserId { get; set; }
 25
 26    /// <summary>
 27    /// Gets or sets a value indicating whether the user has edit permissions.
 28    /// </summary>
 29    public bool CanEdit { get; set; }
 30}