#ifndef RNFirebaseFirestoreCollectionReference_h #define RNFirebaseFirestoreCollectionReference_h #import #if __has_include() #import #import #import "RNFirebaseEvents.h" #import "RNFirebaseFirestore.h" #import "RNFirebaseFirestoreDocumentReference.h" @interface RNFirebaseFirestoreCollectionReference : NSObject @property RCTEventEmitter *emitter; @property NSString *app; @property NSString *path; @property NSArray *filters; @property NSArray *orders; @property NSDictionary *options; @property FIRQuery *query; - (id)initWithPathAndModifiers:(RCTEventEmitter *)emitter app:(NSString *)app path:(NSString *)path filters:(NSArray *)filters orders:(NSArray *)orders options:(NSDictionary *)options; - (void)get:(RCTPromiseResolveBlock) resolve rejecter:(RCTPromiseRejectBlock) reject; + (void)offSnapshot:(NSString *)listenerId; - (void)onSnapshot:(NSString *)listenerId; + (NSDictionary *)snapshotToDictionary:(FIRQuerySnapshot *)querySnapshot; @end #else @interface RNFirebaseFirestoreCollectionReference : NSObject @end #endif #endif