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