001: /*
002: * Copyright (c) JForum Team
003: * All rights reserved.
004:
005: * Redistribution and use in source and binary forms,
006: * with or without modification, are permitted provided
007: * that the following conditions are met:
008:
009: * 1) Redistributions of source code must retain the above
010: * copyright notice, this list of conditions and the
011: * following disclaimer.
012: * 2) Redistributions in binary form must reproduce the
013: * above copyright notice, this list of conditions and
014: * the following disclaimer in the documentation and/or
015: * other materials provided with the distribution.
016: * 3) Neither the name of "Rafael Steil" nor
017: * the names of its contributors may be used to endorse
018: * or promote products derived from this software without
019: * specific prior written permission.
020: *
021: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
022: * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
023: * EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
024: * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
025: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR
026: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
027: * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
028: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
029: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES
030: * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
031: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
032: * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
033: * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
034: * IN CONTRACT, STRICT LIABILITY, OR TORT
035: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
036: * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
037: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
038: *
039: * This file creation date: 20/05/2004 - 15:24:07
040: * net.jforum.entities.PrivateMessage.java
041: * The JForum Project
042: * http://www.jforum.net
043: */
044: package net.jforum.entities;
045:
046: /**
047: * @author Rafael Steil
048: * @version $Id: PrivateMessage.java,v 1.6 2006/12/06 21:56:28 rafaelsteil Exp $
049: */
050: public class PrivateMessage {
051: private int id;
052: private int type;
053: private User fromUser;
054: private User toUser;
055: private Post post;
056: private String formatedDate;
057:
058: public PrivateMessage() {
059: }
060:
061: public PrivateMessage(int id) {
062: this .id = id;
063: }
064:
065: /**
066: * @return Returns the fromUser.
067: */
068: public User getFromUser() {
069: return fromUser;
070: }
071:
072: /**
073: * @param fromUser The fromUser to set.
074: */
075: public void setFromUser(User fromUser) {
076: this .fromUser = fromUser;
077: }
078:
079: /**
080: * @return Returns the toUser.
081: */
082: public User getToUser() {
083: return toUser;
084: }
085:
086: /**
087: * @param toUser The toUser to set.
088: */
089: public void setToUser(User toUser) {
090: this .toUser = toUser;
091: }
092:
093: /**
094: * @return Returns the type.
095: */
096: public int getType() {
097: return type;
098: }
099:
100: /**
101: * @param type The type to set.
102: */
103: public void setType(int type) {
104: this .type = type;
105: }
106:
107: /**
108: * @return Returns the id.
109: */
110: public int getId() {
111: return id;
112: }
113:
114: /**
115: * @param id The id to set.
116: */
117: public void setId(int id) {
118: this .id = id;
119: }
120:
121: /**
122: * @return Returns the post.
123: */
124: public Post getPost() {
125: return post;
126: }
127:
128: /**
129: * @param post The post to set.
130: */
131: public void setPost(Post post) {
132: this .post = post;
133: }
134:
135: /**
136: * @return Returns the formatedDate.
137: */
138: public String getFormatedDate() {
139: return formatedDate;
140: }
141:
142: /**
143: * @param formatedDate The formatedDate to set.
144: */
145: public void setFormatedDate(String formatedDate) {
146: this.formatedDate = formatedDate;
147: }
148: }
|