data class for tweet object
More...
#include <tweet.h>
|
| static Tweet | parse (const std::string &_json) |
| | response parser for tweet object More...
|
| |
data class for tweet object
◆ Tweet() [1/3]
| CocoaTweet::API::Model::Tweet::Tweet |
( |
| ) |
|
|
default |
◆ Tweet() [2/3]
| CocoaTweet::API::Model::Tweet::Tweet |
( |
const Tweet & |
| ) |
|
|
default |
◆ Tweet() [3/3]
| CocoaTweet::API::Model::Tweet::Tweet |
( |
const std::string & |
_json | ) |
|
|
inline |
constructor for create object from json response
- Parameters
-
| [in] | const | std::string& _json : received content from twitter endpoint |
◆ createdAt() [1/2]
| const std::string CocoaTweet::API::Model::Tweet::createdAt |
( |
| ) |
const |
get tweet create time
- Parameters
-
| [in] | none | |
| [out] | const | std::string : time of tweet created time |
◆ createdAt() [2/2]
| void CocoaTweet::API::Model::Tweet::createdAt |
( |
const std::string |
_at | ) |
|
set created time of tweet
- Parameters
-
| [in] | const | std::string _at : tweet created time to set |
| [out] | none | |
◆ id() [1/2]
| const std::string CocoaTweet::API::Model::Tweet::id |
( |
| ) |
const |
get tweet id
- Parameters
-
| [in] | none | |
| [out] | const | std::string : tweet id |
◆ id() [2/2]
| void CocoaTweet::API::Model::Tweet::id |
( |
const std::string |
_id | ) |
|
set id of tweet
- Parameters
-
| [in] | const | std::string _id : tweet id to set |
| [out] | none | |
◆ parse()
| Tweet CocoaTweet::API::Model::Tweet::parse |
( |
const std::string & |
_json | ) |
|
|
static |
response parser for tweet object
- Parameters
-
◆ source() [1/2]
| const std::string CocoaTweet::API::Model::Tweet::source |
( |
| ) |
const |
get tweet source information
- Parameters
-
| [in] | none | |
| [out] | const | std::string : source information |
◆ source() [2/2]
| void CocoaTweet::API::Model::Tweet::source |
( |
const std::string |
_source | ) |
|
set tweet source
- Parameters
-
| [in] | const | std::string _source : source information to set |
| [out] | none | |
◆ text() [1/2]
| const std::string CocoaTweet::API::Model::Tweet::text |
( |
| ) |
const |
get tweet text
- Parameters
-
| [in] | none | |
| [out] | const | std::string : tweet text |
◆ text() [2/2]
| void CocoaTweet::API::Model::Tweet::text |
( |
const std::string |
_text | ) |
|
set tweet text
- Parameters
-
| [in] | const | std::string _text : text of tweet to set |
| [out] | none | |
The documentation for this class was generated from the following files: