favorites関連でTweetオブジェクトを返すように

This commit is contained in:
keita
2021-03-05 11:30:08 +09:00
parent 75b2599b6b
commit 9aa3fe1c9a
6 changed files with 25 additions and 12 deletions
+4 -4
View File
@@ -7,15 +7,15 @@ Favorite::Favorite(std::shared_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
oauth_ = _oauth;
}
void Favorite::Create(const std::string& _id) const {
CocoaTweet::API::Model::Tweet Favorite::Create(const std::string& _id) const {
CocoaTweet::API::Favorites::Create create;
create.id(_id);
create.process(oauth_);
return create.process(oauth_);
}
void Favorite::Destroy(const std::string& _id) const {
CocoaTweet::API::Model::Tweet Favorite::Destroy(const std::string& _id) const {
CocoaTweet::API::Favorites::Destroy destroy;
destroy.id(_id);
destroy.process(oauth_);
return destroy.process(oauth_);
}
} // namespace CocoaTweet::API::Favorites