/// <summary> /// Returns have not yet synchronized items added since the last synchronization. /// </summary> /// <param name="context">Synchronization context.</param> public override IEnumerable <LocalItem> CollectNewItems(SyncContext context) { SyncItemSchema primarySchema = SyncItemSchemaCollection.First(schema => schema.PrimaryEntityConfig.Order == 0); return(GetNotSyncedActivities(context, primarySchema)); }
/// <summary> /// <see cref="RemoteProvider.CollectNewItems"/> /// </summary> public override IEnumerable <LocalItem> CollectNewItems(SyncContext context) { if (!UserSettings.ExportContacts) { return(new List <LocalItem>()); } SyncItemSchema primarySchema = SyncItemSchemaCollection.First(schema => schema.PrimaryEntityConfig.Order == 0); return(GetNotSyncedContacts(context, primarySchema)); }