Skip to content

Conversation

@wkdehdlr
Copy link

@wkdehdlr wkdehdlr commented Feb 9, 2020

No description provided.

Retrofit, Glide, Browser Helper, RxJava2, Koin lib
retrofit2(업비트, 빗썸)
koin
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 추가
@wkdehdlr wkdehdlr added the Review Needed 리뷰어의 리뷰가 필요한 경우 label Feb 9, 2020
@wkdehdlr wkdehdlr requested a review from sport0102 February 9, 2020 01:49
@wkdehdlr wkdehdlr self-assigned this Feb 9, 2020
Copy link

@sport0102 sport0102 left a comment

Choose a reason for hiding this comment

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

  1. RxJava 쪽은 안봤습니다!
  2. 클린아키텍쳐도 적용해주셨으면 좋겠습니다!
  3. 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 ->

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()

Choose a reason for hiding this comment

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

이런 뷰모델의 init 작업은 viewModel의 init{} 에서 진행하셔도 좋을 것 같습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review Needed 리뷰어의 리뷰가 필요한 경우

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants