diff --git a/app/src/main/java/app/pachli/interfaces/AccountActionListener.java b/app/src/main/java/app/pachli/interfaces/AccountActionListener.kt similarity index 51% rename from app/src/main/java/app/pachli/interfaces/AccountActionListener.java rename to app/src/main/java/app/pachli/interfaces/AccountActionListener.kt index 6d75e63d6..4d79b7f0b 100644 --- a/app/src/main/java/app/pachli/interfaces/AccountActionListener.java +++ b/app/src/main/java/app/pachli/interfaces/AccountActionListener.kt @@ -1,4 +1,5 @@ -/* Copyright 2017 Andrew Dawson +/* + * Copyright 2023 Pachli Association * * This file is a part of Pachli. * @@ -10,16 +11,15 @@ * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * Public License for more details. * - * You should have received a copy of the GNU General Public License along with Tusky; if not, - * see . */ + * You should have received a copy of the GNU General Public License along with Pachli; if not, + * see . + */ -package app.pachli.interfaces; +package app.pachli.interfaces -import androidx.annotation.NonNull; - -public interface AccountActionListener { - void onViewAccount(@NonNull String id); - void onMute(final boolean mute, @NonNull final String id, final int position, final boolean notifications); - void onBlock(final boolean block, @NonNull final String id, final int position); - void onRespondToFollowRequest(final boolean accept, @NonNull final String id, final int position); +interface AccountActionListener { + fun onViewAccount(id: String) + fun onMute(mute: Boolean, id: String, position: Int, notifications: Boolean) + fun onBlock(block: Boolean, id: String, position: Int) + fun onRespondToFollowRequest(accept: Boolean, id: String, position: Int) }