Tweetオブジェクトに機能追加

This commit is contained in:
keita
2021-03-04 14:00:15 +09:00
parent c88923291e
commit 9742f20199
2 changed files with 43 additions and 0 deletions
+11
View File
@@ -12,10 +12,21 @@ public:
: Tweet(Tweet::parse(_responseCode, _json)) {}
static Tweet parse(const unsigned int _responseCode, const std::string& _json);
void id(const std::string _id);
void createdAt(const std::string _at);
void text(const std::string _text);
void source(const std::string _source);
const std::string id() const;
const std::string createdAt() const;
const std::string text() const;
const std::string source() const;
private:
std::string id_;
std::string createdAt_;
std::string text_;
std::string source_;
};
} // namespace CocoaTweet::API::Model