update.h
Go to the documentation of this file.
#ifndef COCOATWEET_API_STATUS_UPDATE_H_
#define COCOATWEET_API_STATUS_UPDATE_H_
#include <cocoatweet/api/interface/httpPost.h>
#include <cocoatweet/api/model/tweet.h>
#include <vector>
#include <utility>
#include <memory>
namespace CocoaTweet::API::Statuses {
class Update : public CocoaTweet::API::Interface::HttpPost {
public:
Update();
void status(const std::string _status);
void mediaId(const std::vector<std::string> _media);
void replyToStatusId(const std::string _reply);
void autoPopulateReplyMetaData(bool _meta);
void excludeReplyUserId(const std::vector<std::string> _ex);
void attachmentUrl(const std::string _url);
void coord(std::pair<std::string, std::string> _coord);
void displayCoord(bool _disp);
void trimUser(bool _trim);
void enableDMCommands(bool _enable);
void failDMCommands(bool _fail);
CocoaTweet::API::Model::Tweet process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth);
private:
std::string status_;
};
} // namespace CocoaTweet::API::Statuses
#endif
CocoaTweet::API::Statuses::Update::process
CocoaTweet::API::Model::Tweet process(std::weak_ptr< CocoaTweet::OAuth::OAuth1 > _oauth)
process request for endpoint
Definition: update.cc:56
CocoaTweet::API::Interface::HttpPost
class for Send request with POST method
Definition: httpPost.h:10
CocoaTweet::API::Model::Tweet
data class for tweet object
Definition: tweet.h:10
CocoaTweet::API::Statuses::Update::coord
void coord(std::pair< std::string, std::string > _coord)
Definition: update.cc:35
tweet.h
CocoaTweet::API::Statuses::Update::attachmentUrl
void attachmentUrl(const std::string _url)
Definition: update.cc:31
CocoaTweet::API::Statuses::Update::excludeReplyUserId
void excludeReplyUserId(const std::vector< std::string > _ex)
Definition: update.cc:27
CocoaTweet::API::Statuses::Update::autoPopulateReplyMetaData
void autoPopulateReplyMetaData(bool _meta)
Definition: update.cc:23
CocoaTweet::API::Statuses::Update::enableDMCommands
void enableDMCommands(bool _enable)
Definition: update.cc:48
CocoaTweet::API::Statuses::Update::Update
Update()
primary constructor
Definition: update.cc:5
CocoaTweet::API::Statuses::Update
class for using statuses/update endpoint
Definition: update.h:12
CocoaTweet::API::Statuses::Update::trimUser
void trimUser(bool _trim)
Definition: update.cc:44
httpPost.h
CocoaTweet::API::Statuses::Update::replyToStatusId
void replyToStatusId(const std::string _reply)
Definition: update.cc:19
CocoaTweet::API::Statuses::Update::displayCoord
void displayCoord(bool _disp)
Definition: update.cc:40
CocoaTweet::API::Statuses::Update::failDMCommands
void failDMCommands(bool _fail)
Definition: update.cc:52
CocoaTweet::API::Statuses
Definition: destroy.cc:4
CocoaTweet::API::Statuses::Update::mediaId
void mediaId(const std::vector< std::string > _media)
Definition: update.cc:15
CocoaTweet::API::Statuses::Update::status
void status(const std::string _status)
set tweet text for sending request to statuses/update
Definition: update.cc:10