Skip to content

Commit 1402bff

Browse files
committed
Add model::BatchId
1 parent 8d71c74 commit 1402bff

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Firestore/Source/Core/FSTTypes.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@
1616

1717
#import <Foundation/Foundation.h>
1818

19+
#include "Firestore/core/src/firebase/firestore/model/types.h"
20+
1921
NS_ASSUME_NONNULL_BEGIN
2022

2123
@class FSTMaybeDocument;
2224
@class FSTTransaction;
2325

2426
/** FSTBatchID is a locally assigned ID for a batch of mutations that have been applied. */
25-
typedef int32_t FSTBatchID;
27+
typedef firebase::firestore::model::BatchId FSTBatchID;
2628

27-
typedef int32_t FSTTargetID;
29+
typedef firebase::firestore::model::TargetId FSTTargetID;
2830

2931
typedef int64_t FSTListenSequenceNumber;
3032

Firestore/core/src/firebase/firestore/model/types.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ namespace firebase {
2323
namespace firestore {
2424
namespace model {
2525

26+
/**
27+
* BatchId is a locally assigned ID for a batch of mutations that have been
28+
* applied.
29+
*/
30+
typedef int32_t BatchId;
31+
2632
typedef int32_t TargetId;
2733

2834
} // namespace model

0 commit comments

Comments
 (0)