View Javadoc

1   /*
2    * SocialMessage.java Created @ Sep 24, 2004
3    * 
4    * 
5    * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
6    * Delft, the Netherlands. All rights reserved.
7    * 
8    * See for project information <a href="http://www.simulation.tudelft.nl/">
9    * www.simulation.tudelft.nl </a>.
10   * 
11   * The source code and binary code of this software is proprietary information
12   * of Delft University of Technology.
13   * 
14   */
15  package org.gscg.common.interactionlayer.dataobjects;
16  
17  import java.io.Serializable;
18  
19  /***
20   * A news messsage is sent by a game leader to players in a game.
21   * <p>
22   * 
23   * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
24   * Delft, the Netherlands. All rights reserved.
25   * 
26   * See for project information <a href="http://www.simulation.tudelft.nl/">
27   * www.simulation.tudelft.nl </a>.
28   * 
29   * The source code and binary code of this software is proprietary information
30   * of Delft University of Technology.
31   * 
32   * @author <a
33   *         href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
34   *         van Houten </a>
35   * 
36   * @version $Revision: 1.1 $ $Date: 2005/06/16 12:33:58 $
37   * @since 1.0.0
38   */
39  public class NewsMessage implements Serializable
40  {
41  	/*** the serial version uid */
42  	private static final long serialVersionUID = 11L;
43  
44  	/*** the content of the message */
45  	private String content = null;
46  
47  	/*** the name of the sender */
48  	private String senderName = null;
49  
50  	/***
51  	 * constructs a new NewsMessage
52  	 * 
53  	 * @param senderName the name of the sender
54  	 * @param content the content of the message
55  	 */
56  	public NewsMessage(final String senderName, final String content)
57  	{
58  		super();
59  		this.senderName = senderName;
60  		this.content = content;
61  	}
62  
63  	/***
64  	 * Method getContent.
65  	 * 
66  	 * @return returns the content of the message
67  	 */
68  	public String getContent()
69  	{
70  		return this.content;
71  	}
72  
73  	/***
74  	 * Method getSenderName.
75  	 * 
76  	 * @return returns the name of the sender.
77  	 */
78  	public String getSenderName()
79  	{
80  		return this.senderName;
81  	}
82  }