1 use crate::SendActivity;
2 use lemmy_api_common::{
9 ListCommentReportsResponse,
18 ListCommunitiesResponse,
25 DeleteCustomEmojiResponse,
31 BannedPersonsResponse,
40 GetPersonMentionsResponse,
44 GetReportCountResponse,
46 GetUnreadCountResponse,
50 MarkCommentReplyAsRead,
51 MarkPersonMentionAsRead,
52 PasswordChangeAfterReset,
54 PasswordResetResponse,
55 PersonMentionResponse,
65 GetSiteMetadataResponse,
67 ListPostReportsResponse,
75 CreatePrivateMessageReport,
77 ListPrivateMessageReports,
78 ListPrivateMessageReportsResponse,
79 MarkPrivateMessageAsRead,
80 PrivateMessageReportResponse,
81 PrivateMessageResponse,
82 PrivateMessagesResponse,
83 ResolvePrivateMessageReport,
86 ApproveRegistrationApplication,
89 GetFederatedInstances,
90 GetFederatedInstancesResponse,
95 GetUnreadRegistrationApplicationCount,
96 GetUnreadRegistrationApplicationCountResponse,
98 ListRegistrationApplications,
99 ListRegistrationApplicationsResponse,
105 RegistrationApplicationResponse,
110 impl SendActivity for Register {
111 type Response = LoginResponse;
114 impl SendActivity for GetPrivateMessages {
115 type Response = PrivateMessagesResponse;
118 impl SendActivity for CreateSite {
119 type Response = SiteResponse;
122 impl SendActivity for EditSite {
123 type Response = SiteResponse;
126 impl SendActivity for GetSite {
127 type Response = GetSiteResponse;
130 impl SendActivity for ListCommunities {
131 type Response = ListCommunitiesResponse;
134 impl SendActivity for CreateCommunity {
135 type Response = CommunityResponse;
138 impl SendActivity for GetPost {
139 type Response = GetPostResponse;
142 impl SendActivity for GetComment {
143 type Response = CommentResponse;
146 impl SendActivity for Login {
147 type Response = LoginResponse;
150 impl SendActivity for GetCaptcha {
151 type Response = GetCaptchaResponse;
154 impl SendActivity for GetReplies {
155 type Response = GetRepliesResponse;
158 impl SendActivity for AddAdmin {
159 type Response = AddAdminResponse;
162 impl SendActivity for GetUnreadRegistrationApplicationCount {
163 type Response = GetUnreadRegistrationApplicationCountResponse;
166 impl SendActivity for ListRegistrationApplications {
167 type Response = ListRegistrationApplicationsResponse;
170 impl SendActivity for ApproveRegistrationApplication {
171 type Response = RegistrationApplicationResponse;
174 impl SendActivity for GetBannedPersons {
175 type Response = BannedPersonsResponse;
178 impl SendActivity for BlockPerson {
179 type Response = BlockPersonResponse;
182 impl SendActivity for GetPersonMentions {
183 type Response = GetPersonMentionsResponse;
186 impl SendActivity for MarkPersonMentionAsRead {
187 type Response = PersonMentionResponse;
190 impl SendActivity for MarkCommentReplyAsRead {
191 type Response = CommentReplyResponse;
194 impl SendActivity for MarkAllAsRead {
195 type Response = GetRepliesResponse;
198 impl SendActivity for PasswordReset {
199 type Response = PasswordResetResponse;
202 impl SendActivity for PasswordChangeAfterReset {
203 type Response = LoginResponse;
206 impl SendActivity for SaveUserSettings {
207 type Response = LoginResponse;
210 impl SendActivity for ChangePassword {
211 type Response = LoginResponse;
214 impl SendActivity for GetReportCount {
215 type Response = GetReportCountResponse;
218 impl SendActivity for GetUnreadCount {
219 type Response = GetUnreadCountResponse;
222 impl SendActivity for VerifyEmail {
223 type Response = VerifyEmailResponse;
226 impl SendActivity for MarkPrivateMessageAsRead {
227 type Response = PrivateMessageResponse;
230 impl SendActivity for CreatePrivateMessageReport {
231 type Response = PrivateMessageReportResponse;
234 impl SendActivity for ResolvePrivateMessageReport {
235 type Response = PrivateMessageReportResponse;
238 impl SendActivity for ListPrivateMessageReports {
239 type Response = ListPrivateMessageReportsResponse;
242 impl SendActivity for GetModlog {
243 type Response = GetModlogResponse;
246 impl SendActivity for PurgePerson {
247 type Response = PurgeItemResponse;
250 impl SendActivity for PurgeCommunity {
251 type Response = PurgeItemResponse;
254 impl SendActivity for PurgePost {
255 type Response = PurgeItemResponse;
258 impl SendActivity for PurgeComment {
259 type Response = PurgeItemResponse;
262 impl SendActivity for TransferCommunity {
263 type Response = GetCommunityResponse;
266 impl SendActivity for LeaveAdmin {
267 type Response = GetSiteResponse;
270 impl SendActivity for MarkPostAsRead {
271 type Response = PostResponse;
274 impl SendActivity for SavePost {
275 type Response = PostResponse;
278 impl SendActivity for ListPostReports {
279 type Response = ListPostReportsResponse;
282 impl SendActivity for ResolvePostReport {
283 type Response = PostReportResponse;
286 impl SendActivity for GetSiteMetadata {
287 type Response = GetSiteMetadataResponse;
290 impl SendActivity for SaveComment {
291 type Response = CommentResponse;
294 impl SendActivity for DistinguishComment {
295 type Response = CommentResponse;
298 impl SendActivity for ListCommentReports {
299 type Response = ListCommentReportsResponse;
302 impl SendActivity for ResolveCommentReport {
303 type Response = CommentReportResponse;
306 impl SendActivity for CreateCustomEmoji {
307 type Response = CustomEmojiResponse;
310 impl SendActivity for EditCustomEmoji {
311 type Response = CustomEmojiResponse;
314 impl SendActivity for DeleteCustomEmoji {
315 type Response = DeleteCustomEmojiResponse;
318 impl SendActivity for GetFederatedInstances {
319 type Response = GetFederatedInstancesResponse;