remove useless code
This commit is contained in:
@@ -903,14 +903,5 @@ public class Main {
|
||||
System.out.println("Get device failure");
|
||||
System.exit(-1);
|
||||
}
|
||||
|
||||
IMResult<OutputDeviceHost> getDeviceHost = UserAdmin.getDeviceHost("deviceId1");
|
||||
if (getDeviceHost != null && getDeviceHost.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS && !StringUtil.isNullOrEmpty(getDeviceHost.getResult().getHost())) {
|
||||
System.out.println("Get user device success");
|
||||
} else {
|
||||
System.out.println("Get device failure");
|
||||
System.exit(-1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,11 +90,4 @@ public class UserAdmin {
|
||||
inputUserId.setUserId(userId);
|
||||
return AdminHttpUtils.httpJsonPost(path, inputUserId, OutputDeviceList.class);
|
||||
}
|
||||
|
||||
public static IMResult<OutputDeviceHost> getDeviceHost(String deviceId) throws Exception {
|
||||
String path = APIPath.Get_Device_Host;
|
||||
InputDeviceId inputUserId = new InputDeviceId();
|
||||
inputUserId.setDeviceId(deviceId);
|
||||
return AdminHttpUtils.httpJsonPost(path, inputUserId, OutputDeviceHost.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user