예제 #1
0
파일: LogoutTask.java 프로젝트: niczy/hyo
 @Override
 protected Object process(TServiceClient client) throws TException {
   IProfileService.Client iclient = (IProfileService.Client) client;
   try {
     if (!GlobalConfig.isWorkWithoutNetWork(mContext)) {
       String sid = ProfileHolder.getIns().getCurrentSid(mContext);
       iclient.logout(sid);
     }
   } catch (Throwable e) {
     Log.e("Logout", "failed", e);
   }
   ProfileHolder.getIns().logout(mContext);
   return ECode.SUCCESS;
 }
예제 #2
0
파일: LoginDialog.java 프로젝트: niczy/hyo
 @Override
 protected Object process(TServiceClient client) throws TException, AException {
   IProfileService.Client iclient = (Client) client;
   mResult = iclient.getAllUsers();
   return ECode.SUCCESS;
 }