public void CopyAsync(String copyRef, String downloadPath) { this.client.CopyFromCopyRefAsync(copyRef, downloadPath, (response) => { }, (error) => { PreKeyring.SharingFile_Delete(copyRef); SecuruStikMessageQueue.SendMessage_Download_Failed(); } ); }
private void Download(String fullPath) { Byte[] siBytes = File.ReadAllBytes(fullPath); SecuruStik.Protocal.SharingInfo si = SerializeHelper.DeSerialize(siBytes) as SecuruStik.Protocal.SharingInfo; if (si != null) { this.DropBoxUser.DownloadSharingFile(si); Notify_Download_Begin(si.FileName, si.ID_TO); } else { SecuruStikMessageQueue.SendMessage_Download_Failed(); } }