Fixing Contacts.find to use PluginResult

This commit is contained in:
macdonst
2010-10-04 09:47:12 +08:00
parent c80397ad68
commit 2bbf62c489
7 changed files with 17 additions and 16 deletions
@@ -1,5 +1,6 @@
package com.phonegap.api;
import org.json.JSONArray;
import org.json.JSONObject;
public class PluginResult {
@@ -16,6 +17,11 @@ public class PluginResult {
this.message = "'" + message + "'";
}
public PluginResult(Status status, JSONArray message) {
this.status = status.ordinal();
this.message = message.toString();
}
public PluginResult(Status status, JSONObject message) {
this.status = status.ordinal();
this.message = message.toString();