aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Data')
-rw-r--r--Jellyfin.Data/Entities/Preference.cs23
-rw-r--r--Jellyfin.Data/Enums/PermissionKind.cs86
-rw-r--r--Jellyfin.Data/Enums/PreferenceKind.cs50
3 files changed, 153 insertions, 6 deletions
diff --git a/Jellyfin.Data/Entities/Preference.cs b/Jellyfin.Data/Entities/Preference.cs
index 56a07d440..0ca9d7eff 100644
--- a/Jellyfin.Data/Entities/Preference.cs
+++ b/Jellyfin.Data/Entities/Preference.cs
@@ -35,30 +35,42 @@ namespace Jellyfin.Data.Entities
*************************************************************************/
/// <summary>
- /// Identity, Indexed, Required
+ /// Gets or sets the id of this preference.
/// </summary>
+ /// <remarks>
+ /// Identity, Indexed, Required.
+ /// </remarks>
[Key]
[Required]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; protected set; }
/// <summary>
- /// Required
+ /// Gets or sets the type of this preference.
/// </summary>
+ /// <remarks>
+ /// Required.
+ /// </remarks>
[Required]
- public PreferenceKind Kind { get; set; }
+ public PreferenceKind Kind { get; protected set; }
/// <summary>
- /// Required, Max length = 65535
+ /// Gets or sets the value of this preference.
/// </summary>
+ /// <remarks>
+ /// Required, Max length = 65535.
+ /// </remarks>
[Required]
[MaxLength(65535)]
[StringLength(65535)]
public string Value { get; set; }
/// <summary>
- /// Required, ConcurrencyToken.
+ /// Gets or sets the row version.
/// </summary>
+ /// <remarks>
+ /// Required, ConcurrencyToken.
+ /// </remarks>
[ConcurrencyCheck]
[Required]
public uint RowVersion { get; set; }
@@ -81,4 +93,3 @@ namespace Jellyfin.Data.Entities
}
}
}
-
diff --git a/Jellyfin.Data/Enums/PermissionKind.cs b/Jellyfin.Data/Enums/PermissionKind.cs
index df18261e6..8b1472f97 100644
--- a/Jellyfin.Data/Enums/PermissionKind.cs
+++ b/Jellyfin.Data/Enums/PermissionKind.cs
@@ -1,27 +1,113 @@
namespace Jellyfin.Data.Enums
{
+ /// <summary>
+ /// The types of user permissions.
+ /// </summary>
public enum PermissionKind
{
+ /// <summary>
+ /// Whether the user is an administrator.
+ /// </summary>
IsAdministrator,
+
+ /// <summary>
+ /// Whether the user is hidden.
+ /// </summary>
IsHidden,
+
+ /// <summary>
+ /// Whether the user is disabled.
+ /// </summary>
IsDisabled,
+
+ /// <summary>
+ /// Whether the user can control shared devices.
+ /// </summary>
EnableSharedDeviceControl,
+
+ /// <summary>
+ /// Whether the user can access the server remotely.
+ /// </summary>
EnableRemoteAccess,
+
+ /// <summary>
+ /// Whether the user can manage live tv.
+ /// </summary>
EnableLiveTvManagement,
+
+ /// <summary>
+ /// Whether the user can access live tv.
+ /// </summary>
EnableLiveTvAccess,
+
+ /// <summary>
+ /// Whether the user can play media.
+ /// </summary>
EnableMediaPlayback,
+
+ /// <summary>
+ /// Whether the server should transcode audio for the user if requested.
+ /// </summary>
EnableAudioPlaybackTranscoding,
+
+ /// <summary>
+ /// Whether the server should transcode video for the user if requested.
+ /// </summary>
EnableVideoPlaybackTranscoding,
+
+ /// <summary>
+ /// Whether the user can delete content.
+ /// </summary>
EnableContentDeletion,
+
+ /// <summary>
+ /// Whether the user can download content.
+ /// </summary>
EnableContentDownloading,
+
+ /// <summary>
+ /// Whether to enable sync transcoding for the user.
+ /// </summary>
EnableSyncTranscoding,
+
+ /// <summary>
+ /// Whether the user can do media conversion.
+ /// </summary>
EnableMediaConversion,
+
+ /// <summary>
+ /// Whether the user has access to all devices.
+ /// </summary>
EnableAllDevices,
+
+ /// <summary>
+ /// Whether the user has access to all channels.
+ /// </summary>
EnableAllChannels,
+
+ /// <summary>
+ /// Whether the user has access to all folders.
+ /// </summary>
EnableAllFolders,
+
+ /// <summary>
+ /// Whether to enable public sharing for the user.
+ /// </summary>
EnablePublicSharing,
+
+ /// <summary>
+ /// Whether the user can remotely control other users.
+ /// </summary>
EnableRemoteControlOfOtherUsers,
+
+ /// <summary>
+ /// Whether the user is permitted to do playback remuxing.
+ /// </summary>
EnablePlaybackRemuxing,
+
+ /// <summary>
+ /// Whether the server should force transcoding on remote connections for the user.
+ /// </summary>
ForceRemoteSourceTranscoding
}
}
diff --git a/Jellyfin.Data/Enums/PreferenceKind.cs b/Jellyfin.Data/Enums/PreferenceKind.cs
index ea1221e1a..e0e9cfe04 100644
--- a/Jellyfin.Data/Enums/PreferenceKind.cs
+++ b/Jellyfin.Data/Enums/PreferenceKind.cs
@@ -1,18 +1,68 @@
namespace Jellyfin.Data.Enums
{
+ /// <summary>
+ /// The types of user preferences.
+ /// </summary>
public enum PreferenceKind
{
+ /// <summary>
+ /// A list of blocked tags.
+ /// </summary>
BlockedTags,
+
+ /// <summary>
+ /// A list of blocked channels.
+ /// </summary>
BlockedChannels,
+
+ /// <summary>
+ /// A list of blocked media folders.
+ /// </summary>
BlockedMediaFolders,
+
+ /// <summary>
+ /// A list of enabled devices.
+ /// </summary>
EnabledDevices,
+
+ /// <summary>
+ /// A list of enabled channels
+ /// </summary>
EnabledChannels,
+
+ /// <summary>
+ /// A list of enabled folders.
+ /// </summary>
EnabledFolders,
+
+ /// <summary>
+ /// A list of folders to allow content deletion from.
+ /// </summary>
EnableContentDeletionFromFolders,
+
+ /// <summary>
+ /// A list of latest items to exclude.
+ /// </summary>
LatestItemExcludes,
+
+ /// <summary>
+ /// A list of media to exclude.
+ /// </summary>
MyMediaExcludes,
+
+ /// <summary>
+ /// A list of grouped folders.
+ /// </summary>
GroupedFolders,
+
+ /// <summary>
+ /// A list of unrated items to block.
+ /// </summary>
BlockUnratedItems,
+
+ /// <summary>
+ /// A list of ordered views.
+ /// </summary>
OrderedViews
}
}