Skip to content

Instantly share code, notes, and snippets.

@imageaid
Created December 13, 2010 20:45
Show Gist options
  • Save imageaid/739574 to your computer and use it in GitHub Desktop.
Save imageaid/739574 to your computer and use it in GitHub Desktop.
A POJO that we send from the server to a Flex (or other front-end) client
package com.pojo.messages;
import java.io.Serializable;
public class MessageBody implements Serializable {
/*
* Nothing much to this POJO ... just a few properties with getters and setters
* In my real-world application, these properties are used in the Flash client
*/
private static final long serialVersionUID = 1L;
private String message;
private String messageType;
private String messageUserName;
private String messageMemberID;
public MessageBody(){}
public void setMessage(String _var){
this.message = _var;
}
public String getMessage(){
return this.message;
}
public void setMessageType(String _var){
this.messageType = _var;
}
public String getMessageType(){
return this.messageType;
}
public void setMessageUserName(String _var){
this.messageUserName = _var;
}
public String getMessageUserName(){
return this.messageUserName;
}
public void setMessageMemberID(String _var){
this.messageMemberID = _var;
}
public String getMessageMemberID(){
return this.messageMemberID;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment