/** * Sencha GXT 3.0.0b - Sencha for GWT * Copyright(c) 2007-2012, Sencha, Inc. * licensing@sencha.com * * http://www.sencha.com/products/gxt/license/ */ package com.sencha.gxt.examples.resources.client.model; import java.io.Serializable; import java.util.Date; public class Post implements Serializable { private static int ID = 0; private String username; private String forum; private Date date; private String subject; private int id; public Post() { setId(ID++); } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getForum() { return forum; } public void setForum(String forum) { this.forum = forum; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public String getSubject() { return subject; } public void setSubject(String subject) { this.subject = subject; } }