media/uploadを今度こそエントリーポイントに乗せた(#56)
This commit is contained in:
@@ -5,6 +5,7 @@ API::API(CocoaTweet::OAuth::Key _key) {
|
|||||||
oauth_ = std::make_shared<CocoaTweet::OAuth::OAuth1>(_key);
|
oauth_ = std::make_shared<CocoaTweet::OAuth::OAuth1>(_key);
|
||||||
status_ = Statuses::Status(oauth_);
|
status_ = Statuses::Status(oauth_);
|
||||||
favorite_ = Favorites::Favorite(oauth_);
|
favorite_ = Favorites::Favorite(oauth_);
|
||||||
|
media_ = Medias::Media(oauth_);
|
||||||
}
|
}
|
||||||
|
|
||||||
Statuses::Status API::status() const {
|
Statuses::Status API::status() const {
|
||||||
@@ -14,4 +15,8 @@ Statuses::Status API::status() const {
|
|||||||
Favorites::Favorite API::favorite() const {
|
Favorites::Favorite API::favorite() const {
|
||||||
return favorite_;
|
return favorite_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Medias::Media API::media() const {
|
||||||
|
return media_;
|
||||||
|
}
|
||||||
} // namespace CocoaTweet::API
|
} // namespace CocoaTweet::API
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <cocoatweet/api/status/status.h>
|
#include <cocoatweet/api/status/status.h>
|
||||||
#include <cocoatweet/api/favorite/favorite.h>
|
#include <cocoatweet/api/favorite/favorite.h>
|
||||||
|
#include <cocoatweet/api/media/media.h>
|
||||||
#include <cocoatweet/oauth/oauth.h>
|
#include <cocoatweet/oauth/oauth.h>
|
||||||
|
|
||||||
namespace CocoaTweet::API {
|
namespace CocoaTweet::API {
|
||||||
@@ -21,9 +22,12 @@ public:
|
|||||||
/// @param[out] Favorite object typed CococaTweet::API::Favorites::Favorite
|
/// @param[out] Favorite object typed CococaTweet::API::Favorites::Favorite
|
||||||
Favorites::Favorite favorite() const;
|
Favorites::Favorite favorite() const;
|
||||||
|
|
||||||
|
Medias::Media media() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Statuses::Status status_;
|
Statuses::Status status_;
|
||||||
Favorites::Favorite favorite_;
|
Favorites::Favorite favorite_;
|
||||||
|
Medias::Media media_;
|
||||||
std::shared_ptr<CocoaTweet::OAuth::OAuth1> oauth_;
|
std::shared_ptr<CocoaTweet::OAuth::OAuth1> oauth_;
|
||||||
};
|
};
|
||||||
} // namespace CocoaTweet::API
|
} // namespace CocoaTweet::API
|
||||||
|
|||||||
Reference in New Issue
Block a user