/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.example.dwr.reverseajax;
/**
*
* @author wzw
*/
public class Message {
private long id;
private String text;
public Message(String newtext) {
this.text = newtext;
if (this.text.length() > 256) {
this.text = this.text.substring(0, 256);
}
}
/**
* @return the id
*/
public long getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(long id) {
this.id = id;
}
/**
* @return the text
*/
public String getText() {
return text;
}
/**
* @param text the text to set
*/
public void setText(String text) {
this.text = text;
}
}