public static void Send(ApiAnalyticEvent.EventType eventType, string detail, Vector3?location = null, System.Action <bool> completeCallback = null) { ApiAnalyticEvent.EventInfo[] eventInfoArray = new ApiAnalyticEvent.EventInfo[1]; int index = 0; ApiAnalyticEvent.EventInfo eventInfo1 = new ApiAnalyticEvent.EventInfo(); eventInfo1.eventType = eventType; eventInfo1.location = location; ApiAnalyticEvent.EventInfo eventInfo2 = eventInfo1; Dictionary <string, object> dictionary; if (!string.IsNullOrEmpty(detail)) { dictionary = new Dictionary <string, object>() { { "parameter", (object)detail } } } ; else { dictionary = new Dictionary <string, object>(); } eventInfo2.parameters = dictionary; eventInfo1.completeCallback = completeCallback; ApiAnalyticEvent.EventInfo eventInfo3 = eventInfo1; eventInfoArray[index] = eventInfo3; Analytics.Send((IEnumerable <ApiAnalyticEvent.EventInfo>)eventInfoArray); }
public static void Send(ApiAnalyticEvent.EventType eventType, Dictionary <string, object> details, Vector3?location = null, System.Action <bool> completeCallback = null) { Analytics.Send((IEnumerable <ApiAnalyticEvent.EventInfo>) new ApiAnalyticEvent.EventInfo[1] { new ApiAnalyticEvent.EventInfo() { eventType = eventType, location = location, parameters = details, completeCallback = completeCallback } }); }
public static void Send(ApiAnalyticEvent.EventType type) { Analytics.Send(type, (string)null, new Vector3?(), (System.Action <bool>)null); }