apkfuckery/com.discord/smali/com/facebook/datasource/BaseBooleanSubscriber.smali
2019-02-04 21:05:16 +01:00

152 lines
3.9 KiB
Smali

.class public abstract Lcom/facebook/datasource/BaseBooleanSubscriber;
.super Ljava/lang/Object;
.source "BaseBooleanSubscriber.java"
# interfaces
.implements Lcom/facebook/datasource/DataSubscriber;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/facebook/datasource/DataSubscriber",
"<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onCancellation(Lcom/facebook/datasource/DataSource;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/datasource/DataSource",
"<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.prologue
.local p1, "dataSource":Lcom/facebook/datasource/DataSource;, "Lcom/facebook/datasource/DataSource<Ljava/lang/Boolean;>;"
return-void
.end method
.method public onFailure(Lcom/facebook/datasource/DataSource;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/datasource/DataSource",
"<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.prologue
.local p1, "dataSource":Lcom/facebook/datasource/DataSource;, "Lcom/facebook/datasource/DataSource<Ljava/lang/Boolean;>;"
:try_start_0
invoke-virtual {p0, p1}, Lcom/facebook/datasource/BaseBooleanSubscriber;->onFailureImpl(Lcom/facebook/datasource/DataSource;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->close()Z
return-void
:catchall_0
move-exception v0
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->close()Z
throw v0
.end method
.method protected abstract onFailureImpl(Lcom/facebook/datasource/DataSource;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/datasource/DataSource",
"<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.end method
.method public onNewResult(Lcom/facebook/datasource/DataSource;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/datasource/DataSource",
"<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.prologue
.local p1, "dataSource":Lcom/facebook/datasource/DataSource;, "Lcom/facebook/datasource/DataSource<Ljava/lang/Boolean;>;"
:try_start_0
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->getResult()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
invoke-virtual {p0, v0}, Lcom/facebook/datasource/BaseBooleanSubscriber;->onNewResultImpl(Z)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->close()Z
return-void
:catchall_0
move-exception v0
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->close()Z
throw v0
.end method
.method protected abstract onNewResultImpl(Z)V
.end method
.method public onProgressUpdate(Lcom/facebook/datasource/DataSource;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/datasource/DataSource",
"<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.prologue
.local p1, "dataSource":Lcom/facebook/datasource/DataSource;, "Lcom/facebook/datasource/DataSource<Ljava/lang/Boolean;>;"
return-void
.end method