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

Convert Textevent to room favourites #21

Open
hpposch opened this issue Sep 19, 2018 · 2 comments
Open

Convert Textevent to room favourites #21

hpposch opened this issue Sep 19, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@hpposch
Copy link

hpposch commented Sep 19, 2018

Hi,

i just saw that in the TextEvents i also get the room favourites.
Now i want to convert them to a class, but i can not get this working.
Can someone please help me to deserialize the following text to a java class.:

TextEvent{uuid=1121d919-02b0-e821-ffff44ee4e487b2e, iconUuid=00000000-0000-0000-0000000000000000, text='{ "getroomfavs_result": [ {"id": 2, "type":4, "totalitems":6, "start":0, "items": [ { "slot": 1, "name": "Hitradio Ö3 (Wien)" }, { "slot": 2, "name": "Radio FM4 (Wien)" }, { "slot": 3, "name": "ORF Radio Steiermark (Steiermark)" }, { "slot": 4, "name": "Clasic Radio Beethoven" }, { "slot": 5, "name": "Antenne Steiermark" }, { "slot": 6, "name": "ANTENNE BAYERN" } ] } ], "command":"audio/cfg/getroomfavs/2/0/10" }'}

This is the complete class, only the content of 'text' must be deserialized.
Thanks in advance :)

@hpposch
Copy link
Author

hpposch commented Sep 19, 2018

Ok i already found a online converter.
So this one is solved ;)

@hpposch hpposch closed this as completed Sep 19, 2018
@jimirocks
Copy link
Contributor

Well in the future this library could support all the loxone structures, so le'ts keep this as feature request

@jimirocks jimirocks reopened this Sep 19, 2018
@jimirocks jimirocks added the enhancement New feature or request label Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants