1 use crate::SendActivity;
2 use lemmy_api_common::{
11 ListCommentReportsResponse,
21 ListCommunitiesResponse,
28 DeleteCustomEmojiResponse,
34 BannedPersonsResponse,
43 GetPersonDetailsResponse,
45 GetPersonMentionsResponse,
49 GetReportCountResponse,
51 GetUnreadCountResponse,
55 MarkCommentReplyAsRead,
56 MarkPersonMentionAsRead,
57 PasswordChangeAfterReset,
59 PasswordResetResponse,
60 PersonMentionResponse,
72 GetSiteMetadataResponse,
74 ListPostReportsResponse,
82 CreatePrivateMessageReport,
84 ListPrivateMessageReports,
85 ListPrivateMessageReportsResponse,
86 MarkPrivateMessageAsRead,
87 PrivateMessageReportResponse,
88 PrivateMessageResponse,
89 PrivateMessagesResponse,
90 ResolvePrivateMessageReport,
93 ApproveRegistrationApplication,
100 GetUnreadRegistrationApplicationCount,
101 GetUnreadRegistrationApplicationCountResponse,
103 ListRegistrationApplications,
104 ListRegistrationApplicationsResponse,
110 RegistrationApplicationResponse,
112 ResolveObjectResponse,
117 websocket::structs::{
119 CommunityJoinResponse,
129 impl SendActivity for Register {
130 type Response = LoginResponse;
133 impl SendActivity for GetPersonDetails {
134 type Response = GetPersonDetailsResponse;
137 impl SendActivity for GetPrivateMessages {
138 type Response = PrivateMessagesResponse;
141 impl SendActivity for CreateSite {
142 type Response = SiteResponse;
145 impl SendActivity for EditSite {
146 type Response = SiteResponse;
149 impl SendActivity for GetSite {
150 type Response = GetSiteResponse;
153 impl SendActivity for GetCommunity {
154 type Response = GetCommunityResponse;
157 impl SendActivity for ListCommunities {
158 type Response = ListCommunitiesResponse;
161 impl SendActivity for CreateCommunity {
162 type Response = CommunityResponse;
165 impl SendActivity for GetPost {
166 type Response = GetPostResponse;
169 impl SendActivity for GetPosts {
170 type Response = GetPostsResponse;
173 impl SendActivity for GetComment {
174 type Response = CommentResponse;
177 impl SendActivity for GetComments {
178 type Response = GetCommentsResponse;
181 impl SendActivity for Login {
182 type Response = LoginResponse;
185 impl SendActivity for GetCaptcha {
186 type Response = GetCaptchaResponse;
189 impl SendActivity for GetReplies {
190 type Response = GetRepliesResponse;
193 impl SendActivity for AddAdmin {
194 type Response = AddAdminResponse;
197 impl SendActivity for GetUnreadRegistrationApplicationCount {
198 type Response = GetUnreadRegistrationApplicationCountResponse;
201 impl SendActivity for ListRegistrationApplications {
202 type Response = ListRegistrationApplicationsResponse;
205 impl SendActivity for ApproveRegistrationApplication {
206 type Response = RegistrationApplicationResponse;
209 impl SendActivity for GetBannedPersons {
210 type Response = BannedPersonsResponse;
213 impl SendActivity for BlockPerson {
214 type Response = BlockPersonResponse;
217 impl SendActivity for GetPersonMentions {
218 type Response = GetPersonMentionsResponse;
221 impl SendActivity for MarkPersonMentionAsRead {
222 type Response = PersonMentionResponse;
225 impl SendActivity for MarkCommentReplyAsRead {
226 type Response = CommentReplyResponse;
229 impl SendActivity for MarkAllAsRead {
230 type Response = GetRepliesResponse;
233 impl SendActivity for PasswordReset {
234 type Response = PasswordResetResponse;
237 impl SendActivity for PasswordChangeAfterReset {
238 type Response = LoginResponse;
241 impl SendActivity for UserJoin {
242 type Response = UserJoinResponse;
245 impl SendActivity for PostJoin {
246 type Response = PostJoinResponse;
249 impl SendActivity for CommunityJoin {
250 type Response = CommunityJoinResponse;
253 impl SendActivity for ModJoin {
254 type Response = ModJoinResponse;
257 impl SendActivity for SaveUserSettings {
258 type Response = LoginResponse;
261 impl SendActivity for ChangePassword {
262 type Response = LoginResponse;
265 impl SendActivity for GetReportCount {
266 type Response = GetReportCountResponse;
269 impl SendActivity for GetUnreadCount {
270 type Response = GetUnreadCountResponse;
273 impl SendActivity for VerifyEmail {
274 type Response = VerifyEmailResponse;
277 impl SendActivity for MarkPrivateMessageAsRead {
278 type Response = PrivateMessageResponse;
281 impl SendActivity for CreatePrivateMessageReport {
282 type Response = PrivateMessageReportResponse;
285 impl SendActivity for ResolvePrivateMessageReport {
286 type Response = PrivateMessageReportResponse;
289 impl SendActivity for ListPrivateMessageReports {
290 type Response = ListPrivateMessageReportsResponse;
293 impl SendActivity for GetModlog {
294 type Response = GetModlogResponse;
297 impl SendActivity for PurgePerson {
298 type Response = PurgeItemResponse;
301 impl SendActivity for PurgeCommunity {
302 type Response = PurgeItemResponse;
305 impl SendActivity for PurgePost {
306 type Response = PurgeItemResponse;
309 impl SendActivity for PurgeComment {
310 type Response = PurgeItemResponse;
313 impl SendActivity for Search {
314 type Response = SearchResponse;
317 impl SendActivity for ResolveObject {
318 type Response = ResolveObjectResponse;
321 impl SendActivity for TransferCommunity {
322 type Response = GetCommunityResponse;
325 impl SendActivity for LeaveAdmin {
326 type Response = GetSiteResponse;
329 impl SendActivity for MarkPostAsRead {
330 type Response = PostResponse;
333 impl SendActivity for SavePost {
334 type Response = PostResponse;
337 impl SendActivity for ListPostReports {
338 type Response = ListPostReportsResponse;
341 impl SendActivity for ResolvePostReport {
342 type Response = PostReportResponse;
345 impl SendActivity for GetSiteMetadata {
346 type Response = GetSiteMetadataResponse;
349 impl SendActivity for SaveComment {
350 type Response = CommentResponse;
353 impl SendActivity for DistinguishComment {
354 type Response = CommentResponse;
357 impl SendActivity for ListCommentReports {
358 type Response = ListCommentReportsResponse;
361 impl SendActivity for ResolveCommentReport {
362 type Response = CommentReportResponse;
365 impl SendActivity for CreateCustomEmoji {
366 type Response = CustomEmojiResponse;
369 impl SendActivity for EditCustomEmoji {
370 type Response = CustomEmojiResponse;
373 impl SendActivity for DeleteCustomEmoji {
374 type Response = DeleteCustomEmojiResponse;