Skip to content

๐ŸŽ Model

์ตœ์ง€ํ™˜ edited this page Nov 21, 2022 · 8 revisions

Data

  • Moment
data class MomentEntity(
    @PrimaryKey(autoGenerate = true) val id: Long = 0L,
    @Embedded val Place: PlaceEntity,
    @ColumnInfo(name = "thumbnail_id") val thumbnailId: Long,
    @ColumnInfo(name = "content") val content: String,
    @ColumnInfo(name = "date") val date: String,
)
  • Location
data class PlaceEntity(
    val mainAddress: String,
    val detailAddress: String,
    val latitude: Double,
    val longitude: Double,
)
  • Picture
data class PictureEntity(
    @PrimaryKey(autoGenerate = true) val id: Long = 0L,
    @ColumnInfo(name = "bitmap") val bitmap: ByteArray,
)

Domain

  • Moment
data class Moment(
    val id: Long,
    val place: Place
    val images: List<Picture>?,
    val content: String,
    val globes: List<Globe>,
    val date: String
)
  • Place
data class Place(
    val mainAddress: String,
    val detailAddress: String,
    val latitude: Double,
    val longitude: Double
)
  • Picture
data class Picture(
    val bitmap: ByteArray
)
  • Globe
data class Globe(
    val id: Long
    val name: String
)

UI

  • Moment
data class MomentModel(
    val place: Place,
    val date: String,
    val content: String,
)
  • Location
data class PlaceModel(
    val mainAddress: String,
    val detailAddress: String,
    val latitude: Double,
    val longitude: Double,
)
  • Picture
data class PictureModel(
    val bitmap: Bitmap
)

image

๐Ÿ—ฃ๏ธ ๋ฐ๋ชจ

โš ๏ธ ์ด์Šˆ ๊ณต์œ 

๐Ÿ‘Ÿ ์ฃผ๊ฐ„ ์Šคํ”„๋ฆฐํŠธ

โ˜€๏ธ ๋ฐ์ผ๋ฆฌ ์Šคํฌ๋Ÿผ

๐Ÿ“‚ week2
๐Ÿ“‚ week3
๐Ÿ“‚ week4
๐Ÿ“‚ week5
๐Ÿ“‚ week6
Clone this wiki locally