diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-08-22 13:06:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-22 13:06:12 +0200 |
| commit | 92c491397eb81ed0d9349f11036c9f3a1e2be2e4 (patch) | |
| tree | c949858416fc162ff5ebced8045ee57e7646466b /Jellyfin.Api/Models/StartupDtos/StartupRemoteAccessDto.cs | |
| parent | 3e65cae70e9df4d26b887689669666d46c1216f2 (diff) | |
| parent | d63f4bce5d380afc4cf8c97285d0ac86989554d5 (diff) | |
Merge pull request #3941 from crobibero/no-more-form
Conver all remaining form request to body
Diffstat (limited to 'Jellyfin.Api/Models/StartupDtos/StartupRemoteAccessDto.cs')
| -rw-r--r-- | Jellyfin.Api/Models/StartupDtos/StartupRemoteAccessDto.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/StartupDtos/StartupRemoteAccessDto.cs b/Jellyfin.Api/Models/StartupDtos/StartupRemoteAccessDto.cs new file mode 100644 index 000000000..4027ba41a --- /dev/null +++ b/Jellyfin.Api/Models/StartupDtos/StartupRemoteAccessDto.cs @@ -0,0 +1,22 @@ +using System.ComponentModel.DataAnnotations; + +namespace Jellyfin.Api.Models.StartupDtos +{ + /// <summary> + /// Startup remote access dto. + /// </summary> + public class StartupRemoteAccessDto + { + /// <summary> + /// Gets or sets a value indicating whether enable remote access. + /// </summary> + [Required] + public bool EnableRemoteAccess { get; set; } + + /// <summary> + /// Gets or sets a value indicating whether enable automatic port mapping. + /// </summary> + [Required] + public bool EnableAutomaticPortMapping { get; set; } + } +} |
