Search in sources :

Example 6 with IpConfigBeen

use of httploglib.lib.been.IpConfigBeen in project LibTest by liudao01.

the class MainActivity method IPinit.

public void IPinit() {
    List<IpConfigBeen> list = new ArrayList<>();
    list.add(new IpConfigBeen("http://192.168.1.103:8080/", "测试地址1", false));
    list.add(new IpConfigBeen("http://192.168.1.102:8080/truck/api/", "测试地址2", false));
    list.add(new IpConfigBeen("http://192.168.1.157:6060/truck/api/", "测试地址3", false));
    list.add(new IpConfigBeen("http://192.168.1.154:8080/truck/api/", "测试地址4", false));
    list.add(new IpConfigBeen("http://xxx.xxx.xxx.229:8008/truck/api/", "测试地址5", false));
    list.add(new IpConfigBeen("http://xxx.175.xxx.242:8001/truck/api/", "测试地址6", false));
    list.add(new IpConfigBeen("http://58.58.62.227:81/truck/api/", "测试地址7", false));
    list.add(new IpConfigBeen("http://58.xx.xx.xxx:8008/truck/api/", "测试地址8", false));
    list.add(new IpConfigBeen("http://www.xxxxxxxx.com:8008/truck/api/", "正式接口", true));
    TestLibUtil.getInstance().initIpSwitchs(this.getApplicationContext(), list);
}
Also used : ArrayList(java.util.ArrayList) IpConfigBeen(httploglib.lib.been.IpConfigBeen)

Aggregations

IpConfigBeen (httploglib.lib.been.IpConfigBeen)6 ArrayList (java.util.ArrayList)2 JSONArray (org.json.JSONArray)2 JSONException (org.json.JSONException)2 JSONObject (org.json.JSONObject)2 Intent (android.content.Intent)1 View (android.view.View)1 TextView (android.widget.TextView)1 HttpTransaction (lib.data.HttpTransaction)1