@@ -104,4 +104,75 @@ public List<KeyValuePair<string, string>> ToQueryParameters()
104
104
} ;
105
105
}
106
106
}
107
+
108
+ public class QueryFlagReportsRequest
109
+ {
110
+ private const int DefaultOffset = 0 ;
111
+ private const int DefaultLimit = 20 ;
112
+
113
+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore , PropertyName = "filter_conditions" ) ]
114
+ public Dictionary < string , object > FilterConditions { get ; set ; }
115
+ public int Limit { get ; set ; } = DefaultLimit ;
116
+ public int Offset { get ; set ; } = DefaultOffset ;
117
+ }
118
+
119
+ public class FlagReport
120
+ {
121
+ public string Id { get ; set ; }
122
+ public Message Message { get ; set ; }
123
+
124
+ [ JsonProperty ( "flags_count" ) ]
125
+ public int FlagsCount { get ; set ; }
126
+
127
+ [ JsonProperty ( "message_user_id" ) ]
128
+ public string MessageUserId { get ; set ; }
129
+
130
+ [ JsonProperty ( "channel_cid" ) ]
131
+ public string ChannelCid { get ; set ; }
132
+
133
+ [ JsonProperty ( "created_at" ) ]
134
+ public DateTimeOffset CreatedAt { get ; set ; }
135
+
136
+ [ JsonProperty ( "updated_at" ) ]
137
+ public DateTimeOffset UpdatedAt { get ; set ; }
138
+ }
139
+
140
+ public class QueryFlagReportsResponse : ApiResponse
141
+ {
142
+ [ JsonProperty ( "flag_reports" ) ]
143
+ public List < FlagReport > FlagReports { get ; set ; }
144
+ }
145
+
146
+ public class ReviewFlagReportRequest
147
+ {
148
+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore , PropertyName = "review_result" ) ]
149
+ public string ReviewResult { get ; set ; }
150
+
151
+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore , PropertyName = "user_id" ) ]
152
+ public string UserId { get ; set ; }
153
+
154
+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore , PropertyName = "review_details" ) ]
155
+ public Dictionary < string , object > ReviewDetails { get ; set ; }
156
+ }
157
+
158
+ public class ExtendedFlagReport : FlagReport
159
+ {
160
+ [ JsonProperty ( "review_result" ) ]
161
+ public string ReviewResult { get ; set ; }
162
+
163
+ [ JsonProperty ( "review_details" ) ]
164
+ public Dictionary < string , object > ReviewDetails { get ; set ; }
165
+
166
+ [ JsonProperty ( "reviewed_at" ) ]
167
+ public DateTimeOffset ReviewedAt { get ; set ; }
168
+
169
+ [ JsonProperty ( "reviewed_by" ) ]
170
+ public User ReviewedBy { get ; set ; }
171
+ }
172
+
173
+ public class ReviewFlagReportResponse : ApiResponse
174
+ {
175
+ [ JsonProperty ( "flag_report" ) ]
176
+ public ExtendedFlagReport FlagReport { get ; set ; }
177
+ }
107
178
}
0 commit comments