Skip to content

Commit

Permalink
#6 feat/홈 : 홈 화면에서 필요한 entity 정의
Browse files Browse the repository at this point in the history
- User, Company
- Review, LocationReview
  • Loading branch information
HayleyKim0716 committed Aug 2, 2022
1 parent b7b13f6 commit 5be475c
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
6 changes: 6 additions & 0 deletions domain/src/main/java/com/ftw/domain/entity/BuildingType.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.ftw.domain.entity

enum class BuildingType {
APARTMENT,
OFFICETEL
}
10 changes: 10 additions & 0 deletions domain/src/main/java/com/ftw/domain/entity/Company.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.ftw.domain.entity

data class Company(
val name: String,
val location: String
) {
companion object {
val NONE = Company("", "")
}
}
6 changes: 6 additions & 0 deletions domain/src/main/java/com/ftw/domain/entity/LocationReview.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.ftw.domain.entity

data class LocationReview(
val location: String,
val reviews: List<Review>
)
15 changes: 15 additions & 0 deletions domain/src/main/java/com/ftw/domain/entity/Review.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.ftw.domain.entity

import java.util.Date

data class Review(
val buildingName: String,
val buildingType: BuildingType,
val address: String,
val rating: Int,
val officeLocation: String,
val advantage: String,
val disadvantage: String,
val favorite: Boolean,
val leftAt: Date
)
9 changes: 9 additions & 0 deletions domain/src/main/java/com/ftw/domain/entity/User.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.ftw.domain.entity

data class User(
val company: Company?
) {
companion object {
val NONE = User(Company.NONE)
}
}

0 comments on commit 5be475c

Please sign in to comment.