diff options
author | 2018-06-12 10:58:35 -0700 | |
---|---|---|
committer | 2018-06-12 10:58:35 -0700 | |
commit | afea8d5aacf474b57b4364feda08be9ca195594b (patch) | |
tree | d43c39ae9f71e88d256012f4467cd2b707fc7ddd /Firestore/Source/Remote/FSTRemoteStore.h | |
parent | 0db8ef7dbe6c8c191252d33090dbb88b98735148 (diff) |
Refactor Remote Event (#1396)
Diffstat (limited to 'Firestore/Source/Remote/FSTRemoteStore.h')
-rw-r--r-- | Firestore/Source/Remote/FSTRemoteStore.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Firestore/Source/Remote/FSTRemoteStore.h b/Firestore/Source/Remote/FSTRemoteStore.h index 9b01ce4..302d56a 100644 --- a/Firestore/Source/Remote/FSTRemoteStore.h +++ b/Firestore/Source/Remote/FSTRemoteStore.h @@ -17,6 +17,7 @@ #import <Foundation/Foundation.h> #import "Firestore/Source/Core/FSTTypes.h" +#import "Firestore/Source/Remote/FSTRemoteEvent.h" #include "Firestore/core/src/firebase/firestore/auth/user.h" @@ -24,7 +25,6 @@ @class FSTLocalStore; @class FSTMutationBatch; @class FSTMutationBatchResult; -@class FSTQuery; @class FSTQueryData; @class FSTRemoteEvent; @class FSTTransaction; @@ -73,6 +73,12 @@ NS_ASSUME_NONNULL_BEGIN */ - (void)rejectFailedWriteWithBatchID:(FSTBatchID)batchID error:(NSError *)error; +/** + * Returns the set of remote document keys for the given target ID. This list includes the + * documents that were assigned to the target when we received the last snapshot. + */ +- (firebase::firestore::model::DocumentKeySet)remoteKeysForTarget:(FSTBoxedTargetID *)targetId; + @end /** @@ -93,7 +99,7 @@ NS_ASSUME_NONNULL_BEGIN * FSTRemoteStore handles all interaction with the backend through a simple, clean interface. This * class is not thread safe and should be only called from the worker dispatch queue. */ -@interface FSTRemoteStore : NSObject +@interface FSTRemoteStore : NSObject <FSTTargetMetadataProvider> - (instancetype)initWithLocalStore:(FSTLocalStore *)localStore datastore:(FSTDatastore *)datastore |