Skip to content

Commit

Permalink
[ADD] : model set #13
Browse files Browse the repository at this point in the history
  • Loading branch information
lsakee committed Nov 24, 2023
1 parent be6ee34 commit f304bf9
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/src/main/java/org/sopt/carrot/presentation/model/Meeting.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.sopt.carrot.presentation.model

data class Meeting(
val clubId: Int,
val clubTagContent: String,
val clubName: String,
val clubImg: String,
val participantsImg: String,
val town: String,
val participantsCount: Int
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.sopt.carrot.presentation.model

data class MeetingHighlight(
val img: String,
val title: String
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package org.sopt.carrot.presentation.model

data class NewMeeting(
val img: String,
val title: String,
val subMsg: String,
val place: String,
val subject: String
)
10 changes: 10 additions & 0 deletions app/src/main/java/org/sopt/carrot/presentation/util/loadImage.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.sopt.carrot.presentation.util

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import coil.load

@BindingAdapter("imageUrl")
fun loadImage(view: ImageView, url: String?) {
view.load(url)
}

0 comments on commit f304bf9

Please sign in to comment.