public BackupBaseFileSystem(BackupProfileData profile) { m_Profile = profile; m_IStorage = profile.GetStorageInterface(); m_Logger = profile.Logger; m_BackupSessionHistory = new BackupSessionHistory(profile.GetStorageInterface()); }
internal static String TestPlatforms() { IStorageInterface si = DependencyService.Get <IStorageInterface>(); if (si != null) { return(si.TestPlatforms("DOES THIS WORK?")); } return("SORRY, This didn't work at all"); }
internal async static Task <byte[]> ReadBytesAsync(string path) { IStorageInterface si = DependencyService.Get <IStorageInterface>(); if (si != null) { return(await si.ReadBytesAsync(path)); } return("SORRY, This didn't work at all".ToByteArray()); }
internal async static Task <string> ReadStringAsync(string path) { IStorageInterface si = DependencyService.Get <IStorageInterface>(); if (si != null) { return(await si.ReadStringAsync(path)); } return("SORRY, This didn't work at all"); }
public BackupBase(BackupProfileData profile, GenericStatusBarView progressBar) : base(profile) { m_TimeStamp = DateTime.Now; m_Profile = profile; m_IStorage = profile.GetStorageInterface(); m_Logger = profile.Logger; m_SourceBackupPathList = profile.BackupFolderList.ToList();//.Where(i => i.IsAvailable).ToList(); m_TargetBackupPath = profile.GetTargetBackupFolder(); m_ProgressBar = progressBar; }
internal async static Task <bool> WriteStringPickLocationAsync(string content, string name) { IStorageInterface si = DependencyService.Get <IStorageInterface>(); if (si != null) { await si.WriteStringPickLocationAsync(content, name); return(true); } return(false); }
internal async static Task <bool> DeleteFile(string path) { IStorageInterface si = DependencyService.Get <IStorageInterface>(); if (si != null) { await si.DeleteFile(path); return(true); } return(false); }
internal async static Task <bool> ShareFileString(string content, string name) { IStorageInterface si = DependencyService.Get <IStorageInterface>(); if (si != null) { await si.ShareFileString(content, name); return(true); } return(false); }
internal async static Task <bool> WriteStringAsync(string path, string content) { IStorageInterface si = DependencyService.Get <IStorageInterface>(); if (si != null) { await si.WriteStringAsync(path, content); return(true); } //return "SORRY, This didn't work at all"; return(false); }
public BackupItemsTreeBase() { m_IStorage = ProjectData.CurrentBackupProfile.GetStorageInterface(); }
public FavouritesManager(PlatformSpecificHandler platformHandler) { this.storage = platformHandler.StorageInterface; this.fileReader = platformHandler.FileReader; favourites = this.GetStoredString(); }
public BackupSessionHistory(IStorageInterface storage) { m_Storage = storage; }