LeviLamina
Loading...
Searching...
No Matches
OneDSEventListener.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
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 OneDSEventListener& operator=(OneDSEventListener const&);
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 // vIndex: 0
49 virtual ~OneDSEventListener() /*override*/;
50
51 // vIndex: 5
52 virtual void sendEvent(::Social::Events::Event const& event) /*override*/;
53
54 // vIndex: 3
55 virtual int getEventTagsFilter() const /*override*/;
56
57 // vIndex: 7
58 virtual bool _checkAgainstEventAllowlist(::Social::Events::Event const& event) const /*override*/;
59
60 // vIndex: 6
61 virtual void _flushEventQueue() /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI void
68 AddPartA(::std::string const& eventName, ::Json::Value& eventBody, int64 eventTimestamp, bool isSafetyEvent);
69
70 MCAPI void AddPartC(::Social::Events::Event const& event, ::Json::Value& eventBody);
71
72 MCAPI ::std::string BuildCommonSchemaMsg(::Social::Events::Event const& event);
73
74 MCAPI explicit OneDSEventListener(::Core::Path logFileName);
75
76 MCAPI ::std::vector<::std::string> _buildEventPayloads(
77 ::std::vector<::Social::Events::Event> events,
78 ::std::function<void(::std::string const&, ::std::string const&)> onEventSerialized
79 );
80
81 MCAPI void
82 _handleAsyncResponse(::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::Bedrock::Http::Response>> asyncResponse
83 );
84
85 MCAPI bool _sendBatch();
86
87 MCAPI void _sendEvents(::std::string const& eventPayload, ::std::string const& endpoint);
88 // NOLINTEND
89
90public:
91 // static variables
92 // NOLINTBEGIN
93 MCAPI static ::std::string const& ENDPOINT_IDENTIFIER();
94
95 MCAPI static ::std::string const& ONEDS_URL();
96
97 MCAPI static ::std::string const& PARTA_IDENTIFIER();
98
99 MCAPI static ::std::string const& SAFETY_ENDPOINT_IDENTIFIER();
100
101 MCAPI static ::std::string const& SAFETY_PARTA_IDENTIFIER();
102 // NOLINTEND
103
104public:
105 // constructor thunks
106 // NOLINTBEGIN
107 MCAPI void* $ctor(::Core::Path logFileName);
108 // NOLINTEND
109
110public:
111 // destructor thunk
112 // NOLINTBEGIN
113 MCAPI void $dtor();
114 // NOLINTEND
115
116public:
117 // virtual function thunks
118 // NOLINTBEGIN
119 MCAPI void $sendEvent(::Social::Events::Event const& event);
120
121 MCFOLD int $getEventTagsFilter() const;
122
123 MCAPI bool $_checkAgainstEventAllowlist(::Social::Events::Event const& event) const;
124
125 MCAPI void $_flushEventQueue();
126 // NOLINTEND
127
128public:
129 // vftables
130 // NOLINTBEGIN
131 MCAPI static void** $vftable();
132 // NOLINTEND
133};
134
135} // 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 OneDSEventListener.h:19
Definition Alias.h:14