From 76ae599bd3ccfd9808f50dbf5d935aa430783e60 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Fri, 10 Mar 2023 17:46:59 +0100 Subject: Fix playlist creation and removal --- MediaBrowser.Model/Entities/IHasShares.cs | 12 ++++++++++++ MediaBrowser.Model/Entities/Share.cs | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 MediaBrowser.Model/Entities/IHasShares.cs create mode 100644 MediaBrowser.Model/Entities/Share.cs (limited to 'MediaBrowser.Model/Entities') diff --git a/MediaBrowser.Model/Entities/IHasShares.cs b/MediaBrowser.Model/Entities/IHasShares.cs new file mode 100644 index 000000000..b34d1a037 --- /dev/null +++ b/MediaBrowser.Model/Entities/IHasShares.cs @@ -0,0 +1,12 @@ +namespace MediaBrowser.Model.Entities; + +/// +/// Interface for access to shares. +/// +public interface IHasShares +{ + /// + /// Gets or sets the shares. + /// + Share[] Shares { get; set; } +} diff --git a/MediaBrowser.Model/Entities/Share.cs b/MediaBrowser.Model/Entities/Share.cs new file mode 100644 index 000000000..186aad189 --- /dev/null +++ b/MediaBrowser.Model/Entities/Share.cs @@ -0,0 +1,17 @@ +namespace MediaBrowser.Model.Entities; + +/// +/// Class to hold data on sharing permissions. +/// +public class Share +{ + /// + /// Gets or sets the user id. + /// + public string? UserId { get; set; } + + /// + /// Gets or sets a value indicating whether the user has edit permissions. + /// + public bool CanEdit { get; set; } +} -- cgit v1.2.3