整形
This commit is contained in:
@@ -11,6 +11,7 @@ void Create::id(const std::string& _id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Create::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
void Create::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
||||||
postInterface::process(_oauth, [](const std::string& _srv){std::cout << _srv << std::endl;});
|
postInterface::process(_oauth,
|
||||||
|
[](const std::string& _srv) { std::cout << _srv << std::endl; });
|
||||||
}
|
}
|
||||||
} // namespace CocoaTweet::API::Favorites
|
} // namespace CocoaTweet::API::Favorites
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ void Destroy::id(const std::string& _id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Destroy::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
void Destroy::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
||||||
postInterface::process(_oauth, [](const std::string& _srv){std::cout << _srv << std::endl;});
|
postInterface::process(_oauth,
|
||||||
|
[](const std::string& _srv) { std::cout << _srv << std::endl; });
|
||||||
}
|
}
|
||||||
} // namespace CocoaTweet::API::Favorites
|
} // namespace CocoaTweet::API::Favorites
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
namespace CocoaTweet::API::Interface {
|
namespace CocoaTweet::API::Interface {
|
||||||
class postInterface {
|
class postInterface {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::weak_ptr<CocoaTweet::OAuth::OAuth1> oauth_;
|
std::weak_ptr<CocoaTweet::OAuth::OAuth1> oauth_;
|
||||||
std::map<std::string, std::string> bodyParam_;
|
std::map<std::string, std::string> bodyParam_;
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ void Destroy::id(const std::string _id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Destroy::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
void Destroy::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
||||||
postInterface::process(_oauth, [](const std::string& _srv){std::cout << _srv << std::endl;});
|
postInterface::process(_oauth,
|
||||||
|
[](const std::string& _srv) { std::cout << _srv << std::endl; });
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace CocoaTweet::API::Statuses
|
} // namespace CocoaTweet::API::Statuses
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ void Update::status(const std::string _status) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Update::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
void Update::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
||||||
postInterface::process(_oauth, [](const std::string& _srv){std::cout << _srv << std::endl;});
|
postInterface::process(_oauth,
|
||||||
|
[](const std::string& _srv) { std::cout << _srv << std::endl; });
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace CocoaTweet::API::Statuses
|
} // namespace CocoaTweet::API::Statuses
|
||||||
|
|||||||
Reference in New Issue
Block a user