ResultBundle

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")
KeyTypeDescriptionResultStatus(Applicable)
TextStringResult TextWON, LOOSE
NextPlayTimeStampLongNext rule start timestamp in millisecondWON, LOOSE, REWARD_INFO, PLAY_COMPLETED
NextPlayRemainingTimeStampLongNext rule remaining timestamp in millisecondWON, LOOSE, REWARD_INFO, PLAY_COMPLETED
NextPlayRuleNameStringNext Rule Name, null value means there is no future rule available wrt ruleName passedWON, LOOSE, REWARD_INFO, PLAY_COMPLETED
SpinsLeftCountIntNumber of Spins left in case of SpinWheelREWARD_INFO
PointsWonIntPoints wonWON
CoinsWonIntCoins wonWON
VouchersWonArrayArray of Voucher codes wonWON
ScoreIntScoreWON, LOOSE
GamizeBadgesArrayArray of GamizeBadge won by user/ profile badgesWON, LOOSE, PLAY_COMPLETED, BADGE_INFO
GamizeDailyStreakRewardsArrayArray of GamizeDailyStreakRewards which indicates status for each dayWON, LOOSE, PLAY_COMPLETED, DAILY_STREAK_REWARDS
ReferralTextStringReferral success messageREFERRAL_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 {
    ...
}

Copyright

©2022 OnMobile Global Limited All Rights Reserved.