mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 09:27:16 +01:00
78 lines
2.3 KiB
Java
78 lines
2.3 KiB
Java
package androidx.work;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.lifecycle.LiveData;
|
|
import com.amazon.alexa.ra.core.ui.markdown.parser.formatter.MarkdownConstants;
|
|
import com.google.common.util.concurrent.ListenableFuture;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes14.dex */
|
|
public interface Operation {
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
public static final State.IN_PROGRESS IN_PROGRESS;
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
public static final State.SUCCESS SUCCESS;
|
|
|
|
static {
|
|
SUCCESS = new State.SUCCESS();
|
|
IN_PROGRESS = new State.IN_PROGRESS();
|
|
}
|
|
|
|
@NonNull
|
|
ListenableFuture<State.SUCCESS> getResult();
|
|
|
|
@NonNull
|
|
LiveData<State> getState();
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static abstract class State {
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static final class FAILURE extends State {
|
|
private final Throwable mThrowable;
|
|
|
|
public FAILURE(@NonNull Throwable th) {
|
|
this.mThrowable = th;
|
|
}
|
|
|
|
@NonNull
|
|
public Throwable getThrowable() {
|
|
return this.mThrowable;
|
|
}
|
|
|
|
@NonNull
|
|
public String toString() {
|
|
return "FAILURE (" + this.mThrowable.getMessage() + MarkdownConstants.RIGHT_PARENTHESIS;
|
|
}
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
public State() {
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static final class IN_PROGRESS extends State {
|
|
@NonNull
|
|
public String toString() {
|
|
return "IN_PROGRESS";
|
|
}
|
|
|
|
private IN_PROGRESS() {
|
|
}
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static final class SUCCESS extends State {
|
|
@NonNull
|
|
public String toString() {
|
|
return "SUCCESS";
|
|
}
|
|
|
|
private SUCCESS() {
|
|
}
|
|
}
|
|
}
|
|
}
|