1 use crate::SendActivity;
2 use lemmy_api_common::{
10 ListCommentReportsResponse,
20 ListCommunitiesResponse,
26 BannedPersonsResponse,
35 GetPersonDetailsResponse,
37 GetPersonMentionsResponse,
41 GetReportCountResponse,
43 GetUnreadCountResponse,
47 MarkCommentReplyAsRead,
48 MarkPersonMentionAsRead,
49 PasswordChangeAfterReset,
51 PasswordResetResponse,
52 PersonMentionResponse,
64 GetSiteMetadataResponse,
66 ListPostReportsResponse,
74 CreatePrivateMessageReport,
76 ListPrivateMessageReports,
77 ListPrivateMessageReportsResponse,
78 MarkPrivateMessageAsRead,
79 PrivateMessageReportResponse,
80 PrivateMessageResponse,
81 PrivateMessagesResponse,
82 ResolvePrivateMessageReport,
85 ApproveRegistrationApplication,
92 GetUnreadRegistrationApplicationCount,
93 GetUnreadRegistrationApplicationCountResponse,
95 ListRegistrationApplications,
96 ListRegistrationApplicationsResponse,
102 RegistrationApplicationResponse,
104 ResolveObjectResponse,
109 websocket::structs::{
111 CommunityJoinResponse,
121 impl SendActivity for Register {
122 type Response = LoginResponse;
125 impl SendActivity for GetPersonDetails {
126 type Response = GetPersonDetailsResponse;
129 impl SendActivity for GetPrivateMessages {
130 type Response = PrivateMessagesResponse;
133 impl SendActivity for CreateSite {
134 type Response = SiteResponse;
137 impl SendActivity for EditSite {
138 type Response = SiteResponse;
141 impl SendActivity for GetSite {
142 type Response = GetSiteResponse;
145 impl SendActivity for GetCommunity {
146 type Response = GetCommunityResponse;
149 impl SendActivity for ListCommunities {
150 type Response = ListCommunitiesResponse;
153 impl SendActivity for CreateCommunity {
154 type Response = CommunityResponse;
157 impl SendActivity for GetPost {
158 type Response = GetPostResponse;
161 impl SendActivity for GetPosts {
162 type Response = GetPostsResponse;
165 impl SendActivity for GetComment {
166 type Response = CommentResponse;
169 impl SendActivity for GetComments {
170 type Response = GetCommentsResponse;
173 impl SendActivity for Login {
174 type Response = LoginResponse;
177 impl SendActivity for GetCaptcha {
178 type Response = GetCaptchaResponse;
181 impl SendActivity for GetReplies {
182 type Response = GetRepliesResponse;
185 impl SendActivity for AddAdmin {
186 type Response = AddAdminResponse;
189 impl SendActivity for GetUnreadRegistrationApplicationCount {
190 type Response = GetUnreadRegistrationApplicationCountResponse;
193 impl SendActivity for ListRegistrationApplications {
194 type Response = ListRegistrationApplicationsResponse;
197 impl SendActivity for ApproveRegistrationApplication {
198 type Response = RegistrationApplicationResponse;
201 impl SendActivity for GetBannedPersons {
202 type Response = BannedPersonsResponse;
205 impl SendActivity for BlockPerson {
206 type Response = BlockPersonResponse;
209 impl SendActivity for GetPersonMentions {
210 type Response = GetPersonMentionsResponse;
213 impl SendActivity for MarkPersonMentionAsRead {
214 type Response = PersonMentionResponse;
217 impl SendActivity for MarkCommentReplyAsRead {
218 type Response = CommentReplyResponse;
221 impl SendActivity for MarkAllAsRead {
222 type Response = GetRepliesResponse;
225 impl SendActivity for PasswordReset {
226 type Response = PasswordResetResponse;
229 impl SendActivity for PasswordChangeAfterReset {
230 type Response = LoginResponse;
233 impl SendActivity for UserJoin {
234 type Response = UserJoinResponse;
237 impl SendActivity for PostJoin {
238 type Response = PostJoinResponse;
241 impl SendActivity for CommunityJoin {
242 type Response = CommunityJoinResponse;
245 impl SendActivity for ModJoin {
246 type Response = ModJoinResponse;
249 impl SendActivity for SaveUserSettings {
250 type Response = LoginResponse;
253 impl SendActivity for ChangePassword {
254 type Response = LoginResponse;
257 impl SendActivity for GetReportCount {
258 type Response = GetReportCountResponse;
261 impl SendActivity for GetUnreadCount {
262 type Response = GetUnreadCountResponse;
265 impl SendActivity for VerifyEmail {
266 type Response = VerifyEmailResponse;
269 impl SendActivity for MarkPrivateMessageAsRead {
270 type Response = PrivateMessageResponse;
273 impl SendActivity for CreatePrivateMessageReport {
274 type Response = PrivateMessageReportResponse;
277 impl SendActivity for ResolvePrivateMessageReport {
278 type Response = PrivateMessageReportResponse;
281 impl SendActivity for ListPrivateMessageReports {
282 type Response = ListPrivateMessageReportsResponse;
285 impl SendActivity for GetModlog {
286 type Response = GetModlogResponse;
289 impl SendActivity for PurgePerson {
290 type Response = PurgeItemResponse;
293 impl SendActivity for PurgeCommunity {
294 type Response = PurgeItemResponse;
297 impl SendActivity for PurgePost {
298 type Response = PurgeItemResponse;
301 impl SendActivity for PurgeComment {
302 type Response = PurgeItemResponse;
305 impl SendActivity for Search {
306 type Response = SearchResponse;
309 impl SendActivity for ResolveObject {
310 type Response = ResolveObjectResponse;
313 impl SendActivity for TransferCommunity {
314 type Response = GetCommunityResponse;
317 impl SendActivity for LeaveAdmin {
318 type Response = GetSiteResponse;
321 impl SendActivity for MarkPostAsRead {
322 type Response = PostResponse;
325 impl SendActivity for SavePost {
326 type Response = PostResponse;
329 impl SendActivity for ListPostReports {
330 type Response = ListPostReportsResponse;
333 impl SendActivity for ResolvePostReport {
334 type Response = PostReportResponse;
337 impl SendActivity for GetSiteMetadata {
338 type Response = GetSiteMetadataResponse;
341 impl SendActivity for SaveComment {
342 type Response = CommentResponse;
345 impl SendActivity for ListCommentReports {
346 type Response = ListCommentReportsResponse;
349 impl SendActivity for ResolveCommentReport {
350 type Response = CommentReportResponse;