refactor: Convert AccountActionListener to Kotlin (#74)
This commit is contained in:
parent
5193f31ad8
commit
ffa8ea615b
|
@ -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 <http://www.gnu.org/licenses>. */
|
||||
* You should have received a copy of the GNU General Public License along with Pachli; if not,
|
||||
* see <http://www.gnu.org/licenses>.
|
||||
*/
|
||||
|
||||
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)
|
||||
}
|
Loading…
Reference in New Issue