NTP-933 | X-target and endpoint changes for objective API (#11813)

This commit is contained in:
Kishan Kumar
2024-07-17 14:05:48 +05:30
committed by GitHub
parent e2cf8ce738
commit 206e59a2cf
3 changed files with 7 additions and 2 deletions

View File

@@ -39,3 +39,7 @@ enum class ModuleName {
KRUZ_PROXY,
CDS // for device data
}
enum class XTarget {
MERLIN
}

View File

@@ -145,7 +145,7 @@ interface RetrofitService {
@Query("userEntered") userEntered: Boolean?
): Response<GenericResponse<LeaderboardListResponse>>
@GET("reward-service/reward/info/objective")
@GET("merlin/reward/info/objective")
suspend fun getNudgeRewardObjective(
@Header("X-Target") target: String?,
@Query("objective") objective: String?,

View File

@@ -10,6 +10,7 @@ package com.navi.rr.scratchcard.repo
import com.navi.common.forge.model.ScreenDefinition
import com.navi.common.model.ModuleName
import com.navi.common.model.ModuleNameV2
import com.navi.common.model.XTarget
import com.navi.common.network.models.RepoResult
import com.navi.common.utils.Constants.GZIP
import com.navi.rr.common.network.retrofit.ResponseHandler
@@ -34,7 +35,7 @@ constructor(
retrofitService.getNudgeRewardObjective(
product = product,
objective = objective,
target = ModuleName.REWARDS.name
target = XTarget.MERLIN.name
)
)
}