git » swiftpm » main » tree

[main] / Sources / c_snikket / iinclude / snikket / DirectChat.h

// Generated by Haxe 4.3.3
#ifndef INCLUDED_snikket_DirectChat
#define INCLUDED_snikket_DirectChat

#ifndef HXCPP_H
#include <hxcpp.h>
#endif

#ifndef INCLUDED_snikket_Chat
#include <snikket/Chat.h>
#endif
HX_DECLARE_CLASS1(snikket,Chat)
HX_DECLARE_CLASS1(snikket,ChatMessage)
HX_DECLARE_CLASS1(snikket,ChatMessageBuilder)
HX_DECLARE_CLASS1(snikket,Client)
HX_DECLARE_CLASS1(snikket,DirectChat)
HX_DECLARE_CLASS1(snikket,EventEmitter)
HX_DECLARE_CLASS1(snikket,GenericStream)
HX_DECLARE_CLASS1(snikket,Participant)
HX_DECLARE_CLASS1(snikket,Persistence)
HX_DECLARE_CLASS1(snikket,Reaction)
HX_DECLARE_CLASS1(snikket,Stanza)
HX_DECLARE_CLASS2(snikket,_Stanza,NodeInterface)

namespace snikket{


class HXCPP_CLASS_ATTRIBUTES DirectChat_obj : public  ::snikket::Chat_obj
{
	public:
		typedef  ::snikket::Chat_obj super;
		typedef DirectChat_obj OBJ_;
		DirectChat_obj();

	public:
		enum { _hx_ClassId = 0x62c262be };

		void __construct( ::snikket::Client client, ::snikket::GenericStream stream,::Dynamic persistence,::String chatId,::hx::Null< int >  __o_uiState,::hx::Null< bool >  __o_isBlocked, ::snikket::Stanza extensions,::String readUpToId,::String readUpToBy);
		inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="snikket.DirectChat")
			{ 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,"snikket.DirectChat"); }
		static ::hx::ObjectPtr< DirectChat_obj > __new( ::snikket::Client client, ::snikket::GenericStream stream,::Dynamic persistence,::String chatId,::hx::Null< int >  __o_uiState,::hx::Null< bool >  __o_isBlocked, ::snikket::Stanza extensions,::String readUpToId,::String readUpToBy);
		static ::hx::ObjectPtr< DirectChat_obj > __alloc(::hx::Ctx *_hx_ctx, ::snikket::Client client, ::snikket::GenericStream stream,::Dynamic persistence,::String chatId,::hx::Null< int >  __o_uiState,::hx::Null< bool >  __o_isBlocked, ::snikket::Stanza extensions,::String readUpToId,::String readUpToBy);
		static void * _hx_vtable;
		static Dynamic __CreateEmpty();
		static Dynamic __Create(::hx::DynamicArray inArgs);
		//~DirectChat_obj();

		HX_DO_RTTI_ALL;
		::hx::Val __Field(const ::String &inString, ::hx::PropertyAccess inCallProp);
		static void __register();
		bool _hx_isInstanceOf(int inClassId);
		::String __ToString() const { return HX_("DirectChat",c1,22,a3,05); }

		static void __boot();
		static  ::Dynamic __meta__;
		::Array< ::String > getParticipants();

		::Array< ::String > counterparts();
		::Dynamic counterparts_dyn();

		 ::snikket::Participant getParticipantDetails(::String participantId);

		void getMessagesBefore(::String beforeId,::String beforeTime, ::Dynamic handler);

		void getMessagesAfter(::String afterId,::String afterTime, ::Dynamic handler);

		void getMessagesAround(::String aroundId,::String aroundTime, ::Dynamic handler);

		 ::snikket::ChatMessageBuilder prepareIncomingMessage( ::snikket::ChatMessageBuilder message, ::snikket::Stanza stanza);

		 ::snikket::ChatMessageBuilder prepareOutgoingMessage( ::snikket::ChatMessageBuilder message);
		::Dynamic prepareOutgoingMessage_dyn();

		void correctMessage(::String localId, ::snikket::ChatMessageBuilder message);

		void sendMessage( ::snikket::ChatMessageBuilder message);

		void removeReaction( ::snikket::ChatMessage m, ::snikket::Reaction reaction);

		::String lastMessageId();

		void markReadUpTo( ::snikket::ChatMessage message);

		void bookmark();

		void sendChatState(::String state,::String threadId);

		void close();

};

} // end namespace snikket

#endif /* INCLUDED_snikket_DirectChat */