@Override
 protected void callBackForServerSuccess(int taskID, XtomNetTask netTask, BaseResult result) {
   switch (netTask.getId()) {
     case TaskConstant.GET_ACCOUNT_DETAIL:
       @SuppressWarnings("unchecked")
       MResult<AccountDetailInfor> base = (MResult<AccountDetailInfor>) result;
       layout.refreshSuccess();
       infor = base.getObjects().get(0);
       mClient.insertOrUpdate(infor);
       managedata();
       break;
     case TaskConstant.ADD_WITHDRAW:
       XtomToastUtil.showShortToast(mContext, result.getMsg());
       switch (result.getStatus()) {
         case ServiceConstant.STATUS_SUCCESS:
           XtomToastUtil.showShortToast(mContext, result.getMsg());
           finish();
           break;
         case ServiceConstant.STATUS_FAILED:
           XtomToastUtil.showShortToast(mContext, result.getMsg());
           break;
       }
       break;
   }
   super.callBackForServerSuccess(taskID, netTask, result);
 }
Exemplo n.º 2
0
 @Override
 protected void callBackForServerSuccess(int taskID, XtomNetTask netTask, BaseResult result) {
   switch (taskID) {
     case TaskConstant.ADD_SUGGESTION:
       switch (result.getStatus()) {
         case ServiceConstant.STATUS_SUCCESS:
           XtomToastUtil.showShortToast(mContext, result.getMsg());
           finish();
           break;
         case ServiceConstant.STATUS_FAILED:
           XtomToastUtil.showShortToast(mContext, result.getMsg());
           break;
       }
       break;
   }
   super.callBackForServerSuccess(taskID, netTask, result);
 }