diff options
| author | crobibero <cody@robibe.ro> | 2020-12-06 20:26:21 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-12-06 20:26:21 -0700 |
| commit | 66a1880a580b25db7add41ed3947166b10415f37 (patch) | |
| tree | 1d47299b2df5214ceb21fe32731df6f55b5b6078 /tests/Jellyfin.Common.Tests/Models/BoolTypeModel.cs | |
| parent | a7b461adb472eb4591922e921e683b26ded87251 (diff) | |
Add number to bool json converter
Diffstat (limited to 'tests/Jellyfin.Common.Tests/Models/BoolTypeModel.cs')
| -rw-r--r-- | tests/Jellyfin.Common.Tests/Models/BoolTypeModel.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/Jellyfin.Common.Tests/Models/BoolTypeModel.cs b/tests/Jellyfin.Common.Tests/Models/BoolTypeModel.cs new file mode 100644 index 000000000..feb952efc --- /dev/null +++ b/tests/Jellyfin.Common.Tests/Models/BoolTypeModel.cs @@ -0,0 +1,17 @@ +using System.Text.Json.Serialization; +using MediaBrowser.Common.Json.Converters; + +namespace Jellyfin.Common.Tests.Models +{ + /// <summary> + /// The bool type model. + /// </summary> + public class BoolTypeModel + { + /// <summary> + /// Gets or sets a value indicating whether the value is true or false. + /// </summary> + [JsonConverter(typeof(JsonBoolNumberConverter))] + public bool Value { get; set; } + } +}
\ No newline at end of file |
