-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
includes changes at: https://github.com/ArkEcosystem/cpp-client/tree/0d72bb9e1b02ca87718ec1c003b6cb57e0055a58
- Loading branch information
1 parent
235b4a7
commit 194b508
Showing
21 changed files
with
717 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @faustbrian @kristjank @supaiku0 | ||
* @faustbrian @kristjank @supaiku0 @sleepdefic1t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* This file is part of Ark Cpp Client. | ||
* | ||
* (c) Ark Ecosystem <info@ark.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
**/ | ||
|
||
#include "api/bridgechains/bridgechains.h" | ||
|
||
namespace Ark { | ||
namespace Client { | ||
namespace api { | ||
|
||
std::string Bridgechains::get(const char* bridgechainId) { | ||
return http_->get(paths::Bridgechains::get(this->host_, bridgechainId).c_str()); | ||
} | ||
|
||
/**/ | ||
|
||
std::string Bridgechains::all(const char* const query) { | ||
return http_->get(paths::Bridgechains::all(this->host_, query).c_str()); | ||
} | ||
|
||
/**/ | ||
|
||
std::string Bridgechains::search( | ||
const std::map<std::string, std::string> &bodyParameters, | ||
const char* const query) { | ||
const auto searchPathPair = paths::Bridgechains::search(this->host_, | ||
bodyParameters, | ||
query); | ||
return http_->post(searchPathPair.first.c_str(), | ||
searchPathPair.second.c_str()); | ||
} | ||
|
||
} // namespace api | ||
} // namespace Client | ||
} // namespace Ark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* This file is part of Ark Cpp Client. | ||
* | ||
* (c) Ark Ecosystem <info@ark.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
**/ | ||
|
||
#ifndef BRIDGECHAINS_H | ||
#define BRIDGECHAINS_H | ||
|
||
#include <map> | ||
#include <string> | ||
|
||
#include "api/base.h" | ||
#include "api/paths.h" | ||
|
||
namespace Ark { | ||
namespace Client { | ||
namespace api { // NOLINT | ||
|
||
class IBridgechains : public Base { | ||
public: | ||
virtual ~IBridgechains() {} | ||
virtual std::string get(const char* const bridgechainId) = 0; | ||
virtual std::string all(const char* const query) = 0; | ||
virtual std::string search(const std::map<std::string, std::string>& bodyParameters, const char* const query) = 0; | ||
|
||
protected: | ||
IBridgechains(Host& host, IHTTP& http) : Base(host, http) {} | ||
}; | ||
|
||
/**/ | ||
|
||
class Bridgechains : public IBridgechains { | ||
public: | ||
Bridgechains(Host& host, IHTTP& http) : IBridgechains(host, http) {} | ||
|
||
std::string get(const char* const bridgechainId) override; | ||
std::string all(const char* const query) override; | ||
std::string search(const std::map<std::string, std::string>& bodyParameters, const char* const query) override; | ||
}; | ||
|
||
} // namespace api | ||
} // namespace Client | ||
} // namespace Ark | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* This file is part of Ark Cpp Client. | ||
* | ||
* (c) Ark Ecosystem <info@ark.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
**/ | ||
|
||
#include "api/businesses/businesses.h" | ||
|
||
namespace Ark { | ||
namespace Client { | ||
namespace api { | ||
|
||
std::string Businesses::get(const char* businessId) { | ||
return http_->get(paths::Businesses::get(this->host_, businessId).c_str()); | ||
} | ||
|
||
/**/ | ||
|
||
std::string Businesses::all(const char* const query) { | ||
return http_->get(paths::Businesses::all(this->host_, query).c_str()); | ||
} | ||
|
||
/**/ | ||
|
||
std::string Businesses::bridgechains(const char* businessId, | ||
const char* const query) { | ||
return http_->get(paths::Businesses::bridgechains(this->host_, | ||
businessId, | ||
query).c_str()); | ||
} | ||
|
||
/**/ | ||
|
||
std::string Businesses::search( | ||
const std::map<std::string, std::string> &bodyParameters, | ||
const char* const query) { | ||
const auto searchPathPair = paths::Businesses::search(this->host_, | ||
bodyParameters, | ||
query); | ||
return http_->post(searchPathPair.first.c_str(), | ||
searchPathPair.second.c_str()); | ||
} | ||
|
||
} // namespace api | ||
} // namespace Client | ||
} // namespace Ark |
Oops, something went wrong.