-
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.
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
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 com.ftw.domain.entity | ||
|
||
enum class BuildingType { | ||
APARTMENT, | ||
OFFICETEL | ||
} |
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 com.ftw.domain.entity | ||
|
||
data class Company( | ||
val name: String, | ||
val location: String | ||
) { | ||
companion object { | ||
val NONE = Company("", "") | ||
} | ||
} |
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 com.ftw.domain.entity | ||
|
||
data class LocationReview( | ||
val location: String, | ||
val reviews: List<Review> | ||
) |
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,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 | ||
) |
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 com.ftw.domain.entity | ||
|
||
data class User( | ||
val company: Company? | ||
) { | ||
companion object { | ||
val NONE = User(Company.NONE) | ||
} | ||
} |