SyncDownloadExecutor.smali

.class public final enum Lcom/h/m/SyncDownloadExecutor;
.super Ljava/lang/Enum;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Enum",
        "<",
        "Lcom/h/m/SyncDownloadExecutor;",
        ">;"
    }
.end annotation


# static fields
.field private static final synthetic $VALUES:[Lcom/h/m/SyncDownloadExecutor;

.field public static final enum AsyncRequestExecutor:Lcom/h/m/SyncDownloadExecutor;

.field public static final enum INSTANCE:Lcom/h/m/SyncDownloadExecutor;


# instance fields
.field private mDownloader:Lcom/h/m/Downloader;


# direct methods
.method static constructor <clinit>()V
    .registers 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    new-instance v0, Lcom/h/m/SyncDownloadExecutor;

    const-string/jumbo v1, "INSTANCE"

    invoke-direct {v0, v1, v2}, Lcom/h/m/SyncDownloadExecutor;-><init>(Ljava/lang/String;I)V

    sput-object v0, Lcom/h/m/SyncDownloadExecutor;->INSTANCE:Lcom/h/m/SyncDownloadExecutor;

    new-instance v0, Lcom/h/m/SyncDownloadExecutor;

    const-string/jumbo v1, "AsyncRequestExecutor"

    invoke-direct {v0, v1, v3}, Lcom/h/m/SyncDownloadExecutor;-><init>(Ljava/lang/String;I)V

    sput-object v0, Lcom/h/m/SyncDownloadExecutor;->AsyncRequestExecutor:Lcom/h/m/SyncDownloadExecutor;

    const/4 v0, 0x2

    new-array v0, v0, [Lcom/h/m/SyncDownloadExecutor;

    sget-object v1, Lcom/h/m/SyncDownloadExecutor;->INSTANCE:Lcom/h/m/SyncDownloadExecutor;

    aput-object v1, v0, v2

    sget-object v1, Lcom/h/m/SyncDownloadExecutor;->AsyncRequestExecutor:Lcom/h/m/SyncDownloadExecutor;

    aput-object v1, v0, v3

    sput-object v0, Lcom/h/m/SyncDownloadExecutor;->$VALUES:[Lcom/h/m/SyncDownloadExecutor;

    return-void
.end method

.method private constructor <init>(Ljava/lang/String;I)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V

    new-instance v0, Lcom/h/m/Downloader;

    invoke-static {}, Lcom/h/r/NoHttp;->getInitializeConfig()Lcom/h/r/InitializationConfig;

    move-result-object v1

    invoke-virtual {v1}, Lcom/h/r/InitializationConfig;->getNetworkExecutor()Lcom/h/r/NetworkExecutor;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/h/m/Downloader;-><init>(Lcom/h/r/NetworkExecutor;)V

    iput-object v0, p0, Lcom/h/m/SyncDownloadExecutor;->mDownloader:Lcom/h/m/Downloader;

    return-void
.end method

.method public static valueOf(Ljava/lang/String;)Lcom/h/m/SyncDownloadExecutor;
    .registers 2

    const-class v0, Lcom/h/m/SyncDownloadExecutor;

    invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;

    move-result-object v0

    check-cast v0, Lcom/h/m/SyncDownloadExecutor;

    return-object v0
.end method

.method public static values()[Lcom/h/m/SyncDownloadExecutor;
    .registers 1

    sget-object v0, Lcom/h/m/SyncDownloadExecutor;->$VALUES:[Lcom/h/m/SyncDownloadExecutor;

    invoke-virtual {v0}, [Lcom/h/m/SyncDownloadExecutor;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lcom/h/m/SyncDownloadExecutor;

    return-object v0
.end method


# virtual methods
.method public final execute(ILcom/h/m/DownloadRequest;Lcom/h/m/DownloadListener;)V
    .registers 5

    iget-object v0, p0, Lcom/h/m/SyncDownloadExecutor;->mDownloader:Lcom/h/m/Downloader;

    invoke-virtual {v0, p1, p2, p3}, Lcom/h/m/Downloader;->download(ILcom/h/m/DownloadRequest;Lcom/h/m/DownloadListener;)V

    return-void
.end method