Apply review suggestions

This commit is contained in:
Shadowghost
2024-04-01 19:59:48 +02:00
parent 2aaa9f669a
commit bff37ed13a
9 changed files with 24 additions and 22 deletions

View File

@@ -10,5 +10,5 @@ public interface IHasShares
/// <summary>
/// Gets or sets the shares.
/// </summary>
IReadOnlyList<UserPermissions> Shares { get; set; }
IReadOnlyList<PlaylistUserPermissions> Shares { get; set; }
}

View File

@@ -1,16 +1,18 @@
using System;
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Class to hold data on user permissions for lists.
/// Class to hold data on user permissions for playlists.
/// </summary>
public class UserPermissions
public class PlaylistUserPermissions
{
/// <summary>
/// Initializes a new instance of the <see cref="UserPermissions"/> class.
/// 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 UserPermissions(string userId, bool canEdit = false)
public PlaylistUserPermissions(Guid userId, bool canEdit = false)
{
UserId = userId;
CanEdit = canEdit;
@@ -19,7 +21,7 @@ public class UserPermissions
/// <summary>
/// Gets or sets the user id.
/// </summary>
public string UserId { get; set; }
public Guid UserId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the user has edit permissions.

View File

@@ -33,7 +33,7 @@ public class PlaylistCreationRequest
/// <summary>
/// Gets or sets the user permissions.
/// </summary>
public IReadOnlyList<UserPermissions> Users { get; set; } = [];
public IReadOnlyList<PlaylistUserPermissions> Users { get; set; } = [];
/// <summary>
/// Gets or sets a value indicating whether the playlist is public.