diff --git a/backends/twitter/TwitterResponseParser.h b/backends/twitter/TwitterResponseParser.h index 2dc5097f5f1086eefce9cc9c222d725d45d92215..7ef187a8fa04af57360098775fad50442bfe9ff8 100644 --- a/backends/twitter/TwitterResponseParser.h +++ b/backends/twitter/TwitterResponseParser.h @@ -1,9 +1,10 @@ #ifndef TWITTERRESPOSNSEPARSER_H #define TWITTERRESPOSNSEPARSER_H -#include "Swiften/Parser/StringTreeParser.h" +#include "rapidjson/document.h" #include #include +#include namespace TwitterReponseTypes { @@ -217,7 +218,7 @@ std::vector getUsers(std::string &xml); User getUser(std::string &xml); Error getErrorMessage(std::string &xml); -Status getStatus(const Swift::ParserElement::ref &element, const std::string xmlns); -DirectMessage getDirectMessage(const Swift::ParserElement::ref &element, const std::string xmlns); -User getUser(const Swift::ParserElement::ref &element, const std::string xmlns); +Status getStatus(const rapidjson::Value &element); +DirectMessage getDirectMessage(const rapidjson::Value &element); +User getUser(const rapidjson::Value &element); #endif