forked from knh4437/java-lotto
-
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.
refactor(OutputView) : LottoApplication 및 기타 도메인에서 상금 결과를 출력하는 부분을 분리함
- LottoReward, RewardCoordinator에서 출력 내용을 다루는 메서드 제거 - 출력 관련 부분은 전부 OutputView에서 관리하도록 함 - 출력을 할때 사용할 RewardDto 구현 - Test는 바뀐 내용에 의해 수정하거나 삭제함
- Loading branch information
1 parent
1484b17
commit ca4a0b4
Showing
7 changed files
with
98 additions
and
81 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package lotto.reward.dto; | ||
|
||
import lotto.setting.LottoReward; | ||
import java.util.LinkedHashMap; | ||
|
||
public class RewardDto { | ||
|
||
private LinkedHashMap<LottoReward, Integer> rewardResult; | ||
private double priceRatio; | ||
|
||
public RewardDto(LinkedHashMap<LottoReward, Integer> rewardResult, double priceRatio){ | ||
this.rewardResult = rewardResult; | ||
this.priceRatio = priceRatio; | ||
} | ||
|
||
public LinkedHashMap<LottoReward, Integer> getRewardResult() { | ||
return rewardResult; | ||
} | ||
|
||
public double getPriceRatio() { | ||
return priceRatio; | ||
} | ||
} |
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
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