///
/// HybridSourceProxySpec.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 `Source` to properly resolve imports.
namespace margelo::nitro::healthkit { struct Source; }

#include <string>
#include "Source.hpp"
#include <optional>

namespace margelo::nitro::healthkit {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridSourceProxySpec() override = default;

    public:
      // Properties
      virtual std::string getBundleIdentifier() = 0;

    public:
      // Methods
      virtual Source toJSON(const std::optional<std::string>& key) = 0;

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

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

} // namespace margelo::nitro::healthkit
