-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feat/#47] 답변 화면, 문답 화면 ViewModel 설계 #50
Conversation
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.
Fragment / Activity -> Fragment 데이터 전달은 Bundle을 이용하는 것이 맞습니다!! 잘 하셨습니다 👍리스너를 사용하는 방법도 있으니 한 번 찾아보셔도 좋을 것 같습니다.
if (data.isMyAnswer) { | ||
tvAnswerMe.text = data.myAnswer | ||
tvAnswerOther.text = "상대방은 아직 답변하지 않았어요" | ||
} |
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.
분기처리 깔끔합니다!
|
||
class ConfirmAnswerDialogFragmentViewModel : ViewModel() { | ||
fun postAnswer(answer: String) { | ||
//TODO(post Repo로 가는 함수 가보자고.) |
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.
가보자고.
🎀 Related Issues
close #47
🤔 What Did You Do
임시 api 명세서 바탕으로 responseDto 만들어서 viewModel을 작성해봤습니다.
문답 화면에서는 사용자 status에 따른 blur 처리 부분 로직을 중점적으로 봐주시면 좋을거같습니다.
전체적으로는 문답 화면으로부터 section과 topic, question 데이터가 답변 화면, dialog까지 계속 넘어가야하는데 이 부분 로직도 봐주시면 좋겠습니다.