refactor: Convert AccountActionListener to Kotlin (#74)

This commit is contained in:
Nik Clayton 2023-09-19 21:38:27 +02:00 committed by GitHub
parent 5193f31ad8
commit ffa8ea615b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,5 @@
/* Copyright 2017 Andrew Dawson /*
* Copyright 2023 Pachli Association
* *
* This file is a part of Pachli. * 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 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details. * Public License for more details.
* *
* You should have received a copy of the GNU General Public License along with Tusky; if not, * You should have received a copy of the GNU General Public License along with Pachli; if not,
* see <http://www.gnu.org/licenses>. */ * see <http://www.gnu.org/licenses>.
*/
package app.pachli.interfaces; package app.pachli.interfaces
import androidx.annotation.NonNull; interface AccountActionListener {
fun onViewAccount(id: String)
public interface AccountActionListener { fun onMute(mute: Boolean, id: String, position: Int, notifications: Boolean)
void onViewAccount(@NonNull String id); fun onBlock(block: Boolean, id: String, position: Int)
void onMute(final boolean mute, @NonNull final String id, final int position, final boolean notifications); fun onRespondToFollowRequest(accept: Boolean, id: String, position: Int)
void onBlock(final boolean block, @NonNull final String id, final int position);
void onRespondToFollowRequest(final boolean accept, @NonNull final String id, final int position);
} }