public Onem2mContainerResponse(String jsonContent) { super(jsonContent); if (success) { success = processJsonContent(); } // if (success && !Onem2m.ResourceType.CONTAINER.contentEquals(getResourceType().toString())) { // success = false; // setError("Cannot construct an CONTAINER response with resource type: " + getResourceType()); // } }
public Onem2mContainerResponse(Onem2mResponsePrimitiveClient onem2mResponse) { super(onem2mResponse.getContent()); if (success) { success = processJsonContent(); } if (success && !onem2mResponse.responseOk()) { success = false; } }