diff options
author | Aleksandr Zatsepin <alexzatsepin@users.noreply.github.com> | 2019-01-09 11:46:47 +0300 |
---|---|---|
committer | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-01-09 11:46:47 +0300 |
commit | 92e3469b3d151aed60a4703e3ad8d4ca754eb5bd (patch) | |
tree | 13cbd5d0f48a02968d031aedee6aa412d7024a43 /partners_api/viator_api.hpp | |
parent | ae2609e2bf6301d1f0071f352dc8d2a8bdc33948 (diff) |
Removed viator code (#9917)
* Removed viator code from core, android and ios.
* Removed redundant viator strings
* [android][ios] Generated localizations
Diffstat (limited to 'partners_api/viator_api.hpp')
-rw-r--r-- | partners_api/viator_api.hpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/partners_api/viator_api.hpp b/partners_api/viator_api.hpp deleted file mode 100644 index 437234f56f..0000000000 --- a/partners_api/viator_api.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#pragma once - -#include "platform/safe_callback.hpp" - -#include <functional> -#include <string> -#include <vector> - -namespace viator -{ -class RawApi -{ -public: - /// Returns top <count> products for specified city id. - static bool GetTopProducts(std::string const & destId, std::string const & currency, int count, - std::string & result); -}; - -struct Product -{ - std::string m_title; - double m_rating; - int m_reviewCount; - std::string m_duration; - double m_price; - std::string m_priceFormatted; - std::string m_currency; - std::string m_photoUrl; - std::string m_pageUrl; -}; - -using GetTop5ProductsCallback = - platform::SafeCallback<void(std::string const & destId, std::vector<Product> const & products)>; - -class Api -{ -public: - /// Returns web page address for specified city id. - static std::string GetCityUrl(std::string const & destId); - - /// Returns top-5 products for specified city id. - /// @currency - currency of the price, if empty then USD will be used. - void GetTop5Products(std::string const & destId, std::string const & currency, - GetTop5ProductsCallback const & fn) const; -}; - -bool operator<(Product const & lhs, Product const & rhs); -void SortProducts(std::vector<Product> & products); -} // namespace viator |