// Generated by Haxe 4.3.3
#ifndef INCLUDED_borogove_Channel
#define INCLUDED_borogove_Channel
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#ifndef INCLUDED_borogove_Chat
#include <borogove/Chat.h>
#endif
HX_DECLARE_CLASS1(borogove,Caps)
HX_DECLARE_CLASS1(borogove,Channel)
HX_DECLARE_CLASS1(borogove,Chat)
HX_DECLARE_CLASS1(borogove,ChatMessage)
HX_DECLARE_CLASS1(borogove,ChatMessageBuilder)
HX_DECLARE_CLASS1(borogove,Client)
HX_DECLARE_CLASS1(borogove,EventEmitter)
HX_DECLARE_CLASS1(borogove,GenericStream)
HX_DECLARE_CLASS1(borogove,JID)
HX_DECLARE_CLASS1(borogove,MessageSync)
HX_DECLARE_CLASS1(borogove,OutboxItem)
HX_DECLARE_CLASS1(borogove,Participant)
HX_DECLARE_CLASS1(borogove,Persistence)
HX_DECLARE_CLASS1(borogove,Presence)
HX_DECLARE_CLASS1(borogove,Reaction)
HX_DECLARE_CLASS1(borogove,Stanza)
HX_DECLARE_CLASS1(thenshim,Thenable)
namespace borogove{
class HXCPP_CLASS_ATTRIBUTES Channel_obj : public ::borogove::Chat_obj
{
public:
typedef ::borogove::Chat_obj super;
typedef Channel_obj OBJ_;
Channel_obj();
public:
enum { _hx_ClassId = 0x7f70c446 };
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, ::borogove::Caps disco);
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="borogove.Channel")
{ 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.Channel"); }
static ::hx::ObjectPtr< Channel_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, ::borogove::Caps disco);
static ::hx::ObjectPtr< Channel_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, ::borogove::Caps disco);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(::hx::DynamicArray inArgs);
//~Channel_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);
::String __ToString() const { return HX_("Channel",a3,28,23,9a); }
static void __boot();
static ::Dynamic __meta__;
::borogove::Caps disco;
bool inSync;
::borogove::MessageSync sync;
bool forceLive;
::String _nickInUse;
void selfPing(bool refresh);
::Dynamic selfPing_dyn();
void join();
::Dynamic join_dyn();
void selfPingSuccess();
::Dynamic selfPingSuccess_dyn();
::String getDisplayName();
::String description();
::Dynamic description_dyn();
::borogove::Stanza info();
::Dynamic info_dyn();
void invite( ::borogove::Chat chat,::String threadId);
bool canInvite();
bool canSend();
::Dynamic getCaps();
void setPresence(::String resource, ::borogove::Presence presence);
void doSync(::String lastId);
::Dynamic doSync_dyn();
void setTrusted(bool trusted);
bool isTrusted();
bool isPrivate();
::Dynamic isPrivate_dyn();
void setupNotifications();
::Dynamic setupNotifications_dyn();
void refreshDisco( ::Dynamic callback);
::Dynamic refreshDisco_dyn();
::String preview();
bool livePresence();
bool syncing();
bool canAudioCall();
bool canVideoCall();
::String nickInUse();
::Dynamic nickInUse_dyn();
::borogove::JID getFullJid();
::Dynamic getFullJid_dyn();
::Array< ::String > getParticipants();
::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_Channel */