// This file was generated by generate-classes.
// DO NOT EDIT THIS FILE!
#pragma once

#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>
#include <CesiumJsonReader/IntegerJsonHandler.h>
#include <CesiumQuantizedMeshTerrain/AvailabilityRectangle.h>

namespace CesiumJsonReader {
class JsonReaderOptions;
}

namespace CesiumQuantizedMeshTerrain {
class AvailabilityRectangleJsonHandler
    : public CesiumJsonReader::ExtensibleObjectJsonHandler {
public:
  using ValueType = CesiumQuantizedMeshTerrain::AvailabilityRectangle;

  AvailabilityRectangleJsonHandler(
      const CesiumJsonReader::JsonReaderOptions& options) noexcept;
  void reset(
      IJsonHandler* pParentHandler,
      CesiumQuantizedMeshTerrain::AvailabilityRectangle* pObject);

  virtual IJsonHandler* readObjectKey(const std::string_view& str) override;

protected:
  IJsonHandler* readObjectKeyAvailabilityRectangle(
      const std::string& objectType,
      const std::string_view& str,
      CesiumQuantizedMeshTerrain::AvailabilityRectangle& o);

private:
  CesiumQuantizedMeshTerrain::AvailabilityRectangle* _pObject = nullptr;
  CesiumJsonReader::IntegerJsonHandler<int64_t> _startX;
  CesiumJsonReader::IntegerJsonHandler<int64_t> _startY;
  CesiumJsonReader::IntegerJsonHandler<int64_t> _endX;
  CesiumJsonReader::IntegerJsonHandler<int64_t> _endY;
};
} // namespace CesiumQuantizedMeshTerrain
