-
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.
Merge pull request #64 from ku-ring/task/kuring-46
kuring-46 공지 웹뷰 화면용 데이터 객체 생성
- Loading branch information
Showing
8 changed files
with
80 additions
and
106 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
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/ku_stacks/ku_ring/data/mapper/ModelToModelMapper.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 com.ku_stacks.ku_ring.data.mapper | ||
|
||
import com.ku_stacks.ku_ring.data.model.Notice | ||
import com.ku_stacks.ku_ring.data.model.WebViewNotice | ||
|
||
fun Notice.toWebViewNotice() = WebViewNotice( | ||
url = url, | ||
articleId = articleId, | ||
category = category | ||
) |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/ku_stacks/ku_ring/data/mapper/UiModelToModelMapper.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,11 @@ | ||
package com.ku_stacks.ku_ring.data.mapper | ||
|
||
import com.ku_stacks.ku_ring.data.model.WebViewNotice | ||
import com.ku_stacks.ku_ring.ui.my_notification.ui_model.PushContentUiModel | ||
import com.ku_stacks.ku_ring.util.WordConverter | ||
|
||
fun PushContentUiModel.toWebViewNotice() = WebViewNotice( | ||
url = fullUrl, | ||
articleId = articleId, | ||
category = WordConverter.convertKoreanToEnglish(categoryKor), | ||
) |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/com/ku_stacks/ku_ring/data/model/WebViewNotice.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,9 @@ | ||
package com.ku_stacks.ku_ring.data.model | ||
|
||
import java.io.Serializable | ||
|
||
data class WebViewNotice( | ||
val url: String, | ||
val articleId: String, | ||
val category: String, | ||
): Serializable |
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