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.
Until now, the
Multipiece
class was used for both handling theGroup
andSingle
type of Goblint messages, having all fields from both of the records and thus making it messy. This PR adds the subclasses forGroup
andSingle
and deserializes themultipiece
from JSON to the appropriate classes.