Skip to content

Commit fe94dcf

Browse files
committed
chore: add moderation template to activity
1 parent 2ca89a4 commit fe94dcf

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
package io.getstream.core.models;
2+
3+
import com.fasterxml.jackson.annotation.JsonCreator;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
6+
public class ModerationResponse {
7+
private String Status;
8+
private String RecommendedAction;
9+
private APIError APIError;
10+
private String OriginFeed;
11+
12+
// Default constructor
13+
public ModerationResponse() {}
14+
15+
// Constructor with parameters
16+
@JsonCreator
17+
public ModerationResponse(
18+
@JsonProperty("status") String status,
19+
@JsonProperty("recommended_action") String recommendedAction,
20+
@JsonProperty("api_error") APIError apiError,
21+
@JsonProperty("origin_feed") String originFeed) {
22+
this.Status = status;
23+
this.RecommendedAction = recommendedAction;
24+
this.APIError = apiError;
25+
this.OriginFeed = originFeed;
26+
}
27+
28+
// Getters
29+
public String getStatus() {
30+
return Status;
31+
}
32+
33+
public String getRecommendedAction() {
34+
return RecommendedAction;
35+
}
36+
37+
public APIError getAPIError() {
38+
return APIError;
39+
}
40+
41+
public String getOriginFeed() {
42+
return OriginFeed;
43+
}
44+
}
45+
class APIError {
46+
private String Code;
47+
private String Message;
48+
49+
// Default constructor
50+
public APIError() {}
51+
52+
// Constructor with parameters
53+
@JsonCreator
54+
public APIError(
55+
@JsonProperty("code") String code,
56+
@JsonProperty("message") String message) {
57+
this.Code = code;
58+
this.Message = message;
59+
}
60+
61+
// Getters
62+
public String getCode() {
63+
return Code;
64+
}
65+
66+
public String getMessage() {
67+
return Message;
68+
}
69+
}

0 commit comments

Comments
 (0)