aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Extensions.Tests/Json/Models/GenericBodyArrayModel.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2021-08-04 06:24:58 -0600
committerCody Robibero <cody@robibe.ro>2021-08-04 06:24:58 -0600
commit398ca85944c21609156892dd8c5560126336f11b (patch)
tree5ccd6d959a64a262e1db4a1583619e30775edb68 /tests/Jellyfin.Extensions.Tests/Json/Models/GenericBodyArrayModel.cs
parentd212b6fb08fc8d45008499f3dfce33f59bb425e3 (diff)
parent1b8eb1aefe2a10b9671e801e8b1feeb8e2362c87 (diff)
Merge remote-tracking branch 'upstream/master' into baseitemkind-fixes
Diffstat (limited to 'tests/Jellyfin.Extensions.Tests/Json/Models/GenericBodyArrayModel.cs')
-rw-r--r--tests/Jellyfin.Extensions.Tests/Json/Models/GenericBodyArrayModel.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/Jellyfin.Extensions.Tests/Json/Models/GenericBodyArrayModel.cs b/tests/Jellyfin.Extensions.Tests/Json/Models/GenericBodyArrayModel.cs
new file mode 100644
index 000000000..ef135278f
--- /dev/null
+++ b/tests/Jellyfin.Extensions.Tests/Json/Models/GenericBodyArrayModel.cs
@@ -0,0 +1,20 @@
+using System.Diagnostics.CodeAnalysis;
+using System.Text.Json.Serialization;
+using Jellyfin.Extensions.Json.Converters;
+
+namespace Jellyfin.Extensions.Tests.Json.Models
+{
+ /// <summary>
+ /// The generic body model.
+ /// </summary>
+ /// <typeparam name="T">The value type.</typeparam>
+ public class GenericBodyArrayModel<T>
+ {
+ /// <summary>
+ /// Gets or sets the value.
+ /// </summary>
+ [SuppressMessage("Microsoft.Performance", "CA1819:Properties should not return arrays", MessageId = "Value", Justification = "Imported from ServiceStack")]
+ [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
+ public T[] Value { get; set; } = default!;
+ }
+}