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

[Feat/#82] 초대하는 측 / 초대받는 측 분기처리 #87

Merged
merged 12 commits into from
Jul 19, 2023

Conversation

yeoncheong
Copy link
Contributor

🎀 Related Issues

close #82

🤔 What Did You Do

  • 분기처리
  • Acitivity 별 데이터 전송

⁉️ etc

  • 추가적으로 선택화면 텍스트 넣었고, 온보딩 종료 뷰 변경 사항이 생겨서 텍스트뷰 지웠습니다.
  • 분기처리 하면서 화면 넘어가는 코드가 좀 더러워져서 서버 연결하고 나서 리팩토링 하겠습니다.

@yeoncheong yeoncheong requested a review from ss99x2002 July 19, 2023 15:07
@yeoncheong yeoncheong self-assigned this Jul 19, 2023
@yeoncheong yeoncheong added feature 기능 개발 연진 labels Jul 19, 2023
Copy link
Member

@ss99x2002 ss99x2002 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다 !!! 새로운 것도 알게되서 좋았어요 post 가봅시다아아ㅏ =))))


@Parcelize
data class User(
var isReceiver: Boolean,
Copy link
Member

Choose a reason for hiding this comment

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

isReceiver도 User에 넣으셨군여 저는 개인적으로 나중에는 안쓰긴해도 넣는게 더 낫다고 생각했어서 좋은거같습니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

온보딩에서 수집되는 모든 정보가 딱 온보딩 과정에서만 사용하기 때문에 isReceiver도 같이 관리하기로 했습니다!!

val userData = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
intent.getParcelableExtra("userData", User::class.java)
} else {
intent.getParcelableExtra<User>("userData")
Copy link
Member

Choose a reason for hiding this comment

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

저도 이제 이렇게 할게요 진짜로 ㄷㅐ박... 새로운 사실 알게됨
putExtra("section")은 이제 그만 ~>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

굿굿
데이터 클래스를 한번에 묶어서 보낼 수 있어서 좋더라고요
근데 getParcelableExtra가 지금 deprecated 되어서 버전 따라 보내줘야하더라고요
이것만 신경쓰면 완전 편합니다!!!

Comment on lines 101 to 111
user.name = binding.etName.text.toString()
user.gender =
if (binding.chip1.isChecked) {
binding.chip1.text.toString()
} else if (binding.chip2.isChecked){
binding.chip2.text.toString()
} else {
null
}
user.bornYear = binding.etYear.text.toString().toInt()
}
Copy link
Member

Choose a reason for hiding this comment

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

제가 with(binding)을 자주 써서 그런가
binding 이 중복되면 with(binding) 해주고시퍼요 haha

Copy link
Contributor Author

Choose a reason for hiding this comment

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

바인딩으로 묶었습니다~

@yeoncheong yeoncheong merged commit ee03739 into develop Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 기능 개발 연진
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 초대하는 측 / 초대받는 측 분기처리
2 participants