diff options
| author | crobibero <cody@robibe.ro> | 2020-06-12 14:35:51 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-12 14:35:51 -0600 |
| commit | 2fe65d99f6886d607d618903ac03f7474ce68df0 (patch) | |
| tree | 681efab6ef8fdbffc8b8ddb3e09bc811c733a10d /Jellyfin.Server/Models/JsonOptions.cs | |
| parent | dfe873fc293cf940a4f3d25aacdc8dfc53f150dc (diff) | |
| parent | 6429e60c408c0b88edee6745c5c9c14faade3c9d (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-swagger-auth
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(); - } -} |
