///
/// HybridElectrocardiogramModuleSpec.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 `ElectrocardiogramSample` to properly resolve imports.
namespace margelo::nitro::healthkit { struct ElectrocardiogramSample; }
// Forward declaration of `ECGQueryOptionsWithSortOrder` to properly resolve imports.
namespace margelo::nitro::healthkit { struct ECGQueryOptionsWithSortOrder; }
// Forward declaration of `ElectrocardiogramSamplesWithAnchorResponse` to properly resolve imports.
namespace margelo::nitro::healthkit { struct ElectrocardiogramSamplesWithAnchorResponse; }
// Forward declaration of `ECGQueryOptionsWithAnchor` to properly resolve imports.
namespace margelo::nitro::healthkit { struct ECGQueryOptionsWithAnchor; }

#include "ElectrocardiogramSample.hpp"
#include <vector>
#include <NitroModules/Promise.hpp>
#include "ECGQueryOptionsWithSortOrder.hpp"
#include "ElectrocardiogramSamplesWithAnchorResponse.hpp"
#include "ECGQueryOptionsWithAnchor.hpp"

namespace margelo::nitro::healthkit {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridElectrocardiogramModuleSpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::shared_ptr<Promise<std::vector<ElectrocardiogramSample>>> queryElectrocardiogramSamples(const ECGQueryOptionsWithSortOrder& options) = 0;
      virtual std::shared_ptr<Promise<ElectrocardiogramSamplesWithAnchorResponse>> queryElectrocardiogramSamplesWithAnchor(const ECGQueryOptionsWithAnchor& options) = 0;

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

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

} // namespace margelo::nitro::healthkit
