Captainup  2.4
/Users/yogs/Desktop/CaptainUp/Headers/CPTAuthenticatedConnection.h
1 //
2 // AuthenticatedConnection.h
3 // captainup_sdk
4 //
5 // Created by David Azriel on 09/12/2015.
6 // Copyright © 2015 Captain Up. All rights reserved.
7 //
8 
9 #ifndef AuthenticatedConnection_h
10 #define AuthenticatedConnection_h
11 
12 #import "CPTActionType.h"
13 #import "CPTQuery.h"
14 #import "CPTActionsResponse.h"
15 #import "CPTAction.h"
16 #import "CPTCreateActionResponse.h"
17 #import "CPTClaimResponse.h"
18 #import "CPTBadge.h"
19 #import "CPTReward.h"
20 #import "CPTSocketNotificationListener.h"
21 #import "CPTCreateAcquireResponse.h"
22 
23 @protocol CPTConnection;
24 
29 
45 - (void)createAction:(nonnull id<CPTAction>)action callback:(RESPONSE_CALLBACK(id<CPTCreateActionResponse>))callback;
46 
56 - (void)queryActionsOfType:(CPTActionType)actionType query:(nonnull id<CPTQuery>)query callback:(RESPONSE_CALLBACK(id<CPTActionsResponse>))callback;
57 
63 -(void)queryUnreadInboxWithCallback:(RESPONSE_CALLBACK(id<CPTActionsResponse>))callback;
64 
65 
76 - (void)deleteNotificationsOfType:(CPTActionType)actionType query:(nonnull id<CPTQuery>)query callback:(RESPONSE_CALLBACK(id<CPTActionsResponse>))callback;
77 
94 -(nonnull id<CPTActionsResponse>)deleteNotificationOfType:(CPTActionType)actionType query:(nonnull id<CPTQuery>)query messageID:(nonnull NSString*)messageID;
95 
111 -(void)deleteNotificationOfTypeAsync:(CPTActionType)actionType query:(nonnull id<CPTQuery>)query messageID:(nonnull NSString*)messageID callback:(RESPONSE_CALLBACK(id<CPTActionsResponse>))callback;
112 
118 - (nonnull id<CPTClaimResponse>)claimReward:(nonnull id<CPTBadge>)badge;
119 
126 - (nonnull id<CPTClaimResponse>)claimReward:(nonnull id<CPTBadge>)badge andReward:(nonnull id<CPTReward>)reward;
127 
137 - (void)claimRewardAsync:(nonnull id<CPTBadge>)badge withCallback:(RESPONSE_CALLBACK(id<CPTClaimResponse>))callback;
138 
149 - (void)claimRewardAsync:(nonnull id<CPTBadge>)badge andReward:(nonnull id<CPTReward>)reward withCallback:(RESPONSE_CALLBACK(id<CPTClaimResponse>))callback;
150 
159 - (nonnull id<CPTCreateAcquireResponse>)acquireAsset:(nonnull id<CPTAsset>)asset;
160 
168 - (void)acquireAssetAsync:(nonnull id<CPTAsset>)asset withCallback:(RESPONSE_CALLBACK(id<CPTCreateAcquireResponse>))callback;
169 
174 - (void)setListener:(nonnull id<CPTSocketNotificationListener>)listener;
175 
176 @end
177 
178 #endif /* AuthenticatedConnection_h */
Definition: CPTSocketNotificationListener.h:17
Definition: CPTConnection.h:27
Definition: CPTAction.h:36
Definition: CPTBadge.h:21
Definition: CPTCreateActionResponse.h:23
Definition: CPTReward.h:21
Definition: CPTClaimResponse.h:19
Definition: CPTActionsResponse.h:19
Definition: CPTAuthenticatedConnection.h:28
Definition: CPTCreateAcquireResponse.h:17
Definition: CPTAsset.h:23
Definition: CPTQuery.h:15