ExecutorDelivery.smali

.class public Lcom/tradplus/ads/volley/ExecutorDelivery;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/tradplus/ads/volley/ResponseDelivery;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/tradplus/ads/volley/ExecutorDelivery$a;
    }
.end annotation


# instance fields
.field private final a:Ljava/util/concurrent/Executor;


# direct methods
.method public constructor <init>(Landroid/os/Handler;)V
    .registers 3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lcom/tradplus/ads/volley/ExecutorDelivery$1;

    invoke-direct {v0, p0, p1}, Lcom/tradplus/ads/volley/ExecutorDelivery$1;-><init>(Lcom/tradplus/ads/volley/ExecutorDelivery;Landroid/os/Handler;)V

    iput-object v0, p0, Lcom/tradplus/ads/volley/ExecutorDelivery;->a:Ljava/util/concurrent/Executor;

    return-void
.end method

.method public constructor <init>(Ljava/util/concurrent/Executor;)V
    .registers 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/tradplus/ads/volley/ExecutorDelivery;->a:Ljava/util/concurrent/Executor;

    return-void
.end method


# virtual methods
.method public postError(Lcom/tradplus/ads/volley/Request;Lcom/tradplus/ads/volley/VolleyError;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/tradplus/ads/volley/Request<",
            "*>;",
            "Lcom/tradplus/ads/volley/VolleyError;",
            ")V"
        }
    .end annotation

    const-string v0, "post-error"

    invoke-virtual {p1, v0}, Lcom/tradplus/ads/volley/Request;->addMarker(Ljava/lang/String;)V

    invoke-static {p2}, Lcom/tradplus/ads/volley/Response;->error(Lcom/tradplus/ads/volley/VolleyError;)Lcom/tradplus/ads/volley/Response;

    move-result-object p2

    iget-object v0, p0, Lcom/tradplus/ads/volley/ExecutorDelivery;->a:Ljava/util/concurrent/Executor;

    new-instance v1, Lcom/tradplus/ads/volley/ExecutorDelivery$a;

    const/4 v2, 0x0

    invoke-direct {v1, p0, p1, p2, v2}, Lcom/tradplus/ads/volley/ExecutorDelivery$a;-><init>(Lcom/tradplus/ads/volley/ExecutorDelivery;Lcom/tradplus/ads/volley/Request;Lcom/tradplus/ads/volley/Response;Ljava/lang/Runnable;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public postResponse(Lcom/tradplus/ads/volley/Request;Lcom/tradplus/ads/volley/Response;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/tradplus/ads/volley/Request<",
            "*>;",
            "Lcom/tradplus/ads/volley/Response<",
            "*>;)V"
        }
    .end annotation

    const/4 v0, 0x0

    invoke-virtual {p0, p1, p2, v0}, Lcom/tradplus/ads/volley/ExecutorDelivery;->postResponse(Lcom/tradplus/ads/volley/Request;Lcom/tradplus/ads/volley/Response;Ljava/lang/Runnable;)V

    return-void
.end method

.method public postResponse(Lcom/tradplus/ads/volley/Request;Lcom/tradplus/ads/volley/Response;Ljava/lang/Runnable;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/tradplus/ads/volley/Request<",
            "*>;",
            "Lcom/tradplus/ads/volley/Response<",
            "*>;",
            "Ljava/lang/Runnable;",
            ")V"
        }
    .end annotation

    invoke-virtual {p1}, Lcom/tradplus/ads/volley/Request;->markDelivered()V

    const-string v0, "post-response"

    invoke-virtual {p1, v0}, Lcom/tradplus/ads/volley/Request;->addMarker(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/tradplus/ads/volley/ExecutorDelivery;->a:Ljava/util/concurrent/Executor;

    new-instance v1, Lcom/tradplus/ads/volley/ExecutorDelivery$a;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/tradplus/ads/volley/ExecutorDelivery$a;-><init>(Lcom/tradplus/ads/volley/ExecutorDelivery;Lcom/tradplus/ads/volley/Request;Lcom/tradplus/ads/volley/Response;Ljava/lang/Runnable;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    return-void
.end method