コード例 #1
0
 public void getLocation(Context mainActivity) {
   UserModule user = UserStore.getInstance().getCurrentUser(mainActivity);
   if (!Utilities.isStringNullOrEmpty(user.getUserPhoneNumber())) {
     sendSMS(user.getUserPhoneNumber(), Constant.COMMAND_LOCATE_CLIENT, mainActivity);
     this.mLastCommand = Constant.COMMAND_LOCATE_CLIENT_MARK;
   }
 }
コード例 #2
0
 public void checkStatus(Context mainActivity) {
   UserModule user = UserStore.getInstance().getCurrentUser(mainActivity);
   if (!Utilities.isStringNullOrEmpty(user.getUserPhoneNumber())) {
     sendSMS(user.getUserPhoneNumber(), Constant.COMMAND_CHECK_STATUS, mainActivity);
     this.mLastCommand = Constant.COMMAND_CHECK_STATUS_MARK;
   }
 }