ably-cocoa/Source/ARTDataQuery.h

30 lines
588 B
Objective-C
Executable File

#import <Foundation/Foundation.h>
#import <Ably/ARTTypes.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, ARTQueryDirection) {
ARTQueryDirectionForwards,
ARTQueryDirectionBackwards
};
@interface ARTDataQuery : NSObject
@property (nonatomic, strong, nullable) NSDate *start;
@property (nonatomic, strong, nullable) NSDate *end;
@property (nonatomic, assign) uint16_t limit;
@property (nonatomic, assign) ARTQueryDirection direction;
@end
@interface ARTRealtimeHistoryQuery : ARTDataQuery
@property (nonatomic, assign) BOOL untilAttach;
@end
NS_ASSUME_NONNULL_END