// Generated by Haxe 4.3.3
#ifndef INCLUDED_thenshim_fallback_FallbackPromise
#define INCLUDED_thenshim_fallback_FallbackPromise
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#ifndef INCLUDED_thenshim_Thenable
#include <thenshim/Thenable.h>
#endif
HX_DECLARE_CLASS1(thenshim,Thenable)
HX_DECLARE_CLASS2(thenshim,fallback,FallbackPromise)
HX_DECLARE_CLASS2(thenshim,fallback,HandlerSession)
HX_DECLARE_CLASS2(thenshim,fallback,PromiseState)
HX_DECLARE_CLASS2(thenshim,fallback,TaskScheduler)
namespace thenshim{
namespace fallback{
class HXCPP_CLASS_ATTRIBUTES FallbackPromise_obj : public ::hx::Object
{
public:
typedef ::hx::Object super;
typedef FallbackPromise_obj OBJ_;
FallbackPromise_obj();
public:
enum { _hx_ClassId = 0x6da4d981 };
void __construct( ::thenshim::fallback::TaskScheduler scheduler);
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="thenshim.fallback.FallbackPromise")
{ return ::hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return ::hx::Object::operator new(inSize+extra,true,"thenshim.fallback.FallbackPromise"); }
static ::hx::ObjectPtr< FallbackPromise_obj > __new( ::thenshim::fallback::TaskScheduler scheduler);
static ::hx::ObjectPtr< FallbackPromise_obj > __alloc(::hx::Ctx *_hx_ctx, ::thenshim::fallback::TaskScheduler scheduler);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(::hx::DynamicArray inArgs);
//~FallbackPromise_obj();
HX_DO_RTTI_ALL;
::hx::Val __Field(const ::String &inString, ::hx::PropertyAccess inCallProp);
::hx::Val __SetField(const ::String &inString,const ::hx::Val &inValue, ::hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
bool _hx_isInstanceOf(int inClassId);
void *_hx_getInterface(int inHash);
::String __ToString() const { return HX_("FallbackPromise",79,35,7a,1c); }
::thenshim::fallback::TaskScheduler scheduler;
::thenshim::fallback::PromiseState state;
::Dynamic value;
::Dynamic reason;
::Array< ::Dynamic> sessions;
::Dynamic then( ::Dynamic onFulfilled, ::Dynamic onRejected);
::Dynamic then_dyn();
::thenshim::fallback::FallbackPromise thenImpl( ::Dynamic onFulfilled, ::Dynamic onRejected);
::Dynamic thenImpl_dyn();
void resolve( ::Dynamic value);
::Dynamic resolve_dyn();
void reject( ::Dynamic reason);
::Dynamic reject_dyn();
};
} // end namespace thenshim
} // end namespace fallback
#endif /* INCLUDED_thenshim_fallback_FallbackPromise */