Skip to content

Common properties in sealed classes#206

Merged
kurguzov merged 5 commits intomasterfrom
common_properties_in_sealed_classes
Sep 8, 2022
Merged

Common properties in sealed classes#206
kurguzov merged 5 commits intomasterfrom
common_properties_in_sealed_classes

Conversation

@mvgreen
Copy link
Copy Markdown
Contributor

@mvgreen mvgreen commented Sep 7, 2022

Make properties 'required', 'choices' and 'defaultChoice' in FetchedProduct.ProductOption and UpdatedProduct.ProductOption easier to access.

Note: defaultChoice was absent in CheckboxOption class, but to avoid making hierarchy more complex I decided to add it to the CheckboxOption with value null by default. It should not affect requests because server discards it as irrelevant

@mvgreen mvgreen self-assigned this Sep 7, 2022
@mvgreen mvgreen requested a review from kurguzov September 7, 2022 14:03
@mvgreen mvgreen marked this pull request as ready for review September 7, 2022 14:03
@kurguzov kurguzov merged commit af562c7 into master Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants