media/uploadをエントリーポイントに乗せた(#56)

This commit is contained in:
keita
2021-03-11 13:42:10 +09:00
parent bf285508ee
commit e0c78cacbd
4 changed files with 52 additions and 10 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef COCOATWEET_API_MEDIAS_MEDIA_H_
#define COCOATWEET_API_MEDIAS_MEDIA_H_
#include "cocoatweet/api/interface/groupInterface.h"
#include "cocoatweet/oauth/oauth.h"
#include <cocoatweet/api/model/mediaStore.h>
#include <cocoatweet/api/media/upload.h>
#include <vector>
namespace CocoaTweet::API::Medias {
/// @brief Entory point for statuses/*
class Media : public groupInterface {
public:
/// @brief primary constructor to allow for create NON-INITIALIZED object
Media() = default;
/// @brief constructor which finally should to be called.
/// @param[in] std::shared_ptr<CocoaTweet::OAuth::OAuth1> : pointer to OAuth object
Media(std::shared_ptr<CocoaTweet::OAuth::OAuth1> _oauth);
CocoaTweet::API::Model::MediaStore Upload(const std::string& _file) const;
private:
};
} // namespace CocoaTweet::API::Statuses
#endif