From f304bf9d58e91447ae40a3612aeffa74fa1b6891 Mon Sep 17 00:00:00 2001 From: lsakee <93514333+lsakee@users.noreply.github.com> Date: Sat, 25 Nov 2023 01:50:02 +0900 Subject: [PATCH] [ADD] : model set #13 --- .../org/sopt/carrot/presentation/model/Meeting.kt | 11 +++++++++++ .../carrot/presentation/model/MeetingHighlight.kt | 6 ++++++ .../org/sopt/carrot/presentation/model/NewMeeting.kt | 9 +++++++++ .../org/sopt/carrot/presentation/util/loadImage.kt | 10 ++++++++++ 4 files changed, 36 insertions(+) create mode 100644 app/src/main/java/org/sopt/carrot/presentation/model/Meeting.kt create mode 100644 app/src/main/java/org/sopt/carrot/presentation/model/MeetingHighlight.kt create mode 100644 app/src/main/java/org/sopt/carrot/presentation/model/NewMeeting.kt create mode 100644 app/src/main/java/org/sopt/carrot/presentation/util/loadImage.kt 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