public static void logEvent(XEvent xEvent) { Debug.Log(xEvent.getXProperties().identifyMap.Count); Debug.Log("logEvent"); string xProperties = getXProperties(xEvent.getXProperties()); CallLogEvent(xEvent.getEventName(), xProperties); }
public static string xEventObjectToDictionary(XEvent xEvent) { Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary.Add("evtname", xEvent.getEventName()); dictionary.Add("properties", getXProperties(xEvent.getXProperties())); string json = Serializer.Serialize(dictionary); Debug.Log("xEvent json string : " + json); return(json); }