Replace ControlResponse with one provided by jndn:0.10+
Change-Id: Ie914067da0faea5e2c188c59688b785d548310db
diff --git a/src/main/java/com/intel/jndn/management/Nfdc.java b/src/main/java/com/intel/jndn/management/Nfdc.java
index ae94417..ca1a52b 100644
--- a/src/main/java/com/intel/jndn/management/Nfdc.java
+++ b/src/main/java/com/intel/jndn/management/Nfdc.java
@@ -17,7 +17,6 @@
import com.intel.jndn.management.helpers.FetchHelper;
import com.intel.jndn.management.helpers.StatusDatasetHelper;
import net.named_data.jndn.*;
-import com.intel.jndn.management.types.ControlResponse;
import com.intel.jndn.management.types.FaceStatus;
import com.intel.jndn.management.types.FibEntry;
import com.intel.jndn.management.types.ForwarderStatus;
@@ -191,7 +190,7 @@
ControlResponse response = sendCommand(face, command);
// return
- return response.getBody().get(0).getFaceId();
+ return response.getBodyAsControlParameters().getFaceId();
}
catch (IOException|EncodingException e) {
throw new ManagementException(e.getMessage(), e);