.class public Lcom/moji/http/redleaves/RLFeedbackRequest; .super Lcom/moji/http/redleaves/RLBaseRequest; .source "RLFeedbackRequest.java" # annotations .annotation system Ldalvik/annotation/Signature; value = { "Lcom/moji/http/redleaves/RLBaseRequest<", "Lcom/moji/http/redleaves/entity/RLSceneResponse;", ">;" } .end annotation # direct methods .method public constructor (Ljava/lang/Double;Ljava/lang/Double;Ljava/lang/Integer;ILjava/lang/String;)V .locals 1 const-string v0, "leaf/attraction_feed_back" .line 17 invoke-direct {p0, v0}, Lcom/moji/http/redleaves/RLBaseRequest;->(Ljava/lang/String;)V if-eqz p1, :cond_0 if-nez p2, :cond_1 :cond_0 if-eqz p3, :cond_5 :cond_1 if-eqz p1, :cond_2 const-string v0, "longitude" .line 22 invoke-virtual {p0, v0, p1}, Lcom/moji/http/redleaves/RLFeedbackRequest;->a(Ljava/lang/String;Ljava/lang/Object;)V :cond_2 if-eqz p2, :cond_3 const-string p1, "latitude" .line 25 invoke-virtual {p0, p1, p2}, Lcom/moji/http/redleaves/RLFeedbackRequest;->a(Ljava/lang/String;Ljava/lang/Object;)V :cond_3 if-eqz p3, :cond_4 const-string p1, "city_id" .line 28 invoke-virtual {p0, p1, p3}, Lcom/moji/http/redleaves/RLFeedbackRequest;->a(Ljava/lang/String;Ljava/lang/Object;)V :cond_4 const-string p1, "result_number" .line 30 invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p2 invoke-virtual {p0, p1, p2}, Lcom/moji/http/redleaves/RLFeedbackRequest;->a(Ljava/lang/String;Ljava/lang/Object;)V const-string p1, "result_name" .line 31 invoke-virtual {p0, p1, p5}, Lcom/moji/http/redleaves/RLFeedbackRequest;->a(Ljava/lang/String;Ljava/lang/Object;)V return-void .line 19 :cond_5 new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "Red leaves feedback need at least one of Lon/Lat or cityID" invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method # virtual methods .method protected a()Lcom/moji/requestcore/method/MJMethod; .locals 2 .line 36 new-instance v0, Lcom/moji/requestcore/method/POST_JSON; new-instance v1, Lcom/moji/requestcore/encrypt/DefaultEncryptParamImpl; invoke-direct {v1}, Lcom/moji/requestcore/encrypt/DefaultEncryptParamImpl;->()V invoke-direct {v0, v1}, Lcom/moji/requestcore/method/POST_JSON;->(Lcom/moji/requestcore/encrypt/IEncryptParams;)V return-object v0 .end method