@@ -46,23 +46,49 @@ FirebaseGet Firebase::get(const std::string& path) {
4646 return FirebaseGet (host_, auth_, path, http_);
4747}
4848
49+ unique_ptr<FirebaseGet> Firebase::getPtr (const std::string& path) {
50+ return unique_ptr<FirebaseGet>(new FirebaseGet (host_, auth_, path, http_));
51+ }
52+
4953FirebaseSet Firebase::set (const std::string& path, const std::string& value) {
5054 return FirebaseSet (host_, auth_, path, value, http_);
5155}
5256
57+ unique_ptr<FirebaseSet> Firebase::setPtr (const std::string& path,
58+ const std::string& value) {
59+ return unique_ptr<FirebaseSet>(
60+ new FirebaseSet (host_, auth_, path, value, http_));
61+ }
62+
5363FirebasePush Firebase::push (const std::string& path, const std::string& value) {
5464 return FirebasePush (host_, auth_, path, value, http_);
5565}
5666
67+ unique_ptr<FirebasePush> Firebase::pushPtr (const std::string& path, const std::string& value) {
68+ return unique_ptr<FirebasePush>(
69+ new FirebasePush (host_, auth_, path, value, http_));
70+ }
71+
5772FirebaseRemove Firebase::remove (const std::string& path) {
5873 return FirebaseRemove (host_, auth_, path, http_);
5974}
6075
76+ unique_ptr<FirebaseRemove> Firebase::removePtr (const std::string& path) {
77+ return unique_ptr<FirebaseRemove>(
78+ new FirebaseRemove (host_, auth_, path, http_));
79+ }
80+
6181FirebaseStream Firebase::stream (const std::string& path) {
6282 // TODO: create new client dedicated to stream.
6383 return FirebaseStream (host_, auth_, path, http_);
6484}
6585
86+ unique_ptr<FirebaseStream> Firebase::streamPtr (const std::string& path) {
87+ // TODO: create new client dedicated to stream.
88+ return unique_ptr<FirebaseStream>(
89+ new FirebaseStream (host_, auth_, path, http_));
90+ }
91+
6692// FirebaseCall
6793FirebaseCall::FirebaseCall (const std::string& host, const std::string& auth,
6894 const char * method, const std::string& path,
0 commit comments