@@ -46,23 +46,49 @@ FirebaseGet Firebase::get(const std::string& path) {
46
46
return FirebaseGet (host_, auth_, path, http_);
47
47
}
48
48
49
+ unique_ptr<FirebaseGet> Firebase::getPtr (const std::string& path) {
50
+ return unique_ptr<FirebaseGet>(new FirebaseGet (host_, auth_, path, http_));
51
+ }
52
+
49
53
FirebaseSet Firebase::set (const std::string& path, const std::string& value) {
50
54
return FirebaseSet (host_, auth_, path, value, http_);
51
55
}
52
56
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
+
53
63
FirebasePush Firebase::push (const std::string& path, const std::string& value) {
54
64
return FirebasePush (host_, auth_, path, value, http_);
55
65
}
56
66
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
+
57
72
FirebaseRemove Firebase::remove (const std::string& path) {
58
73
return FirebaseRemove (host_, auth_, path, http_);
59
74
}
60
75
76
+ unique_ptr<FirebaseRemove> Firebase::removePtr (const std::string& path) {
77
+ return unique_ptr<FirebaseRemove>(
78
+ new FirebaseRemove (host_, auth_, path, http_));
79
+ }
80
+
61
81
FirebaseStream Firebase::stream (const std::string& path) {
62
82
// TODO: create new client dedicated to stream.
63
83
return FirebaseStream (host_, auth_, path, http_);
64
84
}
65
85
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
+
66
92
// FirebaseCall
67
93
FirebaseCall::FirebaseCall (const std::string& host, const std::string& auth,
68
94
const char * method, const std::string& path,
0 commit comments