Captainup
2.4
|
#import <CPTUser.h>
Instance Methods | |
(nullable id< CPTLevel >) | - getLevel |
(nullable id< CPTLevel >) | - getNextLevel |
(void) | - setApplication: |
(nonnull NSArray< NSString * > *) | - getUnavailableSegmentedBadgesIDs |
(nonnull NSArray< NSString * > *) | - getUnavailableSegmentedAssetIDs |
(nonnull NSArray< id< CPTAction >> *) | - getBaseUnreadInboxItems |
![]() | |
(nonnull instancetype) | - initWithDictionary: |
(nonnull NSDictionary< NSString *, id > *) | - toDictionary |
Properties | |
NSString * | userId |
NSString * | clientUserID |
NSString * | accessToken |
NSString * | name |
NSString * | imageURL |
CPTPoint | monthlyPoints |
CPTPoint | weeklyPoints |
CPTPoint | dailyPoints |
NSDictionary< NSString *, NSNumber * > * | leaderboardPositions |
NSArray< id< CPTAction > > * | privateActivities |
NSArray< id< CPTAction > > * | publicActivities |
CPTBadgeProgressDictionary * | badgeProgress |
NSUInteger | totalActionCount |
NSDictionary< NSString *, NSNumber * > * | actionCounters |
NSString * | levelID |
NSDictionary< NSString *, NSNumber * > * | currencies |
NSArray< id< CPTAcquiredAsset > > * | acquiredAssets |
NSArray< id< CPTAvailableReward > > * | availableRewards |
![]() | |
NSDictionary< NSString *, id > * | sourceDictionary |
The player resource provides information about an app's users. Users share basic information and details such as the user name and the avatar image across all Captain Up apps, while users' progress in each app is completely independent.
- (nonnull NSArray<id<CPTAction>>*) getBaseUnreadInboxItems |
unread inbox items
- (nonnull NSArray<NSString*>*) getUnavailableSegmentedAssetIDs |
get unavailable segmented asset ids
- (nonnull NSArray<NSString*>*) getUnavailableSegmentedBadgesIDs |
get unavailable segmented badge ids
- (void) setApplication: | (nonnull id< CPTApplication >) | application |
Description
application | CPTApplication object |
|
readnonatomicassign |
The access token can be used in other Captain Up requests to identify the user that is currently logged in to the app. For example, this will grant permissions to see the user's private activities or to post actions for the user. The access token will be empty if the app enabled the "Secure User Integration" option and the requested user data was not signed (see CPTIntegrationUserBuilder::setSignature).
|
readnonatomicassign |
Description
|
readnonatomicassign |
Information on the total number of times the user has done the app actions. The keys here are based on your app action identifiers.
null
).
|
readnonatomicassign |
List of available rewards that user can claim.
|
readnonatomicassign |
All of the badges the user has any progress on, including the completed ones.
|
readnonatomicassign |
client assigned user id
|
readnonatomicassign |
Description
|
readnonatomicassign |
user daily points
|
readnonatomicassign |
user image url
|
readnonatomicassign |
The user's position in all the leaderboards returns a map between the type of leaderboard and the the user's position.
|
readnonatomicassign |
Description
|
readnonatomicassign |
user monthly points
|
readnonatomicassign |
user name
|
readnonatomicassign |
Description
|
readnonatomicassign |
Description
|
readnonatomicassign |
Description
|
readnonatomicassign |
Captain up user app specific id
|
readnonatomicassign |
user weekly points