.class public Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter;
.super Lcom/moji/base/MJPresenter;
.source "NearByLivePhotoPresenter.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/base/MJPresenter<",
        "Lcom/moji/mjweather/thunderstorm/NearByLivePhotoCallBack;",
        ">;"
    }
.end annotation


# direct methods
.method public constructor <init>(Lcom/moji/mjweather/thunderstorm/NearByLivePhotoCallBack;)V
    .locals 0

    .line 22
    invoke-direct {p0, p1}, Lcom/moji/base/MJPresenter;-><init>(Lcom/moji/base/MJPresenter$ICallback;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter;)Lcom/moji/base/MJPresenter$ICallback;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;

    return-object p0
.end method

.method static synthetic b(Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter;)Lcom/moji/base/MJPresenter$ICallback;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;

    return-object p0
.end method

.method static synthetic c(Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter;)Lcom/moji/base/MJPresenter$ICallback;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;

    return-object p0
.end method


# virtual methods
.method public a()V
    .locals 9

    .line 28
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v0

    .line 30
    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object v1

    sget-object v2, Lcom/moji/location/MJLocationSource;->AMAP_LOCATION:Lcom/moji/location/MJLocationSource;

    invoke-static {v1, v2}, Lcom/moji/location/provider/HistoryLocationHelper;->b(Landroid/content/Context;Lcom/moji/location/MJLocationSource;)Lcom/moji/location/entity/MJLocation;

    move-result-object v1

    if-eqz v0, :cond_1

    if-nez v1, :cond_0

    goto :goto_0

    .line 37
    :cond_0
    new-instance v8, Lcom/moji/http/snsforum/SideBaseRequest;

    iget v3, v0, Lcom/moji/common/area/AreaInfo;->cityId:I

    invoke-virtual {v1}, Lcom/moji/location/entity/MJLocation;->getLatitude()D

    move-result-wide v4

    invoke-virtual {v1}, Lcom/moji/location/entity/MJLocation;->getLongitude()D

    move-result-wide v6

    move-object v2, v8

    invoke-direct/range {v2 .. v7}, Lcom/moji/http/snsforum/SideBaseRequest;-><init>(IDD)V

    .line 39
    new-instance v0, Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter$1;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter$1;-><init>(Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter;)V

    invoke-virtual {v8, v0}, Lcom/moji/http/snsforum/SideBaseRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V

    return-void

    .line 33
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/moji/mjweather/thunderstorm/NearByLivePhotoPresenter;->a:Lcom/moji/base/MJPresenter$ICallback;

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

    invoke-interface {v0}, Lcom/moji/mjweather/thunderstorm/NearByLivePhotoCallBack;->a()V

    return-void
.end method
