コメント書いたり
This commit is contained in:
@@ -21,55 +21,61 @@ public:
|
||||
MediaStore(const unsigned int _responseCode, const std::string& _json)
|
||||
: MediaStore(MediaStore::parse(_responseCode, _json)) {}
|
||||
|
||||
/// @brief response parser for tweet object
|
||||
/// @brief response parser for MediaStore object
|
||||
/// @param[in] const unsigned int _responseCode : http status code which received when post
|
||||
/// request
|
||||
/// @param[in] const std::string& _json : received content from twitter endpoint
|
||||
/// @param[out] CocoaTweet::API::Model::Tweet
|
||||
/// @param[out] CocoaTweet::API::Model::MediaStore
|
||||
static MediaStore parse(const unsigned int _responseCode, const std::string& _json);
|
||||
|
||||
/// @brief set id of tweet
|
||||
/// @param[in] const std::string _id : tweet id to set
|
||||
/// @param[in] const std::string _id : media id to set
|
||||
/// @param[out] none
|
||||
void id(const std::string _id);
|
||||
|
||||
/// @brief set created time of tweet
|
||||
/// @param[in] const std::string _at : tweet created time to set
|
||||
/// @brief set media size in byte
|
||||
/// @param[in] const unsigned int _size : media size in byte
|
||||
/// @param[out] none
|
||||
void size(const unsigned int _size);
|
||||
|
||||
/// @brief set tweet text
|
||||
/// @param[in] const std::string _text : text of tweet to set
|
||||
/// @brief set remaining time to expire the media
|
||||
/// @param[in] const unsigned int : remaining time to expire the media ib sec
|
||||
/// @param[out] none
|
||||
void expires(const unsigned int _ex);
|
||||
|
||||
/// @brief set tweet source
|
||||
/// @param[in] const std::string _source : source information to set
|
||||
/// @brief set media processing status
|
||||
/// @param[in] const std::string _state : media processed status
|
||||
/// @param[out] none
|
||||
void state(const std::string _state);
|
||||
|
||||
/// @brief set how second need for upload complete
|
||||
/// @param[in] needed time to upload complete on server in second
|
||||
/// @param[out] none
|
||||
void remain(const unsigned int _remain);
|
||||
|
||||
/// @brief get tweet id
|
||||
/// @brief get media id
|
||||
/// @param[in] none
|
||||
/// @param[out] const std::string : tweet id
|
||||
/// @param[out] const std::string : media id
|
||||
const std::string id() const;
|
||||
|
||||
/// @brief get tweet create time
|
||||
/// @brief get media size
|
||||
/// @param[in] none
|
||||
/// @param[out] const std::string : time of tweet created time
|
||||
/// @param[out] const unsigned int : media size in byte
|
||||
const unsigned int size() const;
|
||||
|
||||
/// @brief get tweet text
|
||||
/// @brief get remaining time to expire the media
|
||||
/// @param[in] none
|
||||
/// @param[out] const std::string : tweet text
|
||||
/// @param[out] const unsigned int : remaining time to expire the media ib sec
|
||||
const unsigned int expire() const;
|
||||
|
||||
/// @brief get tweet source information
|
||||
/// @brief get media processing status
|
||||
/// @param[in] none
|
||||
/// @param[out] const std::string : source information
|
||||
/// @param[out] const std::string _state : media processed status
|
||||
const std::string state() const;
|
||||
|
||||
/// @brief set how second need for upload complete
|
||||
/// @param[in] none
|
||||
/// @param[out] needed time to upload complete on server in second
|
||||
const unsigned int remain() const;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user