public SyncTargetById_Target_Mode(String targetIds) {
   try {
     this.targetIds = targetIds;
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 2
0
 @Override
 public void onWorkOk(ReadyGoooWork work) {
   try {
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 3
0
 protected void unRegisterEventBus() {
   try {
     EventBus.getDefault().unregister(this);
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 4
0
 public SyncTask_Event(Target_Bean target) {
   super();
   try {
     setTarget(target);
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 5
0
 @Override
 public void showToast(CharSequence text) {
   try {
     getToastComponent().showToast(text);
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 6
0
 public void getFilter(HashSet<String> filter) {
   try {
     filter.add(Broadcast_Const.BC_TAG_UI_DATACHANGED);
     filter.add(Broadcast_Const.BC_TAG_WORK);
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 7
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   try {
     mActivity = null;
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 8
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   try {
     mActivity = getActivity();
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 9
0
 @Override
 public void onPause() {
   super.onPause();
   try {
     getBroadcastReceiver().unRegister(getApplicationContext());
     unRegisterEventBus();
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 10
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);
   }
 }
Ejemplo n.º 11
0
 @Override
 public void saveData(JSONObject data) {
   try {
     AppNote_sp tAsp = new AppNote_sp(getApplicationContext());
     AppNote_Bean tAppNote = tAsp.read();
     tAppNote.savePageData(getClass().getName(), data);
     tAsp.write(tAppNote);
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 12
0
 @Override
 public HashSet<String> getFilter() {
   HashSet<String> result = null;
   try {
     result = new HashSet<String>();
     getFilter(result);
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
   return result;
 }
Ejemplo n.º 13
0
 @Override
 public JSONObject readData() {
   JSONObject result = new JSONObject();
   try {
     AppNote_sp tAsp = new AppNote_sp(getApplicationContext());
     AppNote_Bean tAppNote = tAsp.read();
     result = tAppNote.readPageData(getClass().getName());
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
   return result;
 }
Ejemplo n.º 14
0
 @Override
 public void doWork(Context context) {
   super.doWork(context);
   try {
     // 从网络获取Tag列表
     Task_GetList_NetRequest tNetWork = new Task_GetList_NetRequest(getContext());
     TaskList_Bean tTagList = tNetWork.doRequest(getTarget().getTarget_id());
     // 转入数据库中
     TaskManager.getInstance(getContext()).writeTaskList(getTarget().getTarget_id(), tTagList);
     // 发送广播提示Task有更新
     post(new TaskOnChange_Event());
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
 @Override
 public void doWork() {
   try {
     ArrayList<Target_Bean> targetList = new ArrayList<Target_Bean>();
     Target_GetById_NetRequest netRequest = new Target_GetById_NetRequest(getContext());
     targetList = netRequest.doUploadGroupMembers(targetIds);
     // 保存Target
     TargetManager.getInstance(getContext()).writeTargetList(targetList);
     // 通知UI刷新
     JSONArray t_JsonArray = new JSONArray(targetIds);
     for (int i = 0; i < t_JsonArray.length(); i++) {
       Broadcast_Sender.targetChanged(getContext());
     }
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 16
0
 @Override
 public void doWorkReceiver(String status, String className, String data) {
   try {
     if (status.equals(Broadcast_Const.BC_TAG_UI_DATACHANGED_TARGET)) {
       onTargetChangedReceiver();
     } else if (status.equals(Broadcast_Const.BC_TAG_UI_DATACHANGED_TARGETMEMBER)) {
       String tId = new JSONObject(data).getString("targetId");
       onTargetMemeberChangedReceiver(tId);
     } else if (status.equals(Broadcast_Const.BC_TAG_UI_DATACHANGED_SCHEDULE)) {
       String tId = new JSONObject(data).getString("targetId");
       onScheduleChangedReceiver(tId);
     } else if (status.equals(Broadcast_Const.BC_TAG_CLOUD_CHANGED_TARGET)) {
       onTargetCloudChangedReceiver();
     } else if (status.equals(Broadcast_Const.BC_TAG_CLOUD_CHANGED_TARGETMEMBER)) {
       String tId = new JSONObject(data).getString("targetId");
       onTargetMemeberCloudChangedReceiver(tId);
     } else if (status.equals(Broadcast_Const.BC_TAG_CLOUD_CHANGED_SCHEDULE)) {
       String tId = new JSONObject(data).getString("targetId");
       onScheduleCloudChangedReceiver(tId);
     }
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 17
0
 public void onTargetCloudChangedReceiver() {
   try {
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 18
0
 public void onScheduleCloudChangedReceiver(String id) {
   try {
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }
Ejemplo n.º 19
0
 public void onTargetMemeberCloudChangedReceiver(String id) {
   try {
   } catch (Exception e) {
     ExceptionHandle.ignoreException(e);
   }
 }