favorites関連でTweetオブジェクトを返すように
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user