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 typesafe domain #125

Merged
merged 6 commits into from
Jun 9, 2024
Merged

Use typesafe domain #125

merged 6 commits into from
Jun 9, 2024

Conversation

lenguyenthanh
Copy link
Owner

No description provided.

And rename Natural to PositiveInt
@lenguyenthanh lenguyenthanh merged commit d90cdf0 into main Jun 9, 2024
3 checks passed
@lenguyenthanh lenguyenthanh deleted the refactor/3-typesafe-domain branch June 9, 2024 09:29
val sorting = Models.Sorting.fromOption(sortBy.map(_.to[Models.SortBy]), order.map(_.to[Models.Order]))
val filter = Models.PlayerFilter(
isActive,
Models.RatingRange(standardMin.map(_.value), standardMax.map(_.value)),
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use mixing to avoid duplicated code

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.

1 participant