Add 'server/' from commit '800090542d91beae40bc81fc41b67ba61c47da77'
git-subtree-dir: server git-subtree-mainline:6a4054c15agit-subtree-split:800090542d
This commit is contained in:
39
server/kordophone/Bridge/MBIMUpdateQueue.h
Normal file
39
server/kordophone/Bridge/MBIMUpdateQueue.h
Normal file
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// MBIMUpdateQueue.h
|
||||
// kordophoned
|
||||
//
|
||||
// Created by James Magahern on 11/16/18.
|
||||
// Copyright © 2018 James Magahern. All rights reserved.
|
||||
//
|
||||
|
||||
#import "IMCore_ClassDump.h"
|
||||
#import "IMFoundation_ClassDump.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class GCDAsyncSocket;
|
||||
@class HTTPMessage;
|
||||
@class WebSocket;
|
||||
|
||||
@interface MBIMUpdateItem : NSObject
|
||||
@property (nonatomic, strong) IMChat *changedChat;
|
||||
@property (nonatomic, strong) IMMessage *addedMessage;
|
||||
|
||||
- (NSDictionary *)dictionaryRepresentation;
|
||||
@end
|
||||
|
||||
typedef void (^MBIMUpdateConsumer)(NSArray<MBIMUpdateItem *> *items);
|
||||
|
||||
@interface MBIMUpdateQueue : NSObject
|
||||
|
||||
+ (instancetype)sharedInstance;
|
||||
|
||||
- (void)addPollingConsumer:(MBIMUpdateConsumer)consumer withLastSyncedMessageSeq:(NSInteger)messageSeq;
|
||||
- (void)removePollingConsumer:(MBIMUpdateConsumer)consumer;
|
||||
|
||||
- (void)enqueueUpdateItem:(MBIMUpdateItem *)item;
|
||||
|
||||
- (WebSocket *)vendUpdateWebSocketConsumerForRequest:(HTTPMessage *)request socket:(GCDAsyncSocket *)socket;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user