Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated for FRITZ-Dect 500 devices #16

Merged
merged 2 commits into from
Dec 4, 2020
Merged

Updated for FRITZ-Dect 500 devices #16

merged 2 commits into from
Dec 4, 2020

Conversation

SmokingDevices
Copy link
Contributor

While playing around with this lib i noticed that some of the newer devices are not supported.

@@ -39,6 +39,7 @@ public Deserializer() {
}

public <T> T parse(String data, Class<T> resultType) {
//LOG.info("parsing data:"+data);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't add commented code

Suggested change
//LOG.info("parsing data:"+data);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

has been removed, sorry for that.

public void parseDeviceListFritzDect200() throws IOException {
final String fileContent = Files.readAllLines(Paths.get("src/test/resources/deviceListConnectedFritzDect200Payload.xml")).stream()
.collect(joining("\n"));
new Deserializer().parse(fileContent, DeviceList.class);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding tests 👍

@kaklakariada kaklakariada merged commit a57e100 into kaklakariada:master Dec 4, 2020
@kaklakariada
Copy link
Owner

I will build a new release soon, maybe on the weekend.

@kaklakariada
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants