Results from getReward method can be accessed using ResultBundle using predefined keys
resultBundle?.bundle?.getString("key1")
resultBundle?.bundle?.getLong("key2")
resultBundle?.bundle?.getInt("key3")
resultBundle?.bundle?.getStringArray("key4")
resultBundle?.bundle?.getParcelableArray("key5")
Key | Type | Description | ResultStatus (Applicable) |
---|---|---|---|
Text | String | Result Text | WON, LOOSE |
NextPlayTimeStamp | Long | Next rule start timestamp in millisecond | WON, LOOSE, REWARD_INFO, PLAY_COMPLETED |
NextPlayRemainingTimeStamp | Long | Next rule remaining timestamp in millisecond | WON, LOOSE, REWARD_INFO, PLAY_COMPLETED |
NextPlayRuleName | String | Next Rule Name, null value means there is no future rule available wrt ruleName passed | WON, LOOSE, REWARD_INFO, PLAY_COMPLETED |
SpinsLeftCount | Int | Number of Spins left in case of SpinWheel | REWARD_INFO |
PointsWon | Int | Points won | WON |
CoinsWon | Int | Coins won | WON |
VouchersWon | Array | Array of Voucher codes won | WON |
Score | Int | Score | WON, LOOSE |
GamizeBadges | Array | Array of GamizeBadge won by user/ profile badges | WON, LOOSE, PLAY_COMPLETED, BADGE_INFO |
GamizeDailyStreakRewards | Array | Array of GamizeDailyStreakRewards which indicates status for each day | WON, LOOSE, PLAY_COMPLETED, DAILY_STREAK_REWARDS |
ReferralText | String | Referral success message | REFERRAL_SUCCESS |
Parcelable class
Parcelable classes used in ResultBundle.
GamizeBadge
Each GamizeBadge has name, text and url
class GamizeBadge(
val name: String?,
val text: String?,
val url: String?,
) : Parcelable {
...
}
GamizeDailyStreakReward
Each GamizeDailyStreakReward has day, pointsWon, coinsWon and voucherWon
class GamizeDailyStreakReward(
val day: Int = 0,
val pointsWon: Int = 0,
val coinsWon: Int = 0,
val voucherWon: String? = null
) : Parcelable {
...
}