LeviLamina
Loading...
Searching...
No Matches
Event.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Json { class Value; }
8namespace Social::Events { class Measurement; }
9namespace Social::Events { class Property; }
10// clang-format on
11
12namespace Social::Events {
13
14class Event {
15public:
16 // Event inner types define
17 enum class AggregationMode : int {
18 None = 0,
19 Aggregate = 1,
20 AggregateByUniqueProperties = 2,
21 };
22
23public:
24 // member variables
25 // NOLINTBEGIN
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 Event& operator=(Event const&);
44 Event(Event const&);
45 Event();
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCNAPI Event(
51 uint id,
52 ::std::string const& eventName,
53 ::std::unordered_map<::std::string, ::Social::Events::Property>&& commonProperties,
54 int eventTags
55 );
56
57 MCNAPI bool _areUniquePropertiesEqual(::Social::Events::Event const& other) const;
58
59 MCNAPI void addMeasurement(::Social::Events::Measurement const& measurement);
60
61 MCNAPI void addProperty(::Social::Events::Property const& property, bool isUniqueProperty);
62
63#ifdef LL_PLAT_C
64 MCNAPI ::Json::Value measurementsAsJsonValue() const;
65
66 MCNAPI ::Json::Value propertiesAsJsonValue() const;
67
68 MCNAPI ~Event();
69#endif
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCNAPI void* $ctor(
76 uint id,
77 ::std::string const& eventName,
78 ::std::unordered_map<::std::string, ::Social::Events::Property>&& commonProperties,
79 int eventTags
80 );
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86#ifdef LL_PLAT_C
87 MCNAPI void $dtor();
88#endif
89 // NOLINTEND
90};
91
92} // namespace Social::Events
Definition Value.h:16
Definition Event.h:14
MCAPI Event(uint id, ::std::string const &eventName, ::std::unordered_map<::std::string, ::Social::Events::Property > &&commonProperties, int eventTags)
MCAPI void addMeasurement(::Social::Events::Measurement const &measurement)
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 bool _areUniquePropertiesEqual(::Social::Events::Event const &other) const
Definition Measurement.h:7
Definition Property.h:7
Definition Alias.h:14