interfaceをチョットいじった
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "cocoatweet/api/status/destroy.h"
|
||||
|
||||
#include <iostream>
|
||||
namespace CocoaTweet::API::Statuses {
|
||||
Destroy::Destroy() {}
|
||||
void Destroy::id(const std::string _id) {
|
||||
@@ -8,7 +8,7 @@ void Destroy::id(const std::string _id) {
|
||||
}
|
||||
|
||||
void Destroy::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
||||
postInterface::process(_oauth,
|
||||
HttpPost::process(_oauth,
|
||||
[](const std::string& _srv) { std::cout << _srv << std::endl; });
|
||||
}
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "cocoatweet/api/interface/postInterface.h"
|
||||
#include "cocoatweet/api/interface/httpPost.h"
|
||||
//#include "cocoatweet/oauth/oauth.h"
|
||||
|
||||
namespace CocoaTweet::API::Statuses {
|
||||
class Destroy : public CocoaTweet::API::Interface::postInterface {
|
||||
class Destroy : public CocoaTweet::API::Interface::HttpPost {
|
||||
public:
|
||||
Destroy();
|
||||
void id(const std::string _id);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "cocoatweet/api/status/update.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace CocoaTweet::API::Statuses {
|
||||
Update::Update() {
|
||||
@@ -11,7 +12,7 @@ void Update::status(const std::string _status) {
|
||||
}
|
||||
|
||||
void Update::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
|
||||
postInterface::process(_oauth,
|
||||
HttpPost::process(_oauth,
|
||||
[](const std::string& _srv) { std::cout << _srv << std::endl; });
|
||||
}
|
||||
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
#define COCOATWEET_API_STATUSES_UPDATE_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "cocoatweet/api/interface/postInterface.h"
|
||||
#include "cocoatweet/api/interface/httpPost.h"
|
||||
//#include "cocoatweet/oauth/oauth.h"
|
||||
|
||||
namespace CocoaTweet::API::Statuses {
|
||||
class Update : public CocoaTweet::API::Interface::postInterface {
|
||||
class Update : public CocoaTweet::API::Interface::HttpPost {
|
||||
public:
|
||||
Update();
|
||||
void status(const std::string _status);
|
||||
|
||||
Reference in New Issue
Block a user