diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2023-03-10 17:46:59 +0100 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2023-03-10 19:16:35 +0100 |
| commit | 76ae599bd3ccfd9808f50dbf5d935aa430783e60 (patch) | |
| tree | 9c0c0f6b72cb665a24cbb3ebce42db6a7abd7829 /MediaBrowser.Model/Entities | |
| parent | 6351d1022bffb1d0f152175965774eb709e143cb (diff) | |
Fix playlist creation and removal
Diffstat (limited to 'MediaBrowser.Model/Entities')
| -rw-r--r-- | MediaBrowser.Model/Entities/IHasShares.cs | 12 | ||||
| -rw-r--r-- | MediaBrowser.Model/Entities/Share.cs | 17 |
2 files changed, 29 insertions, 0 deletions
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; + +/// <summary> +/// Interface for access to shares. +/// </summary> +public interface IHasShares +{ + /// <summary> + /// Gets or sets the shares. + /// </summary> + 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; + +/// <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; } +} |
