Welcome to mirror list, hosted at ThFree Co, Russian Federation.

request_headers.hpp « web_api - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94d5ad1a37bb92274f39472a444ed6b25302f072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "platform/http_client.hpp"

#include "geometry/point2d.hpp"

#include "base/geo_object_id.hpp"

#include <optional>
#include <vector>

namespace web_api
{
class HeadersParams
{
public:
  std::optional<m2::PointD> m_currentPosition;
  std::vector<base::GeoObjectId> m_countryGeoIds;
  std::vector<base::GeoObjectId> m_cityGeoIds;
  std::vector<std::string> m_downloadedGuidesIds;
};

platform::HttpClient::Headers GetDefaultCatalogHeaders();
platform::HttpClient::Headers GetDefaultAuthHeaders();
platform::HttpClient::Header GetPositionHeader(m2::PointD const & pos);
platform::HttpClient::Headers GetCatalogHeaders(HeadersParams const & params);
}  // namespace web_api