///
/// HybridHeartbeatSeriesModuleSpec.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 `HeartbeatSeriesSample` to properly resolve imports.
namespace margelo::nitro::healthkit { struct HeartbeatSeriesSample; }
// Forward declaration of `QueryOptionsWithSortOrder` to properly resolve imports.
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
// Forward declaration of `HeartbeatSeriesSamplesWithAnchorResponse` to properly resolve imports.
namespace margelo::nitro::healthkit { struct HeartbeatSeriesSamplesWithAnchorResponse; }
// Forward declaration of `QueryOptionsWithAnchor` to properly resolve imports.
namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }

#include "HeartbeatSeriesSample.hpp"
#include <vector>
#include <NitroModules/Promise.hpp>
#include "QueryOptionsWithSortOrder.hpp"
#include "HeartbeatSeriesSamplesWithAnchorResponse.hpp"
#include "QueryOptionsWithAnchor.hpp"

namespace margelo::nitro::healthkit {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridHeartbeatSeriesModuleSpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>> queryHeartbeatSeriesSamples(const QueryOptionsWithSortOrder& options) = 0;
      virtual std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>> queryHeartbeatSeriesSamplesWithAnchor(const QueryOptionsWithAnchor& options) = 0;

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

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

} // namespace margelo::nitro::healthkit
