///
/// HybridOneMapServicesSpec.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

#pragma once

#if __has_include(<NitroModules/HybridObject.hpp>)
#include <NitroModules/HybridObject.hpp>
#else
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
#endif

// Forward declaration of `MapPlace` to properly resolve imports.
namespace margelo::nitro::one { struct MapPlace; }
// Forward declaration of `MapCoordinate` to properly resolve imports.
namespace margelo::nitro::one { struct MapCoordinate; }
// Forward declaration of `MapSuggestion` to properly resolve imports.
namespace margelo::nitro::one { struct MapSuggestion; }
// Forward declaration of `MapRoute` to properly resolve imports.
namespace margelo::nitro::one { struct MapRoute; }
// Forward declaration of `MapTransport` to properly resolve imports.
namespace margelo::nitro::one { enum class MapTransport; }

#include "MapPlace.hpp"
#include <vector>
#include <NitroModules/Promise.hpp>
#include <string>
#include "MapCoordinate.hpp"
#include "MapSuggestion.hpp"
#include "MapRoute.hpp"
#include "MapTransport.hpp"

namespace margelo::nitro::one {

  using namespace margelo::nitro;

  /**
   * An abstract base class for `OneMapServices`
   * Inherit this class to create instances of `HybridOneMapServicesSpec` in C++.
   * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
   * @example
   * ```cpp
   * class HybridOneMapServices: public HybridOneMapServicesSpec {
   * public:
   *   HybridOneMapServices(...): HybridObject(TAG) { ... }
   *   // ...
   * };
   * ```
   */
  class HybridOneMapServicesSpec: public virtual HybridObject {
    public:
      // Constructor
      explicit HybridOneMapServicesSpec(): HybridObject(TAG) { }

      // Destructor
      ~HybridOneMapServicesSpec() override = default;

    public:
      // Properties


    public:
      // Methods
      virtual std::shared_ptr<Promise<std::vector<MapPlace>>> search(const std::string& query, const MapCoordinate& center, double radiusMeters) = 0;
      virtual std::shared_ptr<Promise<std::vector<MapSuggestion>>> autocomplete(const std::string& query, const MapCoordinate& center, double radiusMeters) = 0;
      virtual std::shared_ptr<Promise<MapPlace>> resolveSuggestion(const std::string& id) = 0;
      virtual std::shared_ptr<Promise<MapRoute>> directions(const MapCoordinate& origin, const MapCoordinate& destination, MapTransport transport) = 0;

    protected:
      // Hybrid Setup
      void loadHybridMethods() override;

    protected:
      // Tag for logging
      static constexpr auto TAG = "OneMapServices";
  };

} // namespace margelo::nitro::one
