diff --git a/app/src/main/java/org/sopt/carrot/presentation/model/Meeting.kt b/app/src/main/java/org/sopt/carrot/presentation/model/Meeting.kt new file mode 100644 index 0000000..25f4389 --- /dev/null +++ b/app/src/main/java/org/sopt/carrot/presentation/model/Meeting.kt @@ -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 +) \ No newline at end of file diff --git a/app/src/main/java/org/sopt/carrot/presentation/model/MeetingHighlight.kt b/app/src/main/java/org/sopt/carrot/presentation/model/MeetingHighlight.kt new file mode 100644 index 0000000..8adfdcd --- /dev/null +++ b/app/src/main/java/org/sopt/carrot/presentation/model/MeetingHighlight.kt @@ -0,0 +1,6 @@ +package org.sopt.carrot.presentation.model + +data class MeetingHighlight( + val img: String, + val title: String +) \ No newline at end of file diff --git a/app/src/main/java/org/sopt/carrot/presentation/model/NewMeeting.kt b/app/src/main/java/org/sopt/carrot/presentation/model/NewMeeting.kt new file mode 100644 index 0000000..7c53aeb --- /dev/null +++ b/app/src/main/java/org/sopt/carrot/presentation/model/NewMeeting.kt @@ -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 +) \ No newline at end of file diff --git a/app/src/main/java/org/sopt/carrot/presentation/util/loadImage.kt b/app/src/main/java/org/sopt/carrot/presentation/util/loadImage.kt new file mode 100644 index 0000000..1a7fc15 --- /dev/null +++ b/app/src/main/java/org/sopt/carrot/presentation/util/loadImage.kt @@ -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) +} \ No newline at end of file