-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
app/src/main/java/org/sopt/carrot/presentation/model/Meeting.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 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 | ||
) |
6 changes: 6 additions & 0 deletions
6
app/src/main/java/org/sopt/carrot/presentation/model/MeetingHighlight.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,6 @@ | ||
package org.sopt.carrot.presentation.model | ||
|
||
data class MeetingHighlight( | ||
val img: String, | ||
val title: String | ||
) |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/org/sopt/carrot/presentation/model/NewMeeting.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 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
10
app/src/main/java/org/sopt/carrot/presentation/util/loadImage.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,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) | ||
} |