Exemplo n.º 1
0
  @Override
  protected Boolean doInBackground(Integer... params) {
    target_id = params[0];
    memnerIds.clear();
    try {
      TargetManager dbWorkOj = TargetManager.getInstance(context.getApplicationContext());
      Target_Bean target = dbWorkOj.getTarget(target_id, "");
      target.readTargetMember_Local(context.getApplicationContext());
      User_Bean user = new User_Bean();
      user.readData(context.getApplicationContext());
      ArrayList<TargetMember_Bean> members = target.getLoc_TargetMember().getTargetMemberList();
      for (int i = 0; i < members.size(); i++) {
        if (members.get(i).getHelper_id() == user.getUser_id()) {

        } else {
          memnerIds.add(members.get(i).getHelper_id());
        }
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
    try {
      netRequest = new Action_Duang_Array_NetRequest(context);
      result = netRequest.doActionDuang(memnerIds);
    } catch (Exception e) {
      e.printStackTrace();
    }
    return result;
  }
Exemplo n.º 2
0
 public SyncTask_Event(int targetId) {
   super();
   try {
     Target_Bean tTarget = new Target_Bean();
     tTarget.setTarget_id(targetId);
     setTarget(tTarget);
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }