-
Notifications
You must be signed in to change notification settings - Fork 5
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
2 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
backend/bang-ggood/src/main/java/com/bang_ggood/category/domain/Badge.java
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,31 @@ | ||
package com.bang_ggood.category.domain; | ||
|
||
public enum Badge { | ||
|
||
CLEAN("청결", "청결해요", "✨"), | ||
ROOM_CONDITION("방 컨디션", "방 컨디션이 좋아요", "🏠"), | ||
AMENITY("편의시설", "편의시설이 많아요", "🚇"), | ||
OPTION("옵션", "옵션이 많아요", "🛋️"), | ||
ENVIRONMENT("주거환경", "주거환경이 좋아요", "🌱"), | ||
SECURITY("보안", "안전해요", "🔒"), | ||
ECONOMIC("경제적", "경제적이에요", "💰") | ||
; | ||
|
||
private final String shortDescription; | ||
private final String longDescription; | ||
private final String emoji; | ||
|
||
Badge(String shortDescription, String longDescription, String emoji) { | ||
this.shortDescription = shortDescription; | ||
this.longDescription = longDescription; | ||
this.emoji = emoji; | ||
} | ||
|
||
public String getShortDescriptionWithEmoji() { | ||
return this.emoji + this.shortDescription; | ||
} | ||
|
||
public String getLongDescriptionWithEmoji() { | ||
return this.emoji + this.longDescription; | ||
} | ||
} |
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