Captainup  2.4
/Users/yogs/Desktop/CaptainUp/Headers/CPTInbox.h
1 //
2 // CPTInbox.h
3 // CaptainUp
4 //
5 // Created by David Azriel on 17/07/2016.
6 // Copyright © 2016 Captain Up. All rights reserved.
7 //
8 
9 #ifndef CPTInbox_h
10 #define CPTInbox_h
11 
12 #import "CPTObject.h"
13 #import "CPTInboxListener.h"
14 #import "CPTQuery.h"
15 #import "CPTInboxItem.h"
16 
20 @protocol CPTInbox <NSObject>
21 
22 - (void)addListener:(nonnull id<CPTInboxListener>)listener;
23 
24 - (void)removeListener:(nonnull id<CPTInboxListener>)listener;
25 
32 - (void)query:(nonnull id<CPTQuery>)query to:(RESPONSE_CALLBACK(NSArray<id <CPTInboxItem>> *))callback;
33 
34 -(NSInteger)getNewMessageCount;
35 
47 - (void)checkForNewMessages;
48 
54 - (void)markAllAsRead;
55 
61 - (void)markMessageAsRead:(nonnull NSString*)messageID;
62 
66 -(nonnull NSArray<id<CPTInboxItem>>*)getUnreadInboxMessages;
67 
71 -(nonnull NSArray<id<CPTInboxItem>>*)getUnreadInboxNotifications;
72 
73 @end
74 
75 #endif /* CPTInbox_h */
Definition: CPTInboxListener.h:17
nonnull NSArray< id< CPTInboxItem >> * getUnreadInboxMessages()
Definition: CPTInboxItem.h:20
void checkForNewMessages()
void markAllAsRead()
nonnull NSArray< id< CPTInboxItem >> * getUnreadInboxNotifications()
Definition: CPTInbox.h:20
Definition: CPTQuery.h:15