-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
089cbe2
commit 431138b
Showing
16 changed files
with
348 additions
and
149 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
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
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
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
8 changes: 8 additions & 0 deletions
8
core/model/src/main/java/store/newsbriefing/app/core/model/BriefingCategoryArticles.kt
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,8 @@ | ||
package store.newsbriefing.app.core.model | ||
|
||
import java.util.Date | ||
|
||
data class BriefingCategoryArticles( | ||
val createdAt: Date, | ||
val briefings: List<BriefingArticleSummary> | ||
) |
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
10 changes: 10 additions & 0 deletions
10
...rc/main/java/store/newsbriefing/app/core/network/model/NetworkBriefingCategoryArticles.kt
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 store.newsbriefing.app.core.network.model | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class NetworkBriefingCategoryArticles( | ||
@SerializedName("createdAt") | ||
val createdAt: String, | ||
@SerializedName("briefings") | ||
val briefings: List<NetworkBriefingArticleSummary> | ||
) |
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
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
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
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
27 changes: 22 additions & 5 deletions
27
feature/home/src/main/java/store/newsbriefing/app/feature/home/HomeCategory.kt
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 |
---|---|---|
@@ -1,8 +1,25 @@ | ||
package store.newsbriefing.app.feature.home | ||
|
||
enum class HomeCategory(val title: String) { | ||
SOCIETY("사회"), | ||
SCIENCE("과학"), | ||
GLOBAL("글로벌"), | ||
ECONOMY("경제") | ||
import store.newsbriefing.app.core.model.BriefingArticleCategory | ||
|
||
enum class HomeCategory( | ||
val title: Int, | ||
val category: BriefingArticleCategory | ||
) { | ||
SOCIETY( | ||
R.string.tab_society, | ||
BriefingArticleCategory.SOCIAL | ||
), | ||
SCIENCE( | ||
R.string.tab_science, | ||
BriefingArticleCategory.SCIENCE | ||
), | ||
GLOBAL( | ||
R.string.tab_global, | ||
BriefingArticleCategory.GLOBAL | ||
), | ||
ECONOMY( | ||
R.string.tab_economy, | ||
BriefingArticleCategory.ECONOMY | ||
) | ||
} |
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
Oops, something went wrong.