--- /dev/null
+using System;\r
+using System.Collections.Generic;\r
+using System.Linq;\r
+using System.Text;\r
+using Microsoft.Xna.Framework.Net;\r
+\r
+namespace CarFire\r
+{\r
+ /// <summary>\r
+ /// Small container class for the information concerning a chat packet.\r
+ /// It is immutable.\r
+ /// </summary>\r
+ public class ChatInfo\r
+ {\r
+ // Private member variables\r
+ #region Instance Variables\r
+\r
+ NetworkGamer mSender;\r
+ String mMessage;\r
+\r
+ #endregion\r
+\r
+\r
+ /// <summary>\r
+ /// Get the sender who sent the chat packet.\r
+ /// </summary>\r
+ public NetworkGamer Sender\r
+ {\r
+ get { return mSender; }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Get the message that was sent by the sender.\r
+ /// </summary>\r
+ public String Message\r
+ {\r
+ get { return mMessage; }\r
+ }\r
+\r
+\r
+ /// <summary>\r
+ /// Construct a chat packet with contents.\r
+ /// </summary>\r
+ /// <param name="sender">The chat sender.</param>\r
+ /// <param name="message">The chat message.</param>\r
+ public ChatInfo(NetworkGamer sender, String message)\r
+ {\r
+ mSender = sender;\r
+ mMessage = message;\r
+ }\r
+ }\r
+}\r