diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-06-07 15:34:31 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-07 15:34:31 +0900 |
| commit | f7f59fe9a37369255961d8e186f50a855f9409ab (patch) | |
| tree | 24296322167a98c02df3ee772ae50ec4e24eebf0 /Jellyfin.Server/Models/JsonOptions.cs | |
| parent | 9f0b5f347a9b7eeff1d0b079ceee42bc781aed7a (diff) | |
| parent | 601e4a88c94ea0ccaab9f3c148d4bbdca2e532ee (diff) | |
Merge branch 'api-migration' into api-config-json
Diffstat (limited to 'Jellyfin.Server/Models/JsonOptions.cs')
| -rw-r--r-- | Jellyfin.Server/Models/JsonOptions.cs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Jellyfin.Server/Models/JsonOptions.cs b/Jellyfin.Server/Models/JsonOptions.cs deleted file mode 100644 index 2f0df3d2c..000000000 --- a/Jellyfin.Server/Models/JsonOptions.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System.Text.Json; - -namespace Jellyfin.Server.Models -{ - /// <summary> - /// Json Options. - /// </summary> - public static class JsonOptions - { - /// <summary> - /// Gets CamelCase json options. - /// </summary> - public static JsonSerializerOptions CamelCase - { - get - { - var options = DefaultJsonOptions; - options.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; - return options; - } - } - - /// <summary> - /// Gets PascalCase json options. - /// </summary> - public static JsonSerializerOptions PascalCase - { - get - { - var options = DefaultJsonOptions; - options.PropertyNamingPolicy = null; - return options; - } - } - - /// <summary> - /// Gets base Json Serializer Options. - /// </summary> - private static JsonSerializerOptions DefaultJsonOptions => new JsonSerializerOptions(); - } -} |
