microsoft / cpp_client_telemetry

1DS C++ SDK
Apache License 2.0
85 stars 48 forks source link

How does the SDK send array types? #1247

Closed theta3 closed 1 month ago

theta3 commented 2 months ago

For example, I can see lib\android_build\maesdk\src\main\java\com\microsoft\applications\events\EventPropertyStringArrayValue.java, and on the cpp side, lib\jni\JniConvertors.cpp supports EventProperty::TYPE_STRING_ARRAY in EventProperty GetEventProperty(JNIEnv* env, const jobject& jEventProperty). However, I don't understand how void Logger::LogEvent(EventProperties const& properties) works in lib\api\Logger.cpp?

How does the properties variable interact with ::CsProtocol::Record record; and where are array types serialized to be sent to the server?