statuses/unretweet/:idを叩くやつをエントリーポイントにのせた

This commit is contained in:
keita
2021-03-20 10:26:53 +09:00
parent 81d248151a
commit fc886b70b8
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -2,6 +2,7 @@
#include "cocoatweet/api/status/update.h" #include "cocoatweet/api/status/update.h"
#include "cocoatweet/api/status/destroy.h" #include "cocoatweet/api/status/destroy.h"
#include "cocoatweet/api/status/retweet.h" #include "cocoatweet/api/status/retweet.h"
#include "cocoatweet/api/status/unretweet.h"
#include "cocoatweet/api/status/userTimeline.h" #include "cocoatweet/api/status/userTimeline.h"
namespace CocoaTweet::API::Statuses { namespace CocoaTweet::API::Statuses {
@@ -79,6 +80,12 @@ CocoaTweet::API::Model::Tweet Status::Retweet(const std::string& _id) const {
return retweet.process(oauth_); return retweet.process(oauth_);
} }
CocoaTweet::API::Model::Tweet Status::Unretweet(const std::string& _id) const {
CocoaTweet::API::Statuses::Unretweet unretweet;
unretweet.id(_id);
return unretweet.process(oauth_);
}
std::vector<CocoaTweet::API::Model::Tweet> Status::UserTimeline( std::vector<CocoaTweet::API::Model::Tweet> Status::UserTimeline(
const std::string& _screenName) const { const std::string& _screenName) const {
CocoaTweet::API::Statuses::UserTimeline userTimeline; CocoaTweet::API::Statuses::UserTimeline userTimeline;
+1
View File
@@ -61,6 +61,7 @@ public:
CocoaTweet::API::Model::Tweet Destroy(const std::string& _id) const; CocoaTweet::API::Model::Tweet Destroy(const std::string& _id) const;
CocoaTweet::API::Model::Tweet Retweet(const std::string& _id) const; CocoaTweet::API::Model::Tweet Retweet(const std::string& _id) const;
CocoaTweet::API::Model::Tweet Unretweet(const std::string& _id) const;
std::vector<CocoaTweet::API::Model::Tweet> UserTimeline(const std::string& _screenName) const; std::vector<CocoaTweet::API::Model::Tweet> UserTimeline(const std::string& _screenName) const;