interface周りの負債を改善

This commit is contained in:
keita
2021-02-20 22:29:49 +09:00
parent a62d0fe7ff
commit 8600dff037
12 changed files with 36 additions and 8 deletions
+2 -2
View File
@@ -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