public Observable testPost11(String user_name) { HashMap<String, String> map = new HashMap<String, String>(); map.put("user_name", user_name); map.put("site", "1"); return (Observable) mHttpRequest.doPost("http://www.baidu.com", map, Object.class); }
public Observable testPost02() { HashMap<String, String> map = new HashMap<String, String>(); map.put("id", "123"); map.put("name", "jack"); return (Observable) mHttpRequest.doPost("http://www.baidu.com", map, Object.class); }
public Observable testPost00() { return (Observable) mHttpRequest.doPost("http://www.baidu.com", Object.class); }
public Observable testGet11(String user_id) { return (Observable) mHttpRequest.doGet( "http://www.baidu.com?" + "&user_id=" + user_id + "&name=jack", Object.class); }
public Observable testGet02() { return (Observable) mHttpRequest.doGet("http://www.baidu.com?" + "&user_id=123" + "&name=jack", Object.class); }
public Observable testGet21(String user_id, String test) { return (Observable) mHttpRequest.doGet( "http://www.baidu.com?" + "&user_id=" + user_id + "&test=" + test, Object.class); }