statuses/unretweet/:idを叩くやつをエントリーポイントにのせた
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "cocoatweet/api/status/update.h"
|
||||
#include "cocoatweet/api/status/destroy.h"
|
||||
#include "cocoatweet/api/status/retweet.h"
|
||||
#include "cocoatweet/api/status/unretweet.h"
|
||||
#include "cocoatweet/api/status/userTimeline.h"
|
||||
|
||||
namespace CocoaTweet::API::Statuses {
|
||||
@@ -79,6 +80,12 @@ CocoaTweet::API::Model::Tweet Status::Retweet(const std::string& _id) const {
|
||||
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(
|
||||
const std::string& _screenName) const {
|
||||
CocoaTweet::API::Statuses::UserTimeline userTimeline;
|
||||
|
||||
@@ -61,6 +61,7 @@ public:
|
||||
CocoaTweet::API::Model::Tweet Destroy(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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user