めんどくさくなったから一括でコミットするけど許してくれ

This commit is contained in:
keita
2021-02-23 16:37:15 +09:00
parent 5cebef5d9c
commit b4497728b1
18 changed files with 148 additions and 52 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef COCOATWEET_API_MODEL_TWEET_H_
#define COCOATWEET_API_MODEL_TWEET_H_
#include <string>
namespace CocoaTweet::API::Model {
class Tweet final {
public:
Tweet() = default;
Tweet(const Tweet&) = default;
Tweet(const unsigned int _responseCode, const std::string& _json)
: Tweet(Tweet::parse(_responseCode, _json)) {}
static Tweet parse(const unsigned int _responseCode, const std::string& _json);
void id(const std::string& _id);
const std::string& id() const;
private:
std::string id_;
};
} // namespace CocoaTweet::API::Model
#endif