-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Wrap result in GroupAnalysisResult object
Instead of returning just a number we return an object with additional information. At a later point this can be extended to also include the reasoning behind the result.
- Loading branch information
Showing
3 changed files
with
34 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
public class GroupAnalysisResult | ||
{ | ||
public int TotalChildren { get; } | ||
public bool HasSolution { get; } | ||
public int Professionals { get; } | ||
|
||
public GroupAnalysisResult(int totalChildren, bool hasSolution, int professionals) | ||
{ | ||
TotalChildren = totalChildren; | ||
HasSolution = hasSolution; | ||
Professionals = professionals; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters