@dynatrace/react-native-plugin
Version:
This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.
23 lines (22 loc) • 803 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const SendEventValidation_1 = require("./modifier/SendEventValidation");
const EventModifierUtil_1 = require("./modifier/EventModifierUtil");
class SessionPropertyEventData {
constructor() {
this.rawSessionProperties = {};
}
addSessionProperty(key, value) {
this.rawSessionProperties[key] = value;
return this;
}
toJSON() {
const event = SendEventValidation_1.SendSessionPropertyEventValidation.modifyEvent(this.rawSessionProperties);
if (event != null) {
event["characteristics.has_session_properties"] = true;
}
(0, EventModifierUtil_1.addIsApiReported)(event);
return event;
}
}
exports.default = SessionPropertyEventData;