From a8e2cd9b078ee0b44a0396d6c92cc97f00af5268 Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Thu, 4 Feb 2016 16:16:43 -0600 Subject: [android] #2421 - Porting Attributes and relabeling existing as Keys --- .../com/mapbox/mapboxsdk/telemetry/MapboxEvent.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java') diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEvent.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEvent.java index bc154c32e7..c789891328 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEvent.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEvent.java @@ -3,7 +3,6 @@ package com.mapbox.mapboxsdk.telemetry; import java.io.Serializable; public class MapboxEvent implements Serializable { - public static final int VERSION = 1; public static final String MGLMapboxEventsUserAgent = "Sirius/1.0/ANDROID MapboxEventsiOS/1.1"; public static final String MGLMapboxEventsAPIBase = "https://api.tiles.mapbox.com"; @@ -15,7 +14,7 @@ public class MapboxEvent implements Serializable { public static final String MAPBOXEVENT_LOCATION = "location"; public static final String MAPBOXEVENT_VISIT = "visit"; - // Attributes + // Event Keys public static final String MGLEventKeyLatitude = "lat"; public static final String MGLEventKeyLongitude = "lng"; public static final String MGLEventKeySpeed = "speed"; @@ -38,4 +37,20 @@ public class MapboxEvent implements Serializable { public static final String MGLEventGestureRotateStart = "Rotation"; public static final String MGLEventGesturePitchStart = "Pitch"; + // Event Attributes + public static final int VERSION = 1; + public static final String CREATED = "created"; + public static final String INSTANCE = "instance"; + public static final String VENDORID = "vendorId"; + public static final String APPBUNDLEID = "appBundleId"; + public static final String MODEL = "model"; + public static final String OPERATINGSYSTEM= "operatingSystem"; + public static final String ORIENTATION = "orientation"; + public static final String BATTERYLEVEL = "batteryLevel"; + public static final String APPLICATIONSTATE = "applicationState"; + public static final String RESOLUTION = "resolution"; + public static final String ACCESSIBILITYFONTSCALE = "accessibilityFontScale"; + public static final String CARRIER = "carrier"; + public static final String CELLULARNETWORKTYPE = "cellularNetworkType"; + public static final String WIFI = "wifi"; } -- cgit v1.2.1