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