.class Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic$2;
.super Lcom/moji/requestcore/MJBaseHttpCallback;
.source "TsUploadPhotoPresenter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;->b(Ljava/util/ArrayList;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/requestcore/MJBaseHttpCallback<",
        "Lcom/moji/http/snsforum/entity/UpLoadPictureSuccessResult;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Ljava/util/ArrayList;

.field final synthetic b:Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;Ljava/util/ArrayList;)V
    .locals 0

    .line 234
    iput-object p1, p0, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic$2;->b:Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;

    iput-object p2, p0, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic$2;->a:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/moji/requestcore/MJBaseHttpCallback;-><init>()V

    return-void
.end method


# virtual methods
.method protected a(Lcom/moji/http/snsforum/entity/UpLoadPictureSuccessResult;)V
    .locals 5

    .line 237
    invoke-virtual {p1}, Lcom/moji/http/snsforum/entity/UpLoadPictureSuccessResult;->OK()Z

    move-result v0

    if-nez v0, :cond_0

    .line 238
    invoke-virtual {p1}, Lcom/moji/http/snsforum/entity/UpLoadPictureSuccessResult;->getDesc()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    .line 239
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic$2;->onFailed(Lcom/moji/requestcore/MJException;)V

    return-void

    .line 243
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic$2;->b:Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;

    const/4 v1, 0x1

    new-array v2, v1, [Ljava/lang/Integer;

    const/16 v3, 0x64

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const/4 v4, 0x0

    aput-object v3, v2, v4

    invoke-static {v0, v2}, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;->b(Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;[Ljava/lang/Object;)V

    .line 244
    iget-object v0, p0, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic$2;->b:Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;

    iget-object v0, v0, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;->a:Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter;

    invoke-static {v0}, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter;->d(Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter;)Lcom/moji/base/MJPresenter$ICallback;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/thunderstorm/UpLoadCallback;

    iget-object v2, p0, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic$2;->a:Ljava/util/ArrayList;

    invoke-virtual {v2, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$ImagePath;

    iget-object v2, v2, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$ImagePath;->b:Ljava/lang/String;

    iget-object p1, p1, Lcom/moji/http/snsforum/entity/UpLoadPictureSuccessResult;->pic_ids:Ljava/util/List;

    invoke-interface {p1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Integer;

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    int-to-long v3, p1

    invoke-interface {v0, v1, v2, v3, v4}, Lcom/moji/mjweather/thunderstorm/UpLoadCallback;->a(ZLjava/lang/String;J)V

    return-void
.end method

.method protected onFailed(Lcom/moji/requestcore/MJException;)V
    .locals 4

    if-eqz p1, :cond_0

    const p1, 0x7f0e0596

    .line 251
    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V

    .line 253
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic$2;->b:Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;

    iget-object p1, p1, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic;->a:Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter;

    invoke-static {p1}, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter;->e(Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter;)Lcom/moji/base/MJPresenter$ICallback;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/thunderstorm/UpLoadCallback;

    const/4 v0, 0x0

    const/4 v1, 0x0

    const-wide/16 v2, 0x0

    invoke-interface {p1, v0, v1, v2, v3}, Lcom/moji/mjweather/thunderstorm/UpLoadCallback;->a(ZLjava/lang/String;J)V

    return-void
.end method

.method protected synthetic onSuccess(Ljava/lang/Object;)V
    .locals 0

    .line 234
    check-cast p1, Lcom/moji/http/snsforum/entity/UpLoadPictureSuccessResult;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/thunderstorm/TsUploadPhotoPresenter$AsyncUploadPic$2;->a(Lcom/moji/http/snsforum/entity/UpLoadPictureSuccessResult;)V

    return-void
.end method
