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/IAsyncResult.h"
7#include "mc/events/AggregationEventListener.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Bedrock::Http { class Response; }
12namespace Core { class Path; }
13namespace Json { class Value; }
14namespace Social::Events { class Event; }
15// clang-format on
16
17namespace Social::Events {
18
20public:
21 // member variables
22 // NOLINTBEGIN
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 // vIndex: 0
47 virtual ~OneDSEditorEventListener() /*override*/;
48
49 // vIndex: 5
50 virtual void sendEvent(::Social::Events::Event const& event) /*override*/;
51
52 // vIndex: 3
53 virtual int getEventTagsFilter() const /*override*/;
54
55 // vIndex: 6
56 virtual void _flushEventQueue() /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI void AddPartA(::std::string const& eventName, ::Json::Value& eventBody, int64 eventTimestamp);
63
64 MCAPI void AddPartC(::Social::Events::Event const& event, ::Json::Value& eventBody);
65
66 MCAPI ::std::string BuildCommonSchemaMsg(::Social::Events::Event const& event);
67
68 MCAPI explicit OneDSEditorEventListener(::Core::Path logFileName);
69
70 MCAPI ::std::vector<::std::string> _buildEventPayloads(
71 ::std::vector<::Social::Events::Event> events,
72 ::std::function<void(::std::string const&, ::std::string const&)> onEventSerialized
73 );
74
75 MCAPI void
76 _handleAsyncResponse(::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::Bedrock::Http::Response>> asyncResponse
77 );
78
79 MCAPI bool _sendBatch();
80
81 MCAPI void _sendEvents(::std::string const& eventPayload, ::std::string const& endpoint);
82 // NOLINTEND
83
84public:
85 // static variables
86 // NOLINTBEGIN
87 MCAPI static ::std::string const& ENDPOINT_IDENTIFIER();
88
89 MCAPI static ::std::string const& EVENT_NAMESPACE();
90
91 MCAPI static ::std::string const& ONEDS_URL();
92
93 MCAPI static ::std::string const& PARTA_IDENTIFIER();
94 // NOLINTEND
95
96public:
97 // constructor thunks
98 // NOLINTBEGIN
99 MCAPI void* $ctor(::Core::Path logFileName);
100 // NOLINTEND
101
102public:
103 // destructor thunk
104 // NOLINTBEGIN
105 MCAPI void $dtor();
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCAPI void $sendEvent(::Social::Events::Event const& event);
112
113 MCFOLD int $getEventTagsFilter() const;
114
115 MCAPI void $_flushEventQueue();
116 // NOLINTEND
117
118public:
119 // vftables
120 // NOLINTBEGIN
121 MCAPI static void** $vftable();
122 // NOLINTEND
123};
124
125} // namespace Social::Events
Definition IAsyncResult.h:8
Definition Path.h:15
Definition Value.h:16
Definition Path.h:16
Definition AggregationEventListener.h:18
Definition Event.h:17
Definition OneDSEditorEventListener.h:19
Definition Alias.h:14