mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
Fix playlist creation and removal
This commit is contained in:
12
MediaBrowser.Model/Entities/IHasShares.cs
Normal file
12
MediaBrowser.Model/Entities/IHasShares.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace MediaBrowser.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for access to shares.
|
||||
/// </summary>
|
||||
public interface IHasShares
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the shares.
|
||||
/// </summary>
|
||||
Share[] Shares { get; set; }
|
||||
}
|
||||
17
MediaBrowser.Model/Entities/Share.cs
Normal file
17
MediaBrowser.Model/Entities/Share.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace MediaBrowser.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Class to hold data on sharing permissions.
|
||||
/// </summary>
|
||||
public class Share
|
||||
{
|
||||
/// <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; }
|
||||
}
|
||||
Reference in New Issue
Block a user