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

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

Merged
merged 3 commits into from
Aug 21, 2023

Conversation

karoliineh
Copy link
Member

@karoliineh karoliineh commented Aug 16, 2023

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.

@karoliineh karoliineh added the bug Something isn't working label Aug 16, 2023
@karoliineh karoliineh self-assigned this Aug 16, 2023
@karoliineh karoliineh requested a review from sim642 August 16, 2023 08:31
@karoliineh karoliineh merged commit b347d2b into master Aug 21, 2023
2 checks passed
@karoliineh karoliineh deleted the messages branch August 21, 2023 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants