public Map<String, EventRecord> migrateInteractions() throws JSONException { return migrateRecords(true); }
private void migrateEventData() { EventData eventData = conversation.getEventData(); String codePointString = prefs.getString(Constants.PREF_KEY_CODE_POINT_STORE, null); try { CodePointStore codePointStore = new CodePointStore(codePointString); Map<String, EventRecord> migratedEvents = codePointStore.migrateCodePoints(); Map<String, EventRecord> migratedInteractions = codePointStore.migrateInteractions(); if (migratedEvents != null) { eventData.setEvents(migratedEvents); } if (migratedInteractions != null) { eventData.setInteractions(migratedInteractions); } } catch (Exception e) { ApptentiveLog.w(CONVERSATION, e, "Error migrating Event Data."); logException(e); } }
public Map<String, EventRecord> migrateCodePoints() throws JSONException { return migrateRecords(false); }