Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2F3B9D0C for ; Tue, 1 May 2012 20:54:56 +0000 (UTC) Received: (qmail 18491 invoked by uid 500); 1 May 2012 20:54:56 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 18450 invoked by uid 500); 1 May 2012 20:54:56 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 18428 invoked by uid 99); 1 May 2012 20:54:56 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 20:54:56 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 41616134CD; Tue, 1 May 2012 20:54:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [2/6] wp7 commit: filetransfer download returns FileEntry on success Message-Id: <20120501205456.41616134CD@tyr.zones.apache.org> Date: Tue, 1 May 2012 20:54:56 +0000 (UTC) filetransfer download returns FileEntry on success Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/605a4621 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/605a4621 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/605a4621 Branch: refs/heads/master Commit: 605a462155c92cf93b03dc3d06fa7c8665e66874 Parents: d20ea8d Author: Jesse MacFadyen Authored: Tue May 1 13:29:48 2012 -0700 Committer: Jesse MacFadyen Committed: Tue May 1 13:29:48 2012 -0700 ---------------------------------------------------------------------- framework/Cordova/Commands/File.cs | 2 +- framework/Cordova/Commands/FileTransfer.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/605a4621/framework/Cordova/Commands/File.cs ---------------------------------------------------------------------- diff --git a/framework/Cordova/Commands/File.cs b/framework/Cordova/Commands/File.cs index 5c36e8e..97f8374 100644 --- a/framework/Cordova/Commands/File.cs +++ b/framework/Cordova/Commands/File.cs @@ -283,7 +283,7 @@ namespace WP7CordovaClassLib.Cordova.Commands /// Creates object and sets necessary properties /// /// - private FileEntry(string filePath) + public FileEntry(string filePath) { if (string.IsNullOrEmpty(filePath)) { http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/605a4621/framework/Cordova/Commands/FileTransfer.cs ---------------------------------------------------------------------- diff --git a/framework/Cordova/Commands/FileTransfer.cs b/framework/Cordova/Commands/FileTransfer.cs index dbea98b..1cbf451 100644 --- a/framework/Cordova/Commands/FileTransfer.cs +++ b/framework/Cordova/Commands/FileTransfer.cs @@ -345,8 +345,8 @@ namespace WP7CordovaClassLib.Cordova.Commands } } - - DispatchCommandResult(new PluginResult(PluginResult.Status.OK, reqState.options.FilePath)); + WP7CordovaClassLib.Cordova.Commands.File.FileEntry entry = new WP7CordovaClassLib.Cordova.Commands.File.FileEntry(reqState.options.FilePath); + DispatchCommandResult(new PluginResult(PluginResult.Status.OK, entry)); } catch (IsolatedStorageException) {