1 19 package org.lucane.applications.forum; 20 21 import java.io.Serializable ; 22 23 public class ForumAction implements Serializable 24 { 25 public static final int LIST_FORUMS = 0; 26 public static final int LIST_MESSAGES = 1; 27 public static final int GET_MESSAGE_CONTENT = 2; 28 public static final int POST_MESSAGE = 3; 29 30 public int action; 31 public String forum; 32 public Object param; 33 34 public ForumAction(int action, String forum, Object param) 35 { 36 this.action = action; 37 this.forum = forum; 38 this.param = param; 39 } 40 41 42 public ForumAction(int action, String forum) 43 { 44 this(action, forum, null); 45 } 46 47 public ForumAction(int action) 48 { 49 this(action, null); 50 } 51 } | Popular Tags |