aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities/UserPermissions.cs
blob: 80e2cd32c29c67650234288f5c3100d8fb050d97 (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
namespace MediaBrowser.Model.Entities;

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

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

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