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

[fix]作品投稿画面のHTTP通信できるようにする #120

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

shirakasu
Copy link
Contributor

対応するissue

概要

  • 作品投稿画面のHTTP通信ができるように修正した

意図する動作内容(または変更点)

  • DataClassをSwaggerに記載されていたSchemaと同じものに修正
  • 付随してViewModel内も修正

スクリーンショット(UI作成,変更時)

その他

@yuhei-yama yuhei-yama self-requested a review October 23, 2023 07:03
Copy link
Contributor

@yuhei-yama yuhei-yama left a comment

Choose a reason for hiding this comment

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

ViewModelのregisterWork()が変更されたことに伴って,Fragment内で呼び出している方のregisterWork()の変数も追加する必要があるので対応をお願いします!

/* 作品投稿処理 */
binding.btRegister.setOnClickListener{
if(binding.etWorkTitle.text.toString() != "") {
AlertDialog.Builder(activity)
.setTitle("作品を投稿しますか?")
.setPositiveButton("登録する", DialogInterface.OnClickListener { dialog, which ->
viewModel.registerWork(
binding.etWorkTitle.text.toString(),
binding.etWorkDescription.text.toString(),
1,
binding.etGitHubLink.text.toString(),
binding.etYoutubeLink.text.toString()
)
findNavController().navigate(R.id.action_WorkRegisterFragment_to_MainFragment)
})
.setNegativeButton("キャンセル", null)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fix]作品投稿画面のHTTP通信できるようにする
2 participants