-
Notifications
You must be signed in to change notification settings - Fork 0
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 : 학사 일정 api 수정 #172
Feat : 학사 일정 api 수정 #172
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.
고생많았어요 !! 코멘트 확인 부탁드립니다아
app/src/main/java/com/dongyang/android/youdongknowme/data/remote/service/CafeteriaService.kt
Outdated
Show resolved
Hide resolved
inner class ViewHolder(private val binding: ItemScheduleBinding) | ||
: RecyclerView.ViewHolder(binding.root) { | ||
fun bind(item : Schedule) { | ||
binding.schedule = item | ||
} | ||
fun bind(item: ScheduleEntry) { | ||
binding.schedule = item | ||
binding.tvItemScheduleDate.text = if(item.date[0] == item.date[1]) item.date[0] else "${item.date[0]} ~ \n${item.date[1]}" | ||
binding.tvItemScheduleContents.text = item.content | ||
} | ||
} |
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.
inner class
에 관해서 정리된 아티클인데 한 번 읽어보시면 좋을 것 같아요
블로그 링크
stuKoreanMenuAdapter.submitList(it.first) | ||
stuAnotherMenuAdapter.submitList(it.second) | ||
viewModel.menus.observe(viewLifecycleOwner) { | ||
stuKoreanMenuAdapter.submitList(it) |
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.
stu
가 어떤 것의 약자인가요 ? 최대한 줄여쓰는 것을 지양하면 좋을 것 같습니다!
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.
student
의 약자인데 기존 코드를 그대로 적으면서 리팩토링을 생각 못 했네요
그리고 이 부분은 메뉴 브랜치의 코드가 섞여버린거 같습니다..🤔
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.
이 부분은 학식 관련 리펙토링 브랜치를 따로 만들어서 바꾸는게 좋을거 같습니다
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/schedule/ScheduleFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/schedule/ScheduleFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/schedule/ScheduleViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/schedule/ScheduleViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/schedule/ScheduleViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/ui/adapter/ScheduleAdapter.kt
Show resolved
Hide resolved
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.
코멘트 짧게 남겨보았습니다!
@SerializedName("etc_info") | ||
var etcInfo: String, | ||
@SerializedName("menus") | ||
val menu: List<String> |
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.
val menu: List<String> | |
val menus: List<String> |
가독성을 위해 컬렉션은 복수형태로 이름 지어주시면 좋을 것 같아요~
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.
메뉴 관련 브랜치를 따로 제작하여 위에 stu
수정과 같이 수정하는게 좋을거 같습니다.
app/src/main/java/com/dongyang/android/youdongknowme/data/remote/entity/Schedule.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/data/remote/entity/Schedule.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/dongyang/android/youdongknowme/ui/view/schedule/ScheduleViewModel.kt
Outdated
Show resolved
Hide resolved
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.
확인했습니다 고생했어용 머지 고고
f0f955b
to
3c703b4
Compare
📮 관련 이슈
✍️ 구현 내용
📷 구현 영상
✔️ 확인 사항