use of com.vodafone360.people.database.tables.ActivitiesTable.TimelineSummaryItem in project 360-Engine-for-Android by 360.
the class DatabaseHelper method addTimelineEvents.
/***
* Add timeline events to the database.
*
* @param syncItemList The list of items to be added
* @param isCallLog true if the list has come from the call-log, false
* otherwise
* @return SUCCESS or a suitable error code
* @see #deleteActivities(Integer)
* @see #fetchActivitiesIds(List, Long)
*/
public ServiceStatus addTimelineEvents(ArrayList<TimelineSummaryItem> syncItemList, boolean isCallLog) {
if (Settings.ENABLED_DATABASE_TRACE)
trace(false, "DatabaseHelper.addTimelineEvents() isCallLog[" + isCallLog + "]");
SQLiteDatabase writableDb = getWritableDatabase();
ServiceStatus status = ActivitiesTable.addTimelineEvents(syncItemList, isCallLog, writableDb);
if (ServiceStatus.SUCCESS == status) {
fireDatabaseChangedEvent(DatabaseChangeType.ACTIVITIES, true);
}
return status;
}
Aggregations