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

VendingMachine 정의 및 구현 #35

Open
4 tasks done
77unny opened this issue Mar 15, 2020 · 1 comment
Open
4 tasks done

VendingMachine 정의 및 구현 #35

77unny opened this issue Mar 15, 2020 · 1 comment
Assignees
Labels

Comments

@77unny
Copy link
Collaborator

77unny commented Mar 15, 2020

  • VendingMachineModel
    • onLoad
      • 초기 데이터를 저장 → 구독자에게 전달 (ItemView / StateView)
    • inputMoney
      - [ ] 투입된 금액을 저장 현재 컨트롤러에서 저장
      • 투입된 금액과 아이템 리스트를 필터 → 구독자에게 전달 (StateView)
    • Purchase
      • 뷰에서 입력 받은 최종 아이템 번호의 아이템 → 구독자에게 전달 (StateView)
      • 투입된 금액과 최종 아이템 금액의 차액 → 구독자에게 전달 (WalletView)
@77unny 77unny changed the title VendingMachineModel 정의 및 구현 VendingMachine 정의 및 구현 Mar 18, 2020
@77unny
Copy link
Collaborator Author

77unny commented Mar 18, 2020

vendingMachine 관련 기능 구현

현시점으로 미반영 및 반영해야할 부분 (순서 우선 순위)

  • 선택 가능한 상품 하이라이트
  • 에러 : 투입금액에 대한 상품선택 예외 처리 (- 금액이 나옴)
  • 잔돈 반환 로직 (vendingModel 에서 해야함)
  • 5초 타이머, 5초 후 반환
  • 에러 : stateView 에서 입력을 선택으로만 받을 경우

리팩토링/추가 해야 할 부분

  • 상품선택화면에서 선택한 번호 노출

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants