SingleDoOnEvent.smali
.class public final Lrx/internal/operators/SingleDoOnEvent;
.super Ljava/lang/Object;
.source "SingleDoOnEvent.java"
# interfaces
.implements Lrx/Single$OnSubscribe;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lrx/internal/operators/SingleDoOnEvent$SingleDoOnEventSubscriber;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/Single$OnSubscribe<",
"TT;>;"
}
.end annotation
# instance fields
.field final onError:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
.field final onSuccess:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
"-TT;>;"
}
.end annotation
.end field
.field final source:Lrx/Single;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Single<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lrx/Single;Lrx/functions/Action1;Lrx/functions/Action1;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Single<",
"TT;>;",
"Lrx/functions/Action1<",
"-TT;>;",
"Lrx/functions/Action1<",
"Ljava/lang/Throwable;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lrx/internal/operators/SingleDoOnEvent;->source:Lrx/Single;
.line 3
iput-object p2, p0, Lrx/internal/operators/SingleDoOnEvent;->onSuccess:Lrx/functions/Action1;
.line 4
iput-object p3, p0, Lrx/internal/operators/SingleDoOnEvent;->onError:Lrx/functions/Action1;
return-void
.end method
# virtual methods
.method public bridge synthetic call(Ljava/lang/Object;)V
.registers 2
.line 1
check-cast p1, Lrx/SingleSubscriber;
invoke-virtual {p0, p1}, Lrx/internal/operators/SingleDoOnEvent;->call(Lrx/SingleSubscriber;)V
return-void
.end method
.method public call(Lrx/SingleSubscriber;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/SingleSubscriber<",
"-TT;>;)V"
}
.end annotation
.line 2
new-instance v0, Lrx/internal/operators/SingleDoOnEvent$SingleDoOnEventSubscriber;
iget-object v1, p0, Lrx/internal/operators/SingleDoOnEvent;->onSuccess:Lrx/functions/Action1;
iget-object v2, p0, Lrx/internal/operators/SingleDoOnEvent;->onError:Lrx/functions/Action1;
invoke-direct {v0, p1, v1, v2}, Lrx/internal/operators/SingleDoOnEvent$SingleDoOnEventSubscriber;-><init>(Lrx/SingleSubscriber;Lrx/functions/Action1;Lrx/functions/Action1;)V
.line 3
invoke-virtual {p1, v0}, Lrx/SingleSubscriber;->add(Lrx/Subscription;)V
.line 4
iget-object p1, p0, Lrx/internal/operators/SingleDoOnEvent;->source:Lrx/Single;
invoke-virtual {p1, v0}, Lrx/Single;->subscribe(Lrx/SingleSubscriber;)Lrx/Subscription;
return-void
.end method