diff --git a/domain/src/main/java/com/ftw/domain/entity/BuildingType.kt b/domain/src/main/java/com/ftw/domain/entity/BuildingType.kt new file mode 100644 index 0000000..9a8aa20 --- /dev/null +++ b/domain/src/main/java/com/ftw/domain/entity/BuildingType.kt @@ -0,0 +1,6 @@ +package com.ftw.domain.entity + +enum class BuildingType { + APARTMENT, + OFFICETEL +} diff --git a/domain/src/main/java/com/ftw/domain/entity/Company.kt b/domain/src/main/java/com/ftw/domain/entity/Company.kt new file mode 100644 index 0000000..30a96fb --- /dev/null +++ b/domain/src/main/java/com/ftw/domain/entity/Company.kt @@ -0,0 +1,10 @@ +package com.ftw.domain.entity + +data class Company( + val name: String, + val location: String +) { + companion object { + val NONE = Company("", "") + } +} diff --git a/domain/src/main/java/com/ftw/domain/entity/LocationReview.kt b/domain/src/main/java/com/ftw/domain/entity/LocationReview.kt new file mode 100644 index 0000000..f69ec7a --- /dev/null +++ b/domain/src/main/java/com/ftw/domain/entity/LocationReview.kt @@ -0,0 +1,6 @@ +package com.ftw.domain.entity + +data class LocationReview( + val location: String, + val reviews: List +) diff --git a/domain/src/main/java/com/ftw/domain/entity/Review.kt b/domain/src/main/java/com/ftw/domain/entity/Review.kt new file mode 100644 index 0000000..ace6c3d --- /dev/null +++ b/domain/src/main/java/com/ftw/domain/entity/Review.kt @@ -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 +) diff --git a/domain/src/main/java/com/ftw/domain/entity/User.kt b/domain/src/main/java/com/ftw/domain/entity/User.kt new file mode 100644 index 0000000..d728162 --- /dev/null +++ b/domain/src/main/java/com/ftw/domain/entity/User.kt @@ -0,0 +1,9 @@ +package com.ftw.domain.entity + +data class User( + val company: Company? +) { + companion object { + val NONE = User(Company.NONE) + } +}