ActionNotificationObserver.smali
.class public final Lrx/internal/util/ActionNotificationObserver;
.super Ljava/lang/Object;
.source "ActionNotificationObserver.java"
# interfaces
.implements Lrx/Observer;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/Observer<",
"TT;>;"
}
.end annotation
# instance fields
.field final onNotification:Lrx/functions/Action1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Action1<",
"Lrx/Notification<",
"-TT;>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lrx/functions/Action1;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/functions/Action1<",
"Lrx/Notification<",
"-TT;>;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lrx/internal/util/ActionNotificationObserver;->onNotification:Lrx/functions/Action1;
return-void
.end method
# virtual methods
.method public onCompleted()V
.registers 3
.line 1
iget-object v0, p0, Lrx/internal/util/ActionNotificationObserver;->onNotification:Lrx/functions/Action1;
invoke-static {}, Lrx/Notification;->createOnCompleted()Lrx/Notification;
move-result-object v1
invoke-interface {v0, v1}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.line 1
iget-object v0, p0, Lrx/internal/util/ActionNotificationObserver;->onNotification:Lrx/functions/Action1;
invoke-static {p1}, Lrx/Notification;->createOnError(Ljava/lang/Throwable;)Lrx/Notification;
move-result-object p1
invoke-interface {v0, p1}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lrx/internal/util/ActionNotificationObserver;->onNotification:Lrx/functions/Action1;
invoke-static {p1}, Lrx/Notification;->createOnNext(Ljava/lang/Object;)Lrx/Notification;
move-result-object p1
invoke-interface {v0, p1}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
return-void
.end method