val userIdRentApp:String?=null
intent?.let {
if (intent.hasExtra("USER_FROM_RENT")) {
userIdRentApp = intent.getStringExtra("USER_FROM_RENT")
}
}
{end point will be main app}/pairUserRentApp
{"deviceType":"Android","userIdRentApp":6618ca07243b27000sdasdf1"","isRent":true,"deviceId":"33C94DA1523FFCDC8562D4CC6E0A1235","userId":"6618ca07243b2700027f4df1"}
userIdRentApp = userIdRentApp
isRent=userIdRentApp!=null
cycleAdsForRentApp
We need to override the user object with this api response we need to, otherwise we can use the above flag