|
|
@@ -27,14 +27,14 @@ public class GoodsPresenter extends BasePresenter<IGoodsView> {
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
|
.subscribe(new BaseObserver<List<GoodsBean>>() {
|
|
|
@Override
|
|
|
- public void onSuccess(List<GoodsBean> result) {
|
|
|
+ public void onSuccess(int code, List<GoodsBean> result) {
|
|
|
if (getView() != null) {
|
|
|
getView().onGoodsDataCome(true, EdenError.SUCCESS, result);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onFailure(Throwable e, String errMsg) {
|
|
|
+ public void onFailure(int code, Throwable e, String errMsg) {
|
|
|
if (getView() != null) {
|
|
|
getView().onGoodsDataCome(false, EdenError.COMMON, null);
|
|
|
}
|
|
|
@@ -50,14 +50,14 @@ public class GoodsPresenter extends BasePresenter<IGoodsView> {
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
|
.subscribe(new BaseObserver<String>() {
|
|
|
@Override
|
|
|
- public void onSuccess(String result) {
|
|
|
+ public void onSuccess(int code, String result) {
|
|
|
if (getView() != null) {
|
|
|
getView().onDeleteGoodsResult(true, EdenError.SUCCESS, position);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onFailure(Throwable e, String errMsg) {
|
|
|
+ public void onFailure(int code, Throwable e, String errMsg) {
|
|
|
if (getView() != null) {
|
|
|
getView().onDeleteGoodsResult(false, EdenError.COMMON, position);
|
|
|
}
|
|
|
@@ -73,14 +73,14 @@ public class GoodsPresenter extends BasePresenter<IGoodsView> {
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
|
.subscribe(new BaseObserver<String>() {
|
|
|
@Override
|
|
|
- public void onSuccess(String result) {
|
|
|
+ public void onSuccess(int code, String result) {
|
|
|
if (getView() != null) {
|
|
|
getView().onRevertGoodsEnable(true, EdenError.SUCCESS, position);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onFailure(Throwable e, String errMsg) {
|
|
|
+ public void onFailure(int code, Throwable e, String errMsg) {
|
|
|
if (getView() != null) {
|
|
|
getView().onRevertGoodsEnable(false, EdenError.COMMON, position);
|
|
|
}
|