git » swiftpm » main » tree

[main] / Sources / c_borogove / iinclude / borogove / DirectChat.h

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

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

#ifndef INCLUDED_borogove_Chat
#include <borogove/Chat.h>
#endif
HX_DECLARE_CLASS1(borogove,Chat)
HX_DECLARE_CLASS1(borogove,ChatMessage)
HX_DECLARE_CLASS1(borogove,ChatMessageBuilder)
HX_DECLARE_CLASS1(borogove,Client)
HX_DECLARE_CLASS1(borogove,DirectChat)
HX_DECLARE_CLASS1(borogove,EventEmitter)
HX_DECLARE_CLASS1(borogove,GenericStream)
HX_DECLARE_CLASS1(borogove,OutboxItem)
HX_DECLARE_CLASS1(borogove,Participant)
HX_DECLARE_CLASS1(borogove,Persistence)
HX_DECLARE_CLASS1(borogove,Reaction)
HX_DECLARE_CLASS1(borogove,Stanza)
HX_DECLARE_CLASS1(thenshim,Thenable)

namespace borogove{


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

	public:
		enum { _hx_ClassId = 0x31b454e2 };

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

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

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

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

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

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

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

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

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

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

		void sendMessageStanza( ::borogove::Stanza stanza, ::borogove::OutboxItem outboxItem);

		::String lastMessageId();

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

		void bookmark();

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

		void close();

};

} // end namespace borogove

#endif /* INCLUDED_borogove_DirectChat */