1
0
mirror of https://github.com/WuXiaolong/AndroidMVPSample.git synced 2025-06-06 13:24:03 +08:00

change method name

This commit is contained in:
pdog 2018-03-23 11:18:13 +08:00
parent 4aa23833a6
commit ee27e46190
3 changed files with 3 additions and 4 deletions

View File

@ -17,7 +17,7 @@ public class MainPresenter extends BasePresenter<MainView> {
public void loadDataByRetrofitRxjava(String cityId) {
mvpView.showLoading();
addSubscription(apiStores.loadDataByRetrofitRxjava(cityId),
addSubscription(apiStores.loadDataByRetrofitRxJava(cityId),
new ApiCallback<MainModel>() {
@Override
public void onSuccess(MainModel model) {

View File

@ -23,5 +23,5 @@ public interface ApiStores {
//加载天气
@GET("adat/sk/{cityId}.html")
Observable<MainModel> loadDataByRetrofitRxjava(@Path("cityId") String cityId);
Observable<MainModel> loadDataByRetrofitRxJava(@Path("cityId") String cityId);
}

View File

@ -13,7 +13,6 @@ import com.wuxiaolong.androidmvpsample.retrofit.ApiCallback;
import com.wuxiaolong.androidmvpsample.retrofit.RetrofitCallback;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import retrofit2.Call;
@ -102,7 +101,7 @@ public class MainActivity extends MvpActivity<MainPresenter> implements MainView
private void loadDataByRetrofitRxJava() {
showProgressDialog();
addSubscription(
apiStores().loadDataByRetrofitRxjava("101220602"),
apiStores().loadDataByRetrofitRxJava("101220602"),
new ApiCallback<MainModel>() {
@Override