.class Lcom/moji/mjweather/thunderstorm/TsMapPresenter; .super Lcom/moji/base/MJPresenter; .source "TsMapPresenter.java" # annotations .annotation system Ldalvik/annotation/Signature; value = { "Lcom/moji/base/MJPresenter<", "Lcom/moji/mjweather/thunderstorm/TsMapCallBack;", ">;" } .end annotation # instance fields .field private b:Lcom/amap/api/maps2d/model/LatLng; # direct methods .method constructor (Lcom/moji/mjweather/thunderstorm/TsMapCallBack;)V .locals 5 .line 23 invoke-direct {p0, p1}, Lcom/moji/base/MJPresenter;->(Lcom/moji/base/MJPresenter$ICallback;)V const/4 p1, 0x0 .line 20 iput-object p1, p0, Lcom/moji/mjweather/thunderstorm/TsMapPresenter;->b:Lcom/amap/api/maps2d/model/LatLng; .line 24 invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context; move-result-object p1 sget-object v0, Lcom/moji/location/MJLocationSource;->AMAP_LOCATION:Lcom/moji/location/MJLocationSource; invoke-static {p1, v0}, Lcom/moji/location/provider/HistoryLocationHelper;->b(Landroid/content/Context;Lcom/moji/location/MJLocationSource;)Lcom/moji/location/entity/MJLocation; move-result-object p1 .line 25 new-instance v0, Lcom/amap/api/maps2d/model/LatLng; invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getLatitude()D move-result-wide v1 invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getLongitude()D move-result-wide v3 invoke-direct {v0, v1, v2, v3, v4}, Lcom/amap/api/maps2d/model/LatLng;->(DD)V iput-object v0, p0, Lcom/moji/mjweather/thunderstorm/TsMapPresenter;->b:Lcom/amap/api/maps2d/model/LatLng; return-void .end method .method static synthetic a(Lcom/moji/mjweather/thunderstorm/TsMapPresenter;)Lcom/moji/base/MJPresenter$ICallback; .locals 0 .line 18 iget-object p0, p0, Lcom/moji/mjweather/thunderstorm/TsMapPresenter;->a:Lcom/moji/base/MJPresenter$ICallback; return-object p0 .end method .method static synthetic b(Lcom/moji/mjweather/thunderstorm/TsMapPresenter;)Lcom/moji/base/MJPresenter$ICallback; .locals 0 .line 18 iget-object p0, p0, Lcom/moji/mjweather/thunderstorm/TsMapPresenter;->a:Lcom/moji/base/MJPresenter$ICallback; return-object p0 .end method .method static synthetic c(Lcom/moji/mjweather/thunderstorm/TsMapPresenter;)Lcom/moji/base/MJPresenter$ICallback; .locals 0 .line 18 iget-object p0, p0, Lcom/moji/mjweather/thunderstorm/TsMapPresenter;->a:Lcom/moji/base/MJPresenter$ICallback; return-object p0 .end method # virtual methods .method a()V .locals 2 .line 29 iget-object v0, p0, Lcom/moji/mjweather/thunderstorm/TsMapPresenter;->a:Lcom/moji/base/MJPresenter$ICallback; check-cast v0, Lcom/moji/mjweather/thunderstorm/TsMapCallBack; iget-object v1, p0, Lcom/moji/mjweather/thunderstorm/TsMapPresenter;->b:Lcom/amap/api/maps2d/model/LatLng; invoke-interface {v0, v1}, Lcom/moji/mjweather/thunderstorm/TsMapCallBack;->a(Lcom/amap/api/maps2d/model/LatLng;)V return-void .end method .method b()V .locals 5 .line 33 new-instance v0, Lcom/moji/http/thunderstorm/TsMapRequest; iget-object v1, p0, Lcom/moji/mjweather/thunderstorm/TsMapPresenter;->b:Lcom/amap/api/maps2d/model/LatLng; iget-wide v1, v1, Lcom/amap/api/maps2d/model/LatLng;->latitude:D iget-object v3, p0, Lcom/moji/mjweather/thunderstorm/TsMapPresenter;->b:Lcom/amap/api/maps2d/model/LatLng; iget-wide v3, v3, Lcom/amap/api/maps2d/model/LatLng;->longitude:D invoke-direct {v0, v1, v2, v3, v4}, Lcom/moji/http/thunderstorm/TsMapRequest;->(DD)V new-instance v1, Lcom/moji/mjweather/thunderstorm/TsMapPresenter$1; invoke-direct {v1, p0}, Lcom/moji/mjweather/thunderstorm/TsMapPresenter$1;->(Lcom/moji/mjweather/thunderstorm/TsMapPresenter;)V invoke-virtual {v0, v1}, Lcom/moji/http/thunderstorm/TsMapRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V return-void .end method