| | |
| | | @Override |
| | | public void onNext(@NonNull BaseResponse response) { |
| | | if(200==response.getCode()){ |
| | | EventBus.getDefault().post(new HttpEvent("批量开门 - 管理员接口成功")); |
| | | if(isAll) { |
| | | toast("批量开门成功"); |
| | | doAction(8); |
| | | }else { |
| | | doAction(10); |
| | |
| | | .subscribe(new SimpleObserver<BaseResponse>(rxJavaGcManager) { |
| | | @Override |
| | | public void onNext(@NonNull BaseResponse response) { |
| | | EventBus.getDefault().post(new HttpEvent("标记柜格正常接口成功")); |
| | | if(200==response.getCode()){ |
| | | toast("标记柜格正常成功"); |
| | | getCabinetDetail(); |
| | | }else { |
| | | toast(response.getMessage()); |
| | |
| | | @Override |
| | | public void onNext(@NonNull BaseResponse response) { |
| | | if(200==response.getCode()){ |
| | | toast("标记柜格故障成功"); |
| | | EventBus.getDefault().post(new HttpEvent("标记柜格故障接口成功")); |
| | | getCabinetDetail(); |
| | | }else { |
| | | toast(response.getMessage()); |
| | |
| | | @Override |
| | | public void onNext(@NonNull BaseResponse response) { |
| | | if(200==response.getCode()){ |
| | | toast("标记维修保养成功"); |
| | | EventBus.getDefault().post(new HttpEvent("标记维修保养接口成功")); |
| | | getCabinetDetail(); |
| | | }else { |
| | | toast(response.getMessage()); |
| | |
| | | @Override |
| | | public void onNext(@NonNull BaseResponse response) { |
| | | if(response.getCode()==200){ |
| | | EventBus.getDefault().post(new HttpEvent("关闭柜格接口成功")); |
| | | getCabinetDetail(); |
| | | doAction(11); |
| | | } |