Beispiel #1
0
        public bool BackupToGoogleDrive(Dictionary <ContentType, LinkedList <KidsNoteContent> > newContents)
        {
            if (TheUploader == null)
            {
                TheUploader = new Uploader(GoogleApiCredentialPath(), GoogleApiTokenFilePath(), TheConfiguration.ChildName);
                TheUploader.GetBaseFolderId = this.GetBaseFolderId;
                TheUploader.SetBaseFolderId = this.SetBaseFolderId;
                TheUploader.UploadProgress  = this.UploadProgress;
                TheUploader.Startup();
            }

            return(TheUploader.Backup(newContents, TheConfiguration.EncryptUpload));
        }