diff --git a/src/cocoatweet/api/api.h b/src/cocoatweet/api/api.h index c45eb67..06a36f1 100644 --- a/src/cocoatweet/api/api.h +++ b/src/cocoatweet/api/api.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_API_H_ -#define COCOATWEET_API_H_ +#ifndef COCOATWEET_API_API_H_ +#define COCOATWEET_API_API_H_ #include #include diff --git a/src/cocoatweet/api/interface/groupInterface.h b/src/cocoatweet/api/interface/groupInterface.h index af28e0b..64866fa 100644 --- a/src/cocoatweet/api/interface/groupInterface.h +++ b/src/cocoatweet/api/interface/groupInterface.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_API_GROUPINTERFACE_H_ -#define COCOATWEET_API_GROUPINTERFACE_H_ +#ifndef COCOATWEET_API_INTERFACE_GROUPINTERFACE_H_ +#define COCOATWEET_API_INTERFACE_GROUPINTERFACE_H_ #include #include "cocoatweet/oauth/oauth.h" diff --git a/src/cocoatweet/api/interface/httpPost.h b/src/cocoatweet/api/interface/httpPost.h index 2fd3167..5eeeb40 100644 --- a/src/cocoatweet/api/interface/httpPost.h +++ b/src/cocoatweet/api/interface/httpPost.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_API_INTERFACE_POSTINTERFACE_H_ -#define COCOATWEET_API_INTERFACE_POSTINTERFACE_H_ +#ifndef COCOATWEET_API_INTERFACE_HTTPPOST_H_ +#define COCOATWEET_API_INTERFACE_HTTPPOST_H_ #include #include "cocoatweet/oauth/oauth.h" diff --git a/src/cocoatweet/api/model/tweet.cc b/src/cocoatweet/api/model/tweet.cc index 8ed8c7c..ab416bc 100644 --- a/src/cocoatweet/api/model/tweet.cc +++ b/src/cocoatweet/api/model/tweet.cc @@ -1,5 +1,6 @@ #include #include +#include #include "nlohmann/json.hpp" #include @@ -16,6 +17,8 @@ Tweet Tweet::parse(const unsigned int _responseCode, const std::string& _json) { auto message = j["errors"][0]["message"]; if (error.get() == 144) { throw CocoaTweet::Exception::TweetNotFoundException(message.get().c_str()); + }else if(errot.get() == 32){ + throw CocoaTweet::Exception::AuthenticateFoundException(message.get().c_str()); } } diff --git a/src/cocoatweet/api/status/destroy.h b/src/cocoatweet/api/status/destroy.h index 70247d5..9cc8dad 100644 --- a/src/cocoatweet/api/status/destroy.h +++ b/src/cocoatweet/api/status/destroy.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_API_STATUSES_DESTROY_H_ -#define COCOATWEET_API_STATUSES_DESTROY_H_ +#ifndef COCOATWEET_API_STATUS_DESTROY_H_ +#define COCOATWEET_API_STATUS_DESTROY_H_ #include #include diff --git a/src/cocoatweet/api/status/status.h b/src/cocoatweet/api/status/status.h index 11f4e20..b5919da 100644 --- a/src/cocoatweet/api/status/status.h +++ b/src/cocoatweet/api/status/status.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_API_STATUSED_H_ -#define COCOATWEET_API_STATUSED_H_ +#ifndef COCOATWEET_API_STATUS_STATUS_H_ +#define COCOATWEET_API_STATUS_STATUS_H_ #include "cocoatweet/api/interface/groupInterface.h" #include "cocoatweet/oauth/oauth.h" diff --git a/src/cocoatweet/api/status/update.h b/src/cocoatweet/api/status/update.h index aa2b714..90fa54e 100644 --- a/src/cocoatweet/api/status/update.h +++ b/src/cocoatweet/api/status/update.h @@ -1,5 +1,5 @@ -#ifndef COCOATWEET_API_STATUSES_UPDATE_H_ -#define COCOATWEET_API_STATUSES_UPDATE_H_ +#ifndef COCOATWEET_API_STATUS_UPDATE_H_ +#define COCOATWEET_API_STATUS_UPDATE_H_ #include #include