11package io .getstream .core .models ;
22
33import com .fasterxml .jackson .annotation .JsonCreator ;
4+ import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
45import com .fasterxml .jackson .annotation .JsonProperty ;
56
7+ @ JsonIgnoreProperties (ignoreUnknown = true )
68public class ModerationResponse {
79 private String Status ;
810 private String RecommendedAction ;
911 private APIError APIError ;
1012 private String OriginFeed ;
13+ private String LatestModeratorAction ;
1114
1215 // Default constructor
1316 public ModerationResponse () {}
@@ -18,11 +21,13 @@ public ModerationResponse(
1821 @ JsonProperty ("status" ) String status ,
1922 @ JsonProperty ("recommended_action" ) String recommendedAction ,
2023 @ JsonProperty ("api_error" ) APIError apiError ,
21- @ JsonProperty ("origin_feed" ) String originFeed ) {
24+ @ JsonProperty ("origin_feed" ) String originFeed ,
25+ @ JsonProperty ("latest_moderator_action" ) String latestModeratorAction ) {
2226 this .Status = status ;
2327 this .RecommendedAction = recommendedAction ;
2428 this .APIError = apiError ;
2529 this .OriginFeed = originFeed ;
30+ this .LatestModeratorAction = latestModeratorAction ;
2631 }
2732
2833 // Getters
@@ -41,4 +46,8 @@ public APIError getAPIError() {
4146 public String getOriginFeed () {
4247 return OriginFeed ;
4348 }
49+
50+ public String getLatestModeratorAction () {
51+ return LatestModeratorAction ;
52+ }
4453}
0 commit comments