interfaceをチョットいじった

This commit is contained in:
keita
2021-02-21 22:51:15 +09:00
parent 788eda9d4a
commit 255536209c
10 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -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; });
}
+2 -2
View File
@@ -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);
+2 -1
View File
@@ -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 -3
View File
@@ -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);