Esempio n. 1
0
 @Override
 public void onSuccess(int arg0, Header[] arg1, byte[] arg2) {
   Result rs = XmlUtils.toBean(ResultBean.class, new ByteArrayInputStream(arg2)).getResult();
   if (rs.OK()) {
     AppContext.showToast("报名成功");
     mEventApplyDialog.dismiss();
     mDetail.getEvent().setApplyStatus(Event.APPLYSTATUS_CHECKING);
   } else {
     AppContext.showToast(rs.getErrorMessage());
   }
 }
Esempio n. 2
0
 @Override
 protected Post parseData(InputStream is) {
   return XmlUtils.toBean(PostDetail.class, is).getPost();
 }