aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities/PlaylistUserPermissions.cs
blob: b5f017d2bf928728b7ff071fefc817c3ec92658c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;

namespace MediaBrowser.Model.Entities;

/// <summary>
/// Class to hold data on user permissions for playlists.
/// </summary>
public class PlaylistUserPermissions
{
    /// <summary>
    /// Initializes a new instance of the <see cref="PlaylistUserPermissions"/> class.
    /// </summary>
    /// <param name="userId">The user id.</param>
    /// <param name="canEdit">Edit permission.</param>
    public PlaylistUserPermissions(Guid userId, bool canEdit = false)
    {
        UserId = userId;
        CanEdit = canEdit;
    }

    /// <summary>
    /// Gets or sets the user id.
    /// </summary>
    public Guid UserId { get; set; }

    /// <summary>
    /// Gets or sets a value indicating whether the user has edit permissions.
    /// </summary>
    public bool CanEdit { get; set; }
}