-
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.
Merge branch 'main' into feat/language
- Loading branch information
Showing
92 changed files
with
725 additions
and
376 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
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/pwhs/quickmem/core/data/enums/CoinAction.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,6 @@ | ||
package com.pwhs.quickmem.core.data.enums | ||
|
||
enum class CoinAction (val action: String) { | ||
ADD("add"), | ||
SUBTRACT("subtract") | ||
} |
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/pwhs/quickmem/core/data/enums/NotificationType.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,6 @@ | ||
package com.pwhs.quickmem.core.data.enums | ||
|
||
enum class NotificationType(val type: String) { | ||
INVITE_USER_JOIN_CLASS("INVITE_USER_JOIN_CLASS"), | ||
NONE("NONE"), | ||
} |
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
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
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/pwhs/quickmem/data/dto/notification/NotificationDataDto.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.pwhs.quickmem.data.dto.notification | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class NotificationDataDto( | ||
@SerializedName("id") | ||
val id: String? = null, | ||
@SerializedName("code") | ||
val code: String? = null, | ||
) |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/pwhs/quickmem/data/dto/user/UpdateCoinRequestDto.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,12 @@ | ||
package com.pwhs.quickmem.data.dto.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class UpdateCoinRequestDto( | ||
@SerializedName("userId") | ||
val userId: String, | ||
@SerializedName("coin") | ||
val coin: Int, | ||
@SerializedName("action") | ||
val action: String | ||
) |
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/pwhs/quickmem/data/dto/user/UpdateCoinResponseDto.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,12 @@ | ||
package com.pwhs.quickmem.data.dto.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class UpdateCoinResponseDto( | ||
@SerializedName("message") | ||
val message: String, | ||
@SerializedName("coinAction") | ||
val coinAction: String, | ||
@SerializedName("coins") | ||
val coins: Int | ||
) |
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
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/pwhs/quickmem/data/mapper/notification/NotificationDataMapper.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,14 @@ | ||
package com.pwhs.quickmem.data.mapper.notification | ||
|
||
import com.pwhs.quickmem.data.dto.notification.NotificationDataDto | ||
import com.pwhs.quickmem.domain.model.notification.NotificationDataModel | ||
|
||
fun NotificationDataDto.toModel() = NotificationDataModel( | ||
id = id, | ||
code = code | ||
) | ||
|
||
fun NotificationDataModel.toDto() = NotificationDataDto( | ||
id = id, | ||
code = code | ||
) |
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/pwhs/quickmem/data/mapper/user/UpdateCoinRequestMapper.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,16 @@ | ||
package com.pwhs.quickmem.data.mapper.user | ||
|
||
import com.pwhs.quickmem.data.dto.user.UpdateCoinRequestDto | ||
import com.pwhs.quickmem.domain.model.users.UpdateCoinRequestModel | ||
|
||
fun UpdateCoinRequestDto.toModel() = UpdateCoinRequestModel( | ||
userId = userId, | ||
coin = coin, | ||
action = action | ||
) | ||
|
||
fun UpdateCoinRequestModel.toDto() = UpdateCoinRequestDto( | ||
userId = userId, | ||
coin = coin, | ||
action = action | ||
) |
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/pwhs/quickmem/data/mapper/user/UpdateCoinResponseMapper.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,16 @@ | ||
package com.pwhs.quickmem.data.mapper.user | ||
|
||
import com.pwhs.quickmem.data.dto.user.UpdateCoinResponseDto | ||
import com.pwhs.quickmem.domain.model.users.UpdateCoinResponseModel | ||
|
||
fun UpdateCoinResponseDto.toModel() = UpdateCoinResponseModel( | ||
message = message, | ||
coinAction = coinAction, | ||
coins = coins | ||
) | ||
|
||
fun UpdateCoinResponseModel.toDto() = UpdateCoinResponseDto( | ||
message = message, | ||
coinAction = coinAction, | ||
coins = coins | ||
) |
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.