Convert newpipe/error/UserAction.java to kotlin
This commit is contained in:
parent
f1b111212d
commit
cd4cb40e6d
1 changed files with 7 additions and 12 deletions
|
|
@ -1,9 +1,14 @@
|
||||||
package org.schabi.newpipe.error;
|
/*
|
||||||
|
* SPDX-FileCopyrightText: 2017-2025 NewPipe contributors <https://newpipe.net>
|
||||||
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.schabi.newpipe.error
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The user actions that can cause an error.
|
* The user actions that can cause an error.
|
||||||
*/
|
*/
|
||||||
public enum UserAction {
|
enum class UserAction(val message: String) {
|
||||||
USER_REPORT("user report"),
|
USER_REPORT("user report"),
|
||||||
UI_ERROR("ui error"),
|
UI_ERROR("ui error"),
|
||||||
DATABASE_IMPORT_EXPORT("database import or export"),
|
DATABASE_IMPORT_EXPORT("database import or export"),
|
||||||
|
|
@ -36,14 +41,4 @@ public enum UserAction {
|
||||||
GETTING_MAIN_SCREEN_TAB("getting main screen tab"),
|
GETTING_MAIN_SCREEN_TAB("getting main screen tab"),
|
||||||
PLAY_ON_POPUP("play on popup"),
|
PLAY_ON_POPUP("play on popup"),
|
||||||
SUBSCRIPTIONS("loading subscriptions");
|
SUBSCRIPTIONS("loading subscriptions");
|
||||||
|
|
||||||
private final String message;
|
|
||||||
|
|
||||||
UserAction(final String message) {
|
|
||||||
this.message = message;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMessage() {
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue