From 5d38db769520858e98a84eb14c53f90532211aa1 Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Tue, 15 Oct 2024 14:39:24 +0200 Subject: [PATCH 1/2] fix json recommended_action naming --- src/Models/Activity.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Models/Activity.cs b/src/Models/Activity.cs index 109a1a7..83ba0dd 100644 --- a/src/Models/Activity.cs +++ b/src/Models/Activity.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using Newtonsoft.Json; namespace Stream.Models { @@ -46,6 +47,7 @@ public class AddActivitiesResponse : ResponseBase public class ModerationResponse { public string Status { get; set; } + [JsonProperty("recommended_action")] public string RecommendedAction { get; set; } public APIError APIError { get; set; } } From 1bbb1da2bbb567486731123bcf840e70aca24697 Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Tue, 15 Oct 2024 14:45:21 +0200 Subject: [PATCH 2/2] format --- src/Models/Activity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Activity.cs b/src/Models/Activity.cs index 83ba0dd..c8180a5 100644 --- a/src/Models/Activity.cs +++ b/src/Models/Activity.cs @@ -1,6 +1,6 @@ +using Newtonsoft.Json; using System; using System.Collections.Generic; -using Newtonsoft.Json; namespace Stream.Models {