Ejemplo n.º 1
0
	/**
	 * 执行任务请求
	 * @param method
	 * @param url
	 * @param params
	 * @param listenre
	 * @param errorListener
	 */	
	private void requestVerifyCode(int method, String methodUrl, Map<String, String> params,	 
			Listener<BaseBean> listenre, ErrorListener errorListener) {			
		if(mVerifyCodeRequest != null) {
			mVerifyCodeRequest.cancel();
		}	
		String url = NetConfig.getServerBaseUrl() + NetConfig.EXTEND_URL + methodUrl;
		mVerifyCodeRequest = new BaseRequest(method, url, params, listenre, errorListener);
		startRequest(mVerifyCodeRequest);		
	}
Ejemplo n.º 2
0
	/**
	 * 执行注册任务请求
	 * @param method
	 * @param url
	 * @param params
	 * @param listenre
	 * @param errorListener
	 */	
	private void requestRegister(int method, String methodUrl, Map<String, String> params,	 
			Listener<Register> listenre, ErrorListener errorListener) {			
		if(mRegisterRequest != null) {
			mRegisterRequest.cancel();
		}	
		String url = NetConfig.getServerBaseUrl() + NetConfig.EXTEND_URL + methodUrl;
		mRegisterRequest = new RegisterRequest(method, url, params, listenre, errorListener);
		startRequest(mRegisterRequest);		
	}