LeviLamina
Loading...
Searching...
No Matches
OneDSEditorEventListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/Async.h"
7#include "mc/events/AggregationEventListener.h"
8#include "mc/platform/brstd/flat_map.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Bedrock::Http { class Response; }
13namespace Core { class Path; }
14namespace Json { class Value; }
15namespace Social::Events { class Event; }
16namespace Social::Events { class Property; }
17// clang-format on
18
19namespace Social::Events {
20
21class OneDSEditorEventListener : public ::Social::Events::AggregationEventListener {
22public:
23 // member variables
24 // NOLINTBEGIN
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 OneDSEditorEventListener& operator=(OneDSEditorEventListener const&);
42 OneDSEditorEventListener(OneDSEditorEventListener const&);
43 OneDSEditorEventListener();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~OneDSEditorEventListener() /*override*/;
49
50 virtual void sendEvent(::Social::Events::Event const& event) /*override*/;
51
52 virtual int getEventTagsFilter() const /*override*/;
53
54 virtual void _flushEventQueue() /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCNAPI void AddPartA(::std::string const& eventName, ::Json::Value& eventBody, int64 eventTimestamp);
61
62 MCNAPI void AddPartC(::Social::Events::Event const& event, ::Json::Value& eventBody);
63
64 MCNAPI ::std::string BuildCommonSchemaMsg(::Social::Events::Event const& event);
65
66 MCNAPI explicit OneDSEditorEventListener(::Core::Path logFileName);
67
69 ::Json::Value& properties,
71 ::std::string,
72 ::std::vector<::Social::Events::Property>,
73 ::std::less<::std::string>,
74 ::std::vector<::std::string>,
75 ::std::vector<::std::vector<::Social::Events::Property>>> const& dynamicProperties
76 );
77
78 MCNAPI ::std::vector<::std::string> _buildEventPayloads(
79 ::std::vector<::Social::Events::Event> events,
80 ::std::function<void(::std::string const&, ::std::string const&)> onEventSerialized
81 );
82
84
85 MCNAPI bool _sendBatch();
86
87 MCNAPI void _sendEvents(::std::string const& eventPayload, ::std::string const& endpoint);
88 // NOLINTEND
89
90public:
91 // static variables
92 // NOLINTBEGIN
93 MCNAPI static ::std::string const& ENDPOINT_IDENTIFIER();
94
95 MCNAPI static ::std::string const& EVENT_NAMESPACE();
96
97 MCNAPI static ::std::string const& ONEDS_URL();
98
99 MCNAPI static ::std::string const& PARTA_IDENTIFIER();
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCNAPI void* $ctor(::Core::Path logFileName);
106 // NOLINTEND
107
108public:
109 // destructor thunk
110 // NOLINTBEGIN
111 MCNAPI void $dtor();
112 // NOLINTEND
113
114public:
115 // virtual function thunks
116 // NOLINTBEGIN
117 MCNAPI void $sendEvent(::Social::Events::Event const& event);
118
119 MCNAPI int $getEventTagsFilter() const;
120
121 MCNAPI void $_flushEventQueue();
122
123
124 // NOLINTEND
125
126public:
127 // vftables
128 // NOLINTBEGIN
129 MCNAPI static void** $vftable();
130 // NOLINTEND
131};
132
133} // namespace Social::Events
Definition Response.h:13
Definition Async.h:8
Definition Path.h:10
Definition Value.h:16
Definition AggregationEventListener.h:18
Definition Event.h:18
MCAPI::std::string BuildCommonSchemaMsg(::Social::Events::Event const &event)
MCAPI void AddPartC(::Social::Events::Event const &event, ::Json::Value &eventBody)
static MCAPI ::std::string const & ONEDS_URL()
MCAPI ::std::vector<::std::string > _buildEventPayloads(::std::vector<::Social::Events::Event > events, ::std::function< void(::std::string const &, ::std::string const &)> onEventSerialized)
static MCAPI ::std::string const & ENDPOINT_IDENTIFIER()
MCAPI void _handleAsyncResponse(::Bedrock::Threading::Async<::Bedrock::Http::Response > asyncResponse)
MCAPI void _sendEvents(::std::string const &eventPayload, ::std::string const &endpoint)
static MCAPI ::std::string const & PARTA_IDENTIFIER()
MCAPI void _addDynamicPropertiesFromEvent(::Json::Value &properties, ::brstd::flat_map< ::std::string, ::std::vector<::Social::Events::Property >, ::std::less<::std::string >, ::std::vector<::std::string >, ::std::vector<::std::vector<::Social::Events::Property > > > const &dynamicProperties)
MCAPI void * $ctor(::Core::Path logFileName)
MCAPI void $sendEvent(::Social::Events::Event const &event)
MCAPI OneDSEditorEventListener(::Core::Path logFileName)
MCAPI void AddPartA(::std::string const &eventName, ::Json::Value &eventBody, int64 eventTimestamp)
static MCAPI ::std::string const & EVENT_NAMESPACE()
Definition Property.h:7
Definition flat_map.h:8
Definition Alias.h:14