Captainup  2.4
/Users/yogs/Desktop/CaptainUp/Headers/CPTActionSettings.h
1 //
2 // ActionSettings.h
3 // captainup_sdk
4 //
5 // Created by David Azriel on 07/12/2015.
6 // Copyright © 2015 Captain Up. All rights reserved.
7 //
8 
9 #ifndef ActionSettings_h
10 #define ActionSettings_h
11 
12 #import "CPTObject.h"
13 #import "CPTActionableEntitySchema.h"
14 
19 
20 // The ID of the Action
21 @property (nonatomic, readonly, nullable) NSString *actionId;
22 
23 // The name of the action
24 @property (nonatomic, readonly, nullable) NSString *name;
25 
26 // The number of pointa that will be awarded to the user for doing the action
27 @property (nonatomic, readonly) CPTPoint points;
28 
29 // The points interval
30 @property (nonatomic, readonly) CPTPoint pointsInterval;
31 
32 // Whether to show a leaderboard for this action
33 @property (nonatomic, readonly) BOOL hasLeaderboard;
34 
35 // Whether to show an activity for this action
36 // returns YES when the action will show in a player's activity log, NO otherwise.
37 @property (nonatomic, readonly) BOOL showActivity;
38 
39 // Whether to show a notification for this action.
40 // returns YES if the action will also generate a notification, NO otherwise.
41 @property (nonatomic, readonly) BOOL showNotification;
42 
43 // The past tense of the action
44 @property (nonatomic, readonly, nullable) NSString *pastTense;
45 
46 // The present proressive tense of the action
47 @property (nonatomic, readonly, nullable) NSString *presentProgressiveTense;
48 
49 // The URL to the action's image
50 @property (nonatomic, readonly, nonnull) NSString *imageURL;
51 
52 // The action's entities schema definition
53 // Each element in the array is an object that implements the protocol CPTActionableEntitySchema
54 @property (nonatomic, readonly, nonnull) NSArray<id <CPTActionableEntitySchema>> *entitySchemas;
55 
56 @end
57 
58 #endif /* ActionSettings_h */
Definition: CPTObject.h:17
Definition: CPTActionSettings.h:18