aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2020-10-31 12:41:03 +0000
committerGitHub <noreply@github.com>2020-10-31 12:41:03 +0000
commitc54bdb4a0af1b132601b557ed2a9f4a76a4893cc (patch)
treebe6bc5bd549336584e3740ab9a4f3e8df5349de7 /tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs
parent3ae37deea8a84edfc0281c984027f8a8145c7a9c (diff)
parent4f320308f333507a324740248c7dd025085a7d67 (diff)
Merge pull request #86 from jellyfin/master
Updating from master
Diffstat (limited to 'tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs')
-rw-r--r--tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs b/tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs
new file mode 100644
index 000000000..9a6c382fe
--- /dev/null
+++ b/tests/Jellyfin.Common.Tests/Models/GenericBodyModel.cs
@@ -0,0 +1,20 @@
+using System.Diagnostics.CodeAnalysis;
+using System.Text.Json.Serialization;
+using MediaBrowser.Common.Json.Converters;
+
+namespace Jellyfin.Common.Tests.Models
+{
+ /// <summary>
+ /// The generic body model.
+ /// </summary>
+ /// <typeparam name="T">The value type.</typeparam>
+ public class GenericBodyModel<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!;
+ }
+} \ No newline at end of file