Updated on 2026-08-14
This commit is contained in:
parent
2ee2edeeef
commit
6256f4ed23
14 changed files with 132 additions and 117 deletions
|
|
@ -14,5 +14,7 @@ data class CreatePromotionRegistrationBody(
|
|||
data class TokenRewardDto(
|
||||
@Json(name = "tokenAddress") val tokenAddress: String,
|
||||
@Json(name = "networkId") val networkId: String,
|
||||
@Json(name = "userAddress") val userAddress: String,
|
||||
@Json(name = "tokenId") val tokenId: String,
|
||||
)
|
||||
}
|
||||
|
|
@ -14,6 +14,13 @@ data class PromotionRegistrationResponse(
|
|||
data class RegistrationData(
|
||||
@Json(name = "campaignId") val campaignId: String,
|
||||
@Json(name = "registeredAt") val registeredAt: String?,
|
||||
@Json(name = "tokenReward") val tokenReward: CreatePromotionRegistrationBody.TokenRewardDto,
|
||||
@Json(name = "tokenReward") val tokenReward: RegisteredTokenRewardDto,
|
||||
)
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class RegisteredTokenRewardDto(
|
||||
@Json(name = "tokenAddress") val tokenAddress: String,
|
||||
@Json(name = "networkId") val networkId: String,
|
||||
@Json(name = "tokenId") val tokenId: String,
|
||||
)
|
||||
}
|
||||
|
|
@ -144,8 +144,6 @@ object PreferencesKeys {
|
|||
|
||||
val PENDING_ASSETS_DISCOVERY_KEY by lazy { stringPreferencesKey(name = "pendingAssetsDiscovery") }
|
||||
|
||||
val PROMO_ENROLLMENTS_KEY by lazy { stringPreferencesKey(name = "promoEnrollments") }
|
||||
|
||||
// region Notifications
|
||||
val NOTIFICATIONS_APPLICATION_ID_KEY by lazy { stringPreferencesKey(name = "notificationsApplicationId") }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue