Пример #1
0
        public override void StartSync(IRemoteStorageSyncPersistance data, List <INote> localnotes, List <INote> localdeletednotes)
        {
            _data = (NextcloudData)data;

            using (var web = CreateAuthenticatedClient())
            {
                remoteNotes = NextcloudAPI.ListNotes(web);

                _logger.Debug(NextcloudPlugin.Name, string.Format("NextcloudAPI.ListNotes returned {0} elements", remoteNotes.Count));
            }
        }
Пример #2
0
 public override void FinishSync(out bool immediateResync)
 {
     _data           = null;
     remoteNotes     = null;
     immediateResync = false;
 }
Пример #3
0
 public override void FinishSync()
 {
     _data       = null;
     remoteNotes = null;
 }