CocoaTweet
src
cocoatweet
api
status
update.h
Go to the documentation of this file.
1
#ifndef COCOATWEET_API_STATUS_UPDATE_H_
2
#define COCOATWEET_API_STATUS_UPDATE_H_
3
4
#include <
cocoatweet/api/interface/httpPost.h
>
5
#include <
cocoatweet/api/model/tweet.h
>
6
#include <vector>
7
#include <utility>
8
#include <memory>
9
10
namespace
CocoaTweet::API::Statuses
{
12
class
Update
:
public
CocoaTweet::API::Interface::HttpPost
{
13
public
:
15
Update
();
16
20
void
status
(
const
std::string _status);
21
22
void
mediaId
(
const
std::vector<std::string> _media);
23
24
void
replyToStatusId
(
const
std::string _reply);
25
26
void
autoPopulateReplyMetaData
(
bool
_meta);
27
28
void
excludeReplyUserId
(
const
std::vector<std::string> _ex);
29
30
void
attachmentUrl
(
const
std::string _url);
31
32
void
coord
(std::pair<std::string, std::string> _coord);
33
34
void
displayCoord
(
bool
_disp);
35
36
void
trimUser
(
bool
_trim);
37
38
void
enableDMCommands
(
bool
_enable);
39
40
void
failDMCommands
(
bool
_fail);
41
45
CocoaTweet::API::Model::Tweet
process
(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth);
46
47
private
:
48
std::string status_;
49
};
50
}
// namespace CocoaTweet::API::Statuses
51
52
#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
Generated by
1.8.17