aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Extensions.Tests/Json/Models/GenericBodyArrayModel.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-06-22 07:38:08 +0200
committerGitHub <noreply@github.com>2021-06-22 07:38:08 +0200
commitf50bdb0f328e0c853f97521b12c3618b1af55e0b (patch)
treeec7eb27175c1a00a2f6199a012d69c152a082c3c /tests/Jellyfin.Extensions.Tests/Json/Models/GenericBodyArrayModel.cs
parent026d8d28b7e7e0aea54426eff05419e2bfc735a0 (diff)
parentdb716bde95e6c14afc48d1343fc74ddbbd2ad97e (diff)
Merge pull request #6204 from Bond-009/extensions
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!;
+ }
+}