-
Notifications
You must be signed in to change notification settings - Fork 6
코루틴 적용기 입니다 #10
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
base: coroutine-wkdehdlr
Are you sure you want to change the base?
코루틴 적용기 입니다 #10
Conversation
2. response 패키지 위치 이동 3. Ticker 클래스구현 4. TickerProvider 구현
2. viewmodel repository map으로 수정 3. DI 수정 4. 어댑터 클릭리스너 추가 5. Exchange 모델 추가
2. ExchangeActivity 추가
async, await 적용 2. computeResult Dispatchers.IO 추가 3. 코루틴 exception Handler 추가
sport0102
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- RxJava 쪽은 안봤습니다!
- 클린아키텍쳐도 적용해주셨으면 좋겠습니다!
- Ticker리스트로 foreach를 3번 도는데 이걸 좀 더 효율적으로 바꿨으면 좋겠다는 소망이 있습니다...
| list.add(ETicker(0,t1[0].exchangeName, t1[0].last, t1[0].volume)) | ||
| list.add(ETicker(0,t2.exchangeName, t2.last, t2.volume)) | ||
| list.add(ETicker(0,t3.exchangeName, t3.last, t3.volume)) | ||
| val sortedWith = list.sortedWith(Comparator<ETicker> { a: ETicker, b: ETicker -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list.sortBy{it.nowPrice} or list.sortByDecending{it.nowPrice} 로 축약해서 쓸수있을 것 같습니다
| viewModel.getBithumbTickerList() | ||
| // viewModel.getTickerList("KRW") | ||
| // initRecyclerView() | ||
| // viewModel.getBithumbTickerList() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이런 뷰모델의 init 작업은 viewModel의 init{} 에서 진행하셔도 좋을 것 같습니다
No description provided.