PlaylistUserPermissions.cs 810 B

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