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; } }
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; } }