Esempio n. 1
0
        /// <summary>
        /// Saves the exported items as a csv file, encrypts it as zip file
        /// </summary>
        /// <param name="lstItems"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        private bool ArchiveVault(List <ExportItem> lstItems)
        {
            bool   retVal     = false;
            string outputName = string.Format("Bitwarden_ExportBackup_{0:yyyy-MM-dd_HH-mm-ss}.zip",
                                              DateTime.Now);

            IOutputMethod exporter = OutputMethodSelector.GetOutputMethod(outputName);

            if (exporter != null)
            {
                retVal = exporter.Archive(lstItems);
            }

            return(retVal);
        }
Esempio n. 2
0
 internal Engine(IPerformanceDatabase db, IInputMethod inputMethod, IOutputMethod outputMethod)
 {
     this.InputMethod = inputMethod;
     this.OutputMethod = outputMethod;
     this.DataBase = db;
 }
Esempio n. 3
0
 public ViberObserver(IOutputMethod outputMethod, Scraper scraper)
 {
     _outputMethod = outputMethod;
 }