-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// Created by Cheryl Lin on 2024-12-16. | ||
// | ||
|
||
#ifndef FIREBASE_PIPELINE_RESULT_H | ||
#define FIREBASE_PIPELINE_RESULT_H | ||
|
||
#include <memory> | ||
#include "Firestore/core/include/firebase/firestore/timestamp.h" | ||
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / client-app-cocoapods (ClientApp-CocoaPods)
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / client-app-cocoapods (ClientApp-CocoaPods)
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / client-app-cocoapods (ClientApp-CocoaPods)
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / client-app-cocoapods (ClientApp-CocoaPods)
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / installation-test
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / installation-test
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / installation-test
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / installation-test
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / storage-combine-integration
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / storage-combine-integration
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / storage-combine-integration
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / storage-combine-integration
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / xcodebuild (iOS)
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / xcodebuild (iOS)
Check failure on line 9 in Firestore/core/swift/include/pipeline_result.h GitHub Actions / xcodebuild (iOS)
|
||
|
||
namespace firebase { | ||
namespace firestore { | ||
|
||
namespace api { | ||
|
||
class Firestore; | ||
class DocumentReference; | ||
|
||
class PipelineResult { | ||
public: | ||
PipelineResult(std::shared_ptr<Firestore> firestore, | ||
std::shared_ptr<DocumentReference> doc_ref_ptr, | ||
Timestamp execution_time, | ||
Timestamp update_time, | ||
Timestamp create_time); | ||
|
||
private: | ||
std::shared_ptr<Firestore> firestore_; | ||
std::shared_ptr<DocumentReference> doc_ref_ptr_; | ||
Timestamp execution_time_; | ||
Timestamp update_time_; | ||
Timestamp create_time_; | ||
}; | ||
|
||
} // namespace api | ||
|
||
} // namespace firestore | ||
} // namespace firebase | ||
#endif // FIREBASE_PIPELINE_RESULT_H |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
#include "Firestore/core/swift/include/pipeline_result.h" | ||
|
||
namespace firebase { | ||
namespace firestore { | ||
|
||
namespace api { | ||
|
||
PipelineResult::PipelineResult(std::shared_ptr<Firestore> firestore, | ||
std::shared_ptr<DocumentReference> doc_ref_ptr, | ||
Timestamp execution_time, | ||
Timestamp update_time, | ||
Timestamp create_time) | ||
: firestore_(firestore), | ||
doc_ref_ptr_(doc_ref_ptr), | ||
execution_time_(execution_time), | ||
update_time_(update_time), | ||
create_time_(create_time) { | ||
} | ||
|
||
} // namespace api | ||
|
||
} // namespace firestore | ||
} // namespace firebase |