public IEnumerable <IDecryptFile> CostcoReadFilesConfirm(IAppSettingsService appSettings) { FileInfo[] decryptedFiles = this.CostcoDecryptFilesConfirm(appSettings); FileInfo[] encryptedFiles = this.CostcoEncryptFilesConfirm(appSettings); IEnumerable <IDecryptFile> files = DecryptFile.FilesFromFileInfos(decryptedFiles, encryptedFiles); return(files); }
public HttpResponseMessage FA(string id) { FileInfo decryptedFile = fileSrvc.CostcoDecryptFileFA(id.Trim(), appSettings); FileInfo encryptedFile = null; if (decryptedFile.Exists) { encryptedFile = gnuPG.EncryptCostcoFAFile(decryptedFile.FullName, appSettings); }; DecryptFile decryptModel = new DecryptFile(decryptedFile, encryptedFile); return Request.CreateResponse(HttpStatusCode.OK, decryptModel); }
public HttpResponseMessage Orders(string id) { FileInfo encryptedFile = chFtp.DownloadCostoOrder(id, appSettings); FileInfo decryptedFile = null; if (encryptedFile.Exists) { decryptedFile = gnuPG.DecryptCostcoOrderFile(encryptedFile.FullName, appSettings); }; DecryptFile decryptModel = new DecryptFile(decryptedFile, encryptedFile); return Request.CreateResponse(HttpStatusCode.OK, decryptModel); //return Request.CreateResponse(HttpStatusCode.OK, new { order = "123" }); }
public override bool Equals(object other) { DecryptFile t = other as DecryptFile; return((t != null) ? ID.Equals(t.ID) : false); }