diff options
| author | crobibero <cody@robibe.ro> | 2020-09-03 12:15:24 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-09-03 12:15:24 -0600 |
| commit | 1d3303fa0a4a106dc74065ed37f9353ef763a52a (patch) | |
| tree | 0d407e00e788f11e85db3bd245f11079fd4ce3c2 /MediaBrowser.Common/Json/JsonDefaults.cs | |
| parent | a523ff840c4f4a83800bca02280e5b0f7765658b (diff) | |
Move json profiles to constant strings.
Diffstat (limited to 'MediaBrowser.Common/Json/JsonDefaults.cs')
| -rw-r--r-- | MediaBrowser.Common/Json/JsonDefaults.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Json/JsonDefaults.cs b/MediaBrowser.Common/Json/JsonDefaults.cs index 5867cd4a0..67f7e8f14 100644 --- a/MediaBrowser.Common/Json/JsonDefaults.cs +++ b/MediaBrowser.Common/Json/JsonDefaults.cs @@ -10,6 +10,16 @@ namespace MediaBrowser.Common.Json public static class JsonDefaults { /// <summary> + /// Pascal case json profile media type. + /// </summary> + public const string PascalCaseMediaType = "application/json; profile=\"PascalCase\""; + + /// <summary> + /// Camel case json profile media type. + /// </summary> + public const string CamelCaseMediaType = "application/json; profile=\"CamelCase\""; + + /// <summary> /// Gets the default <see cref="JsonSerializerOptions" /> options. /// </summary> /// <remarks> |
