整形も兼ねてテスト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
+3 -1
View File
@@ -11,6 +11,8 @@ void Create::id(const std::string& _id) {
}
void Create::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
HttpPost::process(_oauth, [](const unsigned int _, const std::string& _srv) { std::cout << _srv << std::endl; });
HttpPost::process(_oauth, [](const unsigned int _, const std::string& _srv) {
std::cout << _srv << std::endl;
});
}
} // namespace CocoaTweet::API::Favorites
+3 -1
View File
@@ -11,6 +11,8 @@ void Destroy::id(const std::string& _id) {
}
void Destroy::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
HttpPost::process(_oauth, [](const unsigned int _,const std::string& _srv) { std::cout << _srv << std::endl; });
HttpPost::process(_oauth, [](const unsigned int _, const std::string& _srv) {
std::cout << _srv << std::endl;
});
}
} // namespace CocoaTweet::API::Favorites
+4 -2
View File
@@ -8,9 +8,11 @@ void Destroy::id(const std::string _id) {
url_ = "https://api.twitter.com/1.1/statuses/destroy/" + _id + ".json";
}
CocoaTweet::API::Model::Tweet Destroy::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
CocoaTweet::API::Model::Tweet Destroy::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) {
HttpPost::process(_oauth,
[&tweet](const unsigned int _responseCode, const std::string& _rsv) {
tweet = CocoaTweet::API::Model::Tweet::parse(_responseCode, _rsv);
});
return tweet;
+2 -1
View File
@@ -14,7 +14,8 @@ 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) {
HttpPost::process(_oauth,
[&tweet](const unsigned int _responseCode, const std::string& _rsv) {
tweet = CocoaTweet::API::Model::Tweet::parse(_responseCode, _rsv);
});
return tweet;