Skip to content

Instantly share code, notes, and snippets.

@slmcmahon
Created December 7, 2010 20:58
Show Gist options
  • Save slmcmahon/732398 to your computer and use it in GitHub Desktop.
Save slmcmahon/732398 to your computer and use it in GitHub Desktop.
Javascript Overlay object for handling JSON server response
package com.yourgwtapp.client.dto;
import com.google.gwt.core.client.JavaScriptObject;
public class ServerResponse<T extends JavaScriptObject> extends JavaScriptObject {
protected ServerResponse() { }
public final native T getPayload() /*-{ return this.Payload; }-*/;
public final native boolean getSuccess() /*-{ return this.Success; }-*/;
public final native String getMessage() /*-{ return this.Message; }-*/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment