public interface BadgeProgress extends CaptainUpObject
Modifier and Type | Method and Description |
---|---|
int |
getCompletedConditionsCount()
The number of conditions completed
|
java.util.Date |
getCompletedDate()
The latest date the badge was completed on.
|
java.util.Map<java.lang.String,ConditionProgress> |
getConditionsProgress()
The badge's conditions progress
|
double |
getProgress()
The user’s badge progress, as a number between 0 and 1.
|
java.util.Map<java.lang.String,RewardProgress> |
getRewardProgress()
Map of the badge rewards (key: reward ID, value: RewardProgress obejct)
When you want to know if a reward has already been claimed (therefor there's no need to show
a 'claim!' dialog to the user, for example) you can get the rewardsProgress Map from the badgeProgress object
and use the .isClaimed() function.
|
int |
getTimesCompleted()
The number of times the user has completed this badge.
|
double getProgress()
int getCompletedConditionsCount()
java.util.Map<java.lang.String,ConditionProgress> getConditionsProgress()
Map
between a condition ID and its progress.int getTimesCompleted()
0
, then the user did not completed the badge1
, then the user completed the badge exactly once1
, this is repeatable badge, and the user had completed it multiple timesjava.util.Map<java.lang.String,RewardProgress> getRewardProgress()
java.util.Date getCompletedDate()
null
, depending
on the source of the information. Specifically, information that is derived from a Create Action
Response, might not contain the completion date for a completed badge. To check if a badge was
completed or not see getTimesCompleted()