KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > geinuke > vo > PMessageVO


1
2 /*
3 -- GeiNuke --
4 Copyright (c) 2005 by Roberto Sidoti [geinuke@users.sourceforge.net]
5 http://www.hostingjava.it/-geinuke/
6
7 This file is part of GeiNuke.
8
9    GeiNuke is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 2 of the License, or
12    (at your option) any later version.
13
14    GeiNuke is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17    GNU General Public License for more details.
18
19    You should have received a copy of the GNU General Public License
20    along with GeiNuke; if not, write to the Free Software
21    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */

23 package com.geinuke.vo;
24
25 public class PMessageVO {
26     protected int idPM=-1;
27     protected UserVO userFrom=null;
28     protected UserVO userTo=null;
29     protected String JavaDoc text=null;
30     protected String JavaDoc subject=null;
31     protected long date=0;
32     protected boolean seen=false;
33     protected boolean cancelledByFrom=false;
34     protected boolean cancelledByTo=false;
35     
36     public boolean isSeen() {
37         return seen;
38     }
39     public void setSeen(boolean seen) {
40         this.seen = seen;
41     }
42     public String JavaDoc getSubject() {
43         return subject;
44     }
45     public void setSubject(String JavaDoc subject) {
46         this.subject = subject;
47     }
48     public String JavaDoc getText() {
49         return text;
50     }
51     public void setText(String JavaDoc text) {
52         this.text = text;
53     }
54     public UserVO getUserFrom() {
55         return userFrom;
56     }
57     public void setUserFrom(UserVO userFrom) {
58         this.userFrom = userFrom;
59     }
60     public UserVO getUserTo() {
61         return userTo;
62     }
63     public void setUserTo(UserVO userTo) {
64         this.userTo = userTo;
65     }
66     public boolean isCancelledByFrom() {
67         return cancelledByFrom;
68     }
69     public void setCancelledByFrom(boolean cancelledByFrom) {
70         this.cancelledByFrom = cancelledByFrom;
71     }
72     public boolean isCancelledByTo() {
73         return cancelledByTo;
74     }
75     public void setCancelledByTo(boolean cancelledByTo) {
76         this.cancelledByTo = cancelledByTo;
77     }
78     public long getDate() {
79         return date;
80     }
81     public void setDate(long data) {
82         this.date = data;
83     }
84     public int getIdPM() {
85         return idPM;
86     }
87     public void setIdPM(int idPM) {
88         this.idPM = idPM;
89     }
90 }
91
Popular Tags