public bool GetDestEntriesToAdd(ContactSyncProfile syncProfile, ContactsWrapper sourceList, ContactsWrapper destinationList) { throw new NotImplementedException(); }
public bool SyncContact(ContactSyncProfile syncProfile, SyncMetric syncMetric, SyncCallback syncCallback) { throw new NotImplementedException(); }
private void ValidateSettings(Settings result) { if (result.GoogleAccounts == null) { result.GoogleAccounts = new ObservableCollection <GoogleAccount>(); } if (result.CalendarSyncProfiles == null || result.CalendarSyncProfiles.Count == 0) { result.CalendarSyncProfiles = new ObservableCollection <CalendarSyncProfile>() { CalendarSyncProfile.GetDefaultSyncProfile() }; } else { foreach (var syncProfile in result.CalendarSyncProfiles) { syncProfile.SetSourceDestTypes(); if (syncProfile.SyncSettings == null) { syncProfile.SyncSettings = CalendarSyncSettings.GetDefault(); } else if (syncProfile.SyncSettings.SyncRangeType == SyncRangeTypeEnum.SyncEntireCalendar) { syncProfile.SyncSettings.SyncRangeType = SyncRangeTypeEnum.SyncRangeInDays; syncProfile.SyncSettings.DaysInPast = 120; syncProfile.SyncSettings.DaysInFuture = 120; } if (syncProfile.SyncFrequency == null) { syncProfile.SyncFrequency = new IntervalSyncFrequency(); } } } if (result.TaskSyncProfiles == null || result.TaskSyncProfiles.Count == 0) { result.TaskSyncProfiles = new ObservableCollection <TaskSyncProfile>() { TaskSyncProfile.GetDefaultSyncProfile() }; } else { foreach (var syncProfile in result.TaskSyncProfiles) { syncProfile.SetSourceDestTypes(); if (syncProfile.SyncSettings == null) { syncProfile.SyncSettings = TaskSyncSettings.GetDefault(); } if (syncProfile.SyncFrequency == null) { syncProfile.SyncFrequency = new IntervalSyncFrequency(); } } } if (result.ContactSyncProfiles == null || result.ContactSyncProfiles.Count == 0) { result.ContactSyncProfiles = new ObservableCollection <ContactSyncProfile>() { ContactSyncProfile.GetDefaultSyncProfile() }; } if (result.AppSettings == null) { result.AppSettings = AppSettings.GetDefault(); } else if (result.AppSettings.ProxySettings == null) { result.AppSettings.ProxySettings = new ProxySetting { ProxyType = ProxyType.Auto }; } }