diff options
| author | crobibero <cody@robibe.ro> | 2020-08-20 07:53:53 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-08-20 07:53:53 -0600 |
| commit | d63f4bce5d380afc4cf8c97285d0ac86989554d5 (patch) | |
| tree | e0231d3fa6e78ccabd848bca11b3306e67b9ca80 /Jellyfin.Api/Models | |
| parent | 634ee2d1e913277ea8f419aca9d91a8e58426642 (diff) | |
Conver all remaining form request to body
Diffstat (limited to 'Jellyfin.Api/Models')
| -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; } + } +} |
