///
/// HybridStateOfMindModuleSpec.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 `StateOfMindSample` to properly resolve imports.
namespace margelo::nitro::healthkit { struct StateOfMindSample; }
// Forward declaration of `QueryOptionsWithSortOrder` to properly resolve imports.
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
// Forward declaration of `StateOfMindSamplesWithAnchorResponse` to properly resolve imports.
namespace margelo::nitro::healthkit { struct StateOfMindSamplesWithAnchorResponse; }
// Forward declaration of `QueryOptionsWithAnchor` to properly resolve imports.
namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
// Forward declaration of `StateOfMindKind` to properly resolve imports.
namespace margelo::nitro::healthkit { enum class StateOfMindKind; }
// Forward declaration of `StateOfMindLabel` to properly resolve imports.
namespace margelo::nitro::healthkit { enum class StateOfMindLabel; }
// Forward declaration of `StateOfMindAssociation` to properly resolve imports.
namespace margelo::nitro::healthkit { enum class StateOfMindAssociation; }

#include "StateOfMindSample.hpp"
#include <vector>
#include <NitroModules/Promise.hpp>
#include "QueryOptionsWithSortOrder.hpp"
#include "StateOfMindSamplesWithAnchorResponse.hpp"
#include "QueryOptionsWithAnchor.hpp"
#include <optional>
#include <chrono>
#include "StateOfMindKind.hpp"
#include "StateOfMindLabel.hpp"
#include "StateOfMindAssociation.hpp"
#include <NitroModules/AnyMap.hpp>

namespace margelo::nitro::healthkit {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridStateOfMindModuleSpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::shared_ptr<Promise<std::vector<StateOfMindSample>>> queryStateOfMindSamples(const QueryOptionsWithSortOrder& options) = 0;
      virtual std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>> queryStateOfMindSamplesWithAnchor(const QueryOptionsWithAnchor& options) = 0;
      virtual std::shared_ptr<Promise<std::optional<StateOfMindSample>>> saveStateOfMindSample(std::chrono::system_clock::time_point date, StateOfMindKind kind, double valence, const std::vector<StateOfMindLabel>& labels, const std::vector<StateOfMindAssociation>& associations, const std::optional<std::shared_ptr<AnyMap>>& metadata) = 0;

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

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

} // namespace margelo::nitro::healthkit
