|
CocoaTweet
|
data class for tweet object More...
#include <tweet.h>
Public Member Functions | |
| Tweet ()=default | |
| constructor More... | |
| Tweet (const Tweet &)=default | |
| copy constructor More... | |
| Tweet (const std::string &_json) | |
| constructor for create object from json response More... | |
| void | id (const std::string _id) |
| set id of tweet More... | |
| void | createdAt (const std::string _at) |
| set created time of tweet More... | |
| void | text (const std::string _text) |
| set tweet text More... | |
| void | source (const std::string _source) |
| set tweet source More... | |
| void | user (const CocoaTweet::API::Model::User _user) |
| const std::string | id () const |
| get tweet id More... | |
| const std::string | createdAt () const |
| get tweet create time More... | |
| const std::string | text () const |
| get tweet text More... | |
| const std::string | source () const |
| get tweet source information More... | |
| const CocoaTweet::API::Model::User | user () const |
Static Public Member Functions | |
| static Tweet | parse (const std::string &_json) |
| response parser for tweet object More... | |
data class for tweet object
|
default |
constructor
|
default |
copy constructor
|
inline |
constructor for create object from json response
| [in] | const | std::string& _json : received content from twitter endpoint |
| const std::string CocoaTweet::API::Model::Tweet::createdAt | ( | ) | const |
get tweet create time
| [in] | none | |
| [out] | const | std::string : time of tweet created time |
| void CocoaTweet::API::Model::Tweet::createdAt | ( | const std::string | _at | ) |
set created time of tweet
| [in] | const | std::string _at : tweet created time to set |
| [out] | none |
| const std::string CocoaTweet::API::Model::Tweet::id | ( | ) | const |
get tweet id
| [in] | none | |
| [out] | const | std::string : tweet id |
| void CocoaTweet::API::Model::Tweet::id | ( | const std::string | _id | ) |
set id of tweet
| [in] | const | std::string _id : tweet id to set |
| [out] | none |
|
static |
response parser for tweet object
| [in] | const | std::string& _json : received content from twitter endpoint |
| [out] | CocoaTweet::API::Model::Tweet |
| const std::string CocoaTweet::API::Model::Tweet::source | ( | ) | const |
get tweet source information
| [in] | none | |
| [out] | const | std::string : source information |
| void CocoaTweet::API::Model::Tweet::source | ( | const std::string | _source | ) |
set tweet source
| [in] | const | std::string _source : source information to set |
| [out] | none |
| const std::string CocoaTweet::API::Model::Tweet::text | ( | ) | const |
get tweet text
| [in] | none | |
| [out] | const | std::string : tweet text |
| void CocoaTweet::API::Model::Tweet::text | ( | const std::string | _text | ) |
set tweet text
| [in] | const | std::string _text : text of tweet to set |
| [out] | none |
| const CocoaTweet::API::Model::User CocoaTweet::API::Model::Tweet::user | ( | ) | const |
| void CocoaTweet::API::Model::Tweet::user | ( | const CocoaTweet::API::Model::User | _user | ) |
1.8.17