interface周りの負債を改善
This commit is contained in:
@@ -12,12 +12,12 @@ Favorite::Favorite(std::shared_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
||||
void Favorite::Create(const std::string& _id) const {
|
||||
CocoaTweet::API::Favorites::Create create;
|
||||
create.id(_id);
|
||||
create.process(oauth_, [](std::string _rcv) { std::cout << _rcv << std::endl; });
|
||||
create.process(oauth_);
|
||||
}
|
||||
|
||||
void Favorite::Destroy(const std::string& _id) const {
|
||||
CocoaTweet::API::Favorites::Destroy destroy;
|
||||
destroy.id(_id);
|
||||
destroy.process(oauth_, [](std::string _rcv) { std::cout << _rcv << std::endl; });
|
||||
destroy.process(oauth_);
|
||||
}
|
||||
} // namespace CocoaTweet::API::Favorites
|
||||
|
||||
Reference in New Issue
Block a user