Revert "NTP-933 | X-target and endpoint changes for objective API" (#11856)

This commit is contained in:
Kishan Kumar
2024-07-19 18:56:07 +05:30
committed by GitHub
parent 5d03f1f06c
commit 8bc9fdadf2
3 changed files with 2 additions and 7 deletions

View File

@@ -39,7 +39,3 @@ 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("merlin/reward/info/objective")
@GET("reward-service/reward/info/objective")
suspend fun getNudgeRewardObjective(
@Header("X-Target") target: String?,
@Query("objective") objective: String?,

View File

@@ -10,7 +10,6 @@ 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
@@ -35,7 +34,7 @@ constructor(
retrofitService.getNudgeRewardObjective(
product = product,
objective = objective,
target = XTarget.MERLIN.name
target = ModuleName.REWARDS.name
)
)
}