Add quotes when returning status message.

This commit is contained in:
Bryce Curtis 2010-10-25 14:59:23 -05:00
parent 153d42f693
commit f63b8140af

View File

@ -16,7 +16,7 @@ public class PluginResult {
public PluginResult(Status status) { public PluginResult(Status status) {
this.status = status.ordinal(); this.status = status.ordinal();
this.message = PluginResult.StatusMessages[this.status]; this.message = "'" + PluginResult.StatusMessages[this.status] + "'";
} }
public PluginResult(Status status, String message) { public PluginResult(Status status, String message) {
@ -58,7 +58,7 @@ public class PluginResult {
} }
public String getJSONString() { public String getJSONString() {
return "{ status: " + this.getStatus() + ", message: '" + this.getMessage() + "' }"; return "{ status: " + this.getStatus() + ", message: " + this.getMessage() + " }";
} }
public String toSuccessCallbackString(String callbackId) { public String toSuccessCallbackString(String callbackId) {