ConnectRepository.smali

.class public Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ICmConnectService;


# static fields
.field private static INSTANCE:Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;


# instance fields
.field private mCmRemoteLoader:Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;


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

    const/4 v0, 0x0

    sput-object v0, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;->INSTANCE:Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;

    return-void
.end method

.method private constructor <init>()V
    .registers 2

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

    new-instance v0, Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;

    invoke-direct {v0}, Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;-><init>()V

    iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;->mCmRemoteLoader:Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;

    return-void
.end method

.method public static getInstance()Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;
    .registers 1

    sget-object v0, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;->INSTANCE:Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;

    if-nez v0, :cond_b

    new-instance v0, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;

    invoke-direct {v0}, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;-><init>()V

    sput-object v0, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;->INSTANCE:Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;

    :cond_b
    sget-object v0, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;->INSTANCE:Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;

    return-object v0
.end method


# virtual methods
.method public downloadFile(Ljava/lang/String;Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback",
            "<",
            "Lokhttp3/ResponseBody;",
            ">;)V"
        }
    .end annotation

    iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;->mCmRemoteLoader:Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;

    invoke-virtual {v0, p1, p2}, Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;->downloadFile(Ljava/lang/String;Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback;)V

    return-void
.end method

.method public freshRemoteLoader()V
    .registers 2

    new-instance v0, Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;

    invoke-direct {v0}, Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;-><init>()V

    iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;->mCmRemoteLoader:Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;

    return-void
.end method

.method public invoke(Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback;Ljava/lang/String;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback",
            "<TT;>;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    const/4 v0, 0x0

    invoke-virtual {p0, p1, p2, v0}, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;->invoke(Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback;Ljava/lang/String;Ljava/lang/Object;)V

    return-void
.end method

.method public invoke(Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback;Ljava/lang/String;Ljava/lang/Object;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback",
            "<TT;>;",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ")V"
        }
    .end annotation

    iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;->mCmRemoteLoader:Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;

    invoke-virtual {v0, p1, p2, p3}, Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;->invoke(Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback;Ljava/lang/String;Ljava/lang/Object;)V

    return-void
.end method

.method public invokePost(Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback;Ljava/lang/String;Ljava/lang/Object;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback",
            "<TT;>;",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ")V"
        }
    .end annotation

    iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/http2/source/ConnectRepository;->mCmRemoteLoader:Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;

    invoke-virtual {v0, p1, p2, p3}, Lcom/cmcm/xiaobao/phone/smarthome/http2/remote/CmRemoteLoader;->invokePost(Lcom/cmcm/xiaobao/phone/smarthome/http2/source/LoadDataCallback;Ljava/lang/String;Ljava/lang/Object;)V

    return-void
.end method