整形も兼ねてテストcommit

This commit is contained in:
keita
2021-02-25 17:14:33 +09:00
parent 24c067742b
commit 0beb522359
7 changed files with 24 additions and 17 deletions
+6 -5
View File
@@ -13,11 +13,12 @@ void Update::status(const std::string _status) {
}
CocoaTweet::API::Model::Tweet Update::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
CocoaTweet::API::Model::Tweet tweet;
HttpPost::process(_oauth, [&tweet](const unsigned int _responseCode, const std::string& _rsv) {
tweet = CocoaTweet::API::Model::Tweet::parse(_responseCode, _rsv);
});
return tweet;
CocoaTweet::API::Model::Tweet tweet;
HttpPost::process(_oauth,
[&tweet](const unsigned int _responseCode, const std::string& _rsv) {
tweet = CocoaTweet::API::Model::Tweet::parse(_responseCode, _rsv);
});
return tweet;
}
} // namespace CocoaTweet::API::Statuses