Captainup  2.4
Instance Methods | Properties | List of all members
CPTBadgeProgressDictionary Class Reference
Inheritance diagram for CPTBadgeProgressDictionary:
<CPTBadgeProgress> <CPTObject>

Instance Methods

(nonnull instancetype) - initWithSourceDictionary:badgeProgressDictionary:andDate:
 
(BOOL) - isEqualToBadgeProgressDictionary:
 
(nonnull CPTBadgeProgressDictionary *) - findCompletedBadges
 
(nonnull CPTBadgeProgressDictionary *) - findIncompleteBadges
 
(nullable id< CPTBadgeProgress >) - objectForKey:
 
(void) - setObject:forKey:
 
- Instance Methods inherited from <CPTObject>
(nonnull instancetype) - initWithDictionary:
 
(nonnull NSDictionary< NSString *, id > *) - toDictionary
 

Properties

< CPTObject > NSDate * lastUpdateDate
 
- Properties inherited from <CPTBadgeProgress>
double progress
 
NSUInteger completedConditionsCount
 
NSDictionary< NSString *, id< CPTConditionProgress > > * conditionProgress
 
NSUInteger timesCompleted
 
NSDate * completedDate
 
NSDictionary< NSString *, id< CPTRewardProgress > > * rewardProgress
 
- Properties inherited from <CPTObject>
NSDictionary< NSString *, id > * sourceDictionary
 

Detailed Description

Method Documentation

◆ findCompletedBadges()

- (nonnull CPTBadgeProgressDictionary *) findCompletedBadges

Find completed badges

Returns
return CPTBadgeProgressDictionary badge progress Dictionary of completed badges

◆ findIncompleteBadges()

- (nonnull CPTBadgeProgressDictionary *) findIncompleteBadges

Find Incomplete badges

Returns
return CPTBadgeProgressDictionary badge progress Dictionary of Incomplete badges

◆ initWithSourceDictionary:badgeProgressDictionary:andDate:()

- (nonnull instancetype) initWithSourceDictionary: (nonnull NSDictionary< NSString *, id > *)  source
badgeProgressDictionary: (nonnull NSMutableDictionary< NSString *, id< CPTBadgeProgress >> *)  dic
andDate: (nonnull NSDate *)  lastUpdated 

Initialize

Parameters
sourceBadge Progress source Dictionary
dicdic Badge Progress Dictionary
lastUpdatedbadge progress last updated data
Returns
return Dictionary of badge progress

◆ isEqualToBadgeProgressDictionary:()

- (BOOL) isEqualToBadgeProgressDictionary: (nonnull CPTBadgeProgressDictionary *)  other

Check equality of CPTBadgeProgressDictionary

Parameters
otherother CPTBadgeProgressDictionary object
Returns
return Bool true of both object are equal

◆ objectForKey:()

- (nullable id<CPTBadgeProgress>) objectForKey: (nullable NSString *)  aKey

Find object of bage id

Parameters
aKeyaKey Badge id
Returns
return CPTBadgeProgress badge progress object or null of no badge found

◆ setObject:forKey:()

- (void) setObject: (nonnull id< CPTBadgeProgress >)  anObject
forKey: (nonnull NSString *)  aKey 

Set object of bage id

Parameters
anObjectCPTBadgeProgress bage progress with badge id
aKeyNSString bage id

Property Documentation

◆ lastUpdateDate

- (<CPTObject> NSDate*) lastUpdateDate
readnonatomicassign

last updated badge


The documentation for this class was generated from the following file: