goblint / GobPie

Goblint IDE integration via MagpieBridge
MIT License
5 stars 3 forks source link

Use a TypeAdapter to deserialize Multipiece from json and cleanup #66

Closed karoliineh closed 1 year ago

karoliineh commented 1 year ago

Until now, the Multipiece class was used for both handling the Group and Single type of Goblint messages, having all fields from both of the records and thus making it messy. This PR adds the subclasses for Group and Single and deserializes the multipiece from JSON to the appropriate classes.