LeviLamina
Loading...
Searching...
No Matches
Event.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7
8// auto generated forward declare list
9// clang-format off
10class AppPlatform;
11namespace Json { class Value; }
12namespace Social::Events { class CompoundMeasurement; }
13namespace Social::Events { class Measurement; }
14namespace Social::Events { class Property; }
15// clang-format on
16
17namespace Social::Events {
18
19class Event {
20public:
21 // Event inner types define
22 enum class AggregationMode : int {
23 None = 0,
24 Aggregate = 1,
25 AggregateByUniqueProperties = 2,
26 };
27
28public:
29 // member variables
30 // NOLINTBEGIN
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
48 Event& operator=(Event const&);
49 Event();
50
51public:
52 // member functions
53 // NOLINTBEGIN
55
56 MCNAPI Event(
57 uint id,
58 ::std::string const& eventName,
59 ::std::unordered_map<::std::string, ::Social::Events::Property>&& commonProperties,
60 int eventTags
61 );
62
63 MCNAPI Event(
64 uint id,
65 ::std::string const& eventName,
66 ::std::unordered_map<::std::string, ::Social::Events::Property>&& commonProperties,
68 int eventTags
69 );
70
72 ::std::string const& dynamicColumnName,
73 ::Social::Events::CompoundMeasurement&& compoundMeasurement
74 );
75
76 MCNAPI bool _areAllPropertiesEqual(::Social::Events::Event const& other) const;
77
78 MCNAPI bool _areUniquePropertiesEqual(::Social::Events::Event const& other) const;
79
80 MCNAPI void addMeasurement(::Social::Events::Measurement const& measurement);
81
82 MCNAPI void addProperty(::Social::Events::Property const& property, bool isUniqueProperty);
83
84 MCNAPI ::std::optional<::std::reference_wrapper<::Social::Events::Property const>>
85 getProperty(::std::string const& propertyName) const;
86
87#ifdef LL_PLAT_C
88 MCNAPI uint getUserId() const;
89
90 MCNAPI ::Json::Value measurementsAsJsonValue() const;
91
92 MCNAPI bool passesFilter(int tagsToExclude) const;
93
94 MCNAPI ::Json::Value propertiesAsJsonValue() const;
95#endif
96
98
100
101 MCNAPI ~Event();
102 // NOLINTEND
103
104public:
105 // constructor thunks
106 // NOLINTBEGIN
107 MCNAPI void* $ctor(::Social::Events::Event const&);
108
109 MCNAPI void* $ctor(
110 uint id,
111 ::std::string const& eventName,
112 ::std::unordered_map<::std::string, ::Social::Events::Property>&& commonProperties,
113 int eventTags
114 );
115
116 MCNAPI void* $ctor(
117 uint id,
118 ::std::string const& eventName,
119 ::std::unordered_map<::std::string, ::Social::Events::Property>&& commonProperties,
121 int eventTags
122 );
123 // NOLINTEND
124
125public:
126 // destructor thunk
127 // NOLINTBEGIN
128 MCNAPI void $dtor();
129 // NOLINTEND
130};
131
132} // namespace Social::Events
Definition AppPlatform.h:91
Definition NonOwnerPointer.h:9
Definition Value.h:16
Definition CompoundMeasurement.h:17
Definition Event.h:19
MCAPI Event(uint id, ::std::string const &eventName, ::std::unordered_map<::std::string, ::Social::Events::Property > &&commonProperties, ::Bedrock::NonOwnerPointer<::AppPlatform > const &appPlatform, int eventTags)
MCAPI Event(uint id, ::std::string const &eventName, ::std::unordered_map<::std::string, ::Social::Events::Property > &&commonProperties, int eventTags)
MCAPI ::std::optional<::std::reference_wrapper<::Social::Events::Property const > > getProperty(::std::string const &propertyName) const
MCAPI void addMeasurement(::Social::Events::Measurement const &measurement)
MCAPI void _addOrUpdateCompoundMeasurement(::std::string const &dynamicColumnName, ::Social::Events::CompoundMeasurement &&compoundMeasurement)
MCAPI void * $ctor(uint id, ::std::string const &eventName, ::std::unordered_map<::std::string, ::Social::Events::Property > &&commonProperties, int eventTags)
MCAPI void addProperty(::Social::Events::Property const &property, bool isUniqueProperty)
MCAPI Event(::Social::Events::Event const &)
MCAPI bool _areUniquePropertiesEqual(::Social::Events::Event const &other) const
MCAPI void updateMeasurements(::Social::Events::Event const &other)
MCAPI void updateCompoundMeasurements(::Social::Events::Event const &event)
MCAPI void * $ctor(uint id, ::std::string const &eventName, ::std::unordered_map<::std::string, ::Social::Events::Property > &&commonProperties, ::Bedrock::NonOwnerPointer<::AppPlatform > const &appPlatform, int eventTags)
MCAPI bool _areAllPropertiesEqual(::Social::Events::Event const &other) const
MCAPI void * $ctor(::Social::Events::Event const &)
Definition Measurement.h:7
Definition Property.h:7
Definition Alias.h:14