| | |
| | | params.addBodyParameter(Device.FieldNames.type, CommonVariables.DeviceType.ANDROID_DEVICE);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | List<Device> devices = resultBean.getListBeanOfType(Device.class);
|
| | | List<Device> devices = resultBean.getList(Device.class);
|
| | | if (devices.size() > 0) {
|
| | | final Device device = devices.get(0);
|
| | | BaseApplication.getInstance().setAndroidDevice(device);
|
| | |
| | | params.addBodyParameter(Device.FieldNames.type, CommonVariables.DeviceType.CAMERA1);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | List<Device> devices = resultBean.getListBeanOfType(Device.class);
|
| | | List<Device> devices = resultBean.getList(Device.class);
|
| | | if (devices.size() > 0) {
|
| | | final Device camera1 = devices.get(0);
|
| | | BaseApplication.getInstance().setCamera1(camera1);
|
| | |
| | | params.addBodyParameter(Device.FieldNames.type, CommonVariables.DeviceType.CAMERA2);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | List<Device> devices = resultBean.getListBeanOfType(Device.class);
|
| | | List<Device> devices = resultBean.getList(Device.class);
|
| | | if (devices.size() > 0) {
|
| | | final Device camera2 = devices.get(0);
|
| | | BaseApplication.getInstance().setCamera2(camera2);
|
| | |
| | | // params.addBodyParameter(Device.FieldNames.type, CommonVariables.DeviceType.ANDROID_DEVICE);
|
| | | // x.http().post(params, new BaseCommonCallBack() {
|
| | | // public void success() {
|
| | | // List<Device> places = resultBean.getListBeanOfType(Device.class);
|
| | | // List<Device> places = resultBean.getList(Device.class);
|
| | | // if (places.size() > 0) {
|
| | | // BaseApplication.getInstance().setAndroidDevice(places.get(0));
|
| | | // } else {
|