-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from APP-Android2/30-feature-자유게시판구현
[#30] 자유게시판 기능 구현 베이스 코드
- Loading branch information
Showing
28 changed files
with
457 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
MungNolZa/app/src/main/java/kr/co/lion/mungnolza/model/BoardModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package kr.co.lion.mungnolza.model | ||
|
||
data class BoardModel( | ||
var boardIdx:Int, | ||
var boardTitle:String, | ||
var boardType:Int, | ||
var boardImageList:MutableList<String?>, | ||
var boardWriterIdx:Int, | ||
var boardWriteDate:String, | ||
var boardState:Int | ||
){ | ||
constructor():this(0, "", 0, mutableListOf(), 0, "", 0) | ||
} |
11 changes: 11 additions & 0 deletions
11
MungNolZa/app/src/main/java/kr/co/lion/mungnolza/model/ChatModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package kr.co.lion.mungnolza.model | ||
|
||
// 채팅에 대한 데이터 클래스는 어떻게 구성해야할까....? | ||
data class ChatModel( | ||
var chatUserNameMe:String, | ||
var chatUserNameYou:String, | ||
var chatContent:String, | ||
var chatDate:String, | ||
) | ||
|
||
|
4 changes: 4 additions & 0 deletions
4
MungNolZa/app/src/main/java/kr/co/lion/mungnolza/model/CommentModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package kr.co.lion.mungnolza.model | ||
|
||
class CommentModel { | ||
} |
9 changes: 9 additions & 0 deletions
9
MungNolZa/app/src/main/java/kr/co/lion/mungnolza/model/UserModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package kr.co.lion.mungnolza.model | ||
|
||
data class UserModel( | ||
var userIdx:Int, | ||
var userId:String, | ||
var userPw:String, | ||
var userNickName:String, | ||
var userState:Int | ||
) |
35 changes: 35 additions & 0 deletions
35
MungNolZa/app/src/main/java/kr/co/lion/mungnolza/ui/TestActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package kr.co.lion.mungnolza.ui | ||
|
||
import android.content.Intent | ||
import android.os.Bundle | ||
import androidx.activity.enableEdgeToEdge | ||
import androidx.appcompat.app.AppCompatActivity | ||
import androidx.core.view.ViewCompat | ||
import androidx.core.view.WindowInsetsCompat | ||
import kr.co.lion.mungnolza.R | ||
import kr.co.lion.mungnolza.databinding.ActivityTestBinding | ||
import kr.co.lion.mungnolza.ui.chat.ChatActivity | ||
import kr.co.lion.mungnolza.ui.freeboard.BoardActivity | ||
|
||
class TestActivity : AppCompatActivity() { | ||
|
||
lateinit var binding:ActivityTestBinding | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
|
||
binding = ActivityTestBinding.inflate(layoutInflater) | ||
|
||
binding.button.setOnClickListener { | ||
val intent = Intent(this,BoardActivity::class.java) | ||
startActivity(intent) | ||
} | ||
binding.button2.setOnClickListener { | ||
val intent = Intent(this, ChatActivity::class.java) | ||
startActivity(intent) | ||
} | ||
|
||
setContentView(binding.root) | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.