Пример #1
0
 @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
 @Override
 protected Object process(TServiceClient client) throws TException, AException {
   IProfileService.Client iclient = (Client) client;
   mResult = iclient.getAllUsers();
   return ECode.SUCCESS;
 }