From 16629de7d207a0aa1186928235f62fd74e2ef7ee Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Tue, 1 Apr 2025 11:40:23 -0300 Subject: [PATCH] refactor(scheduled-statuses): add scheduled status created/deleted events --- .../android/events/ScheduledStatusCreatedEvent.java | 13 +++++++++++++ .../android/events/ScheduledStatusDeletedEvent.java | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 mastodon/src/main/java/org/joinmastodon/android/events/ScheduledStatusCreatedEvent.java create mode 100644 mastodon/src/main/java/org/joinmastodon/android/events/ScheduledStatusDeletedEvent.java diff --git a/mastodon/src/main/java/org/joinmastodon/android/events/ScheduledStatusCreatedEvent.java b/mastodon/src/main/java/org/joinmastodon/android/events/ScheduledStatusCreatedEvent.java new file mode 100644 index 000000000..b11fb2375 --- /dev/null +++ b/mastodon/src/main/java/org/joinmastodon/android/events/ScheduledStatusCreatedEvent.java @@ -0,0 +1,13 @@ +package org.joinmastodon.android.events; + +import org.joinmastodon.android.model.ScheduledStatus; + +public class ScheduledStatusCreatedEvent { + public final ScheduledStatus scheduledStatus; + public final String accountID; + + public ScheduledStatusCreatedEvent(ScheduledStatus scheduledStatus, String accountID){ + this.scheduledStatus = scheduledStatus; + this.accountID=accountID; + } +} diff --git a/mastodon/src/main/java/org/joinmastodon/android/events/ScheduledStatusDeletedEvent.java b/mastodon/src/main/java/org/joinmastodon/android/events/ScheduledStatusDeletedEvent.java new file mode 100644 index 000000000..3c2923387 --- /dev/null +++ b/mastodon/src/main/java/org/joinmastodon/android/events/ScheduledStatusDeletedEvent.java @@ -0,0 +1,11 @@ +package org.joinmastodon.android.events; + +public class ScheduledStatusDeletedEvent{ + public final String id; + public final String accountID; + + public ScheduledStatusDeletedEvent(String id, String accountID){ + this.id=id; + this.accountID=accountID; + } +}