private void init(String eventType, String eventEvent, JSONObject eventPayload) { this.eventType = eventType; this.eventEvent = eventEvent; this.eventTimestamp = getTimestamp(); this.eventMid = TiPlatformHelper.getMobileId(); this.eventSid = TiPlatformHelper.getSessionId(); this.eventAppGuid = TiPlatformHelper.getAppInfo().getGUID(); this.eventPayload = eventPayload.toString(); this.expandPayload = true; }
@Kroll.getProperty @Kroll.method public String getId() { return TiPlatformHelper.getMobileId(); }