Closed philippn closed 4 years ago
Please find attached sample Devicelist of a Fritz DECT switch 200 (without battery) and screenshot from code fritz-dect.zip
Hi @philippn is this what you want: https://github.com/kaklakariada/fritzbox-java-api/pull/12/files#diff-08a9d6a4121e714a8a702a9d5595c483 ? If yes I will include this into a new release.
Hi @kaklakariada, yes, exactly 👍
This is a breaking change, that's why I incremented the version to 1.0.0. You can now download it now from the jcenter maven repo.
Hi there, I have another suggestion to make regarding your API. In the Device class,
battery
andbatteryLow
are currently mapped asint
. This yields the problem that it is indistinguishable whether the value is 0 or not set at all.Basically, I see two options here to circumvent this problem:
Integer
instead, in that casenull
would mean that it is not set-1
, which clients could handle specificallyThanks again for your nice work and kind regards, Philipp