Table of Contents

Class ChatMessage

Namespace
UdpChat.Lib.Message
Assembly
UdpChat.Lib.dll

A ChatMessage is a message sent by a user to the server. It has a user, a timestamp, and a message.

[Serializable]
public class ChatMessage : ChatSendable
Inheritance
ChatMessage
Inherited Members

Constructors

ChatMessage(ChatUser, string)

public ChatMessage(ChatUser user, string message)

Parameters

user ChatUser
message string

Properties

Message

public string Message { get; set; }

Property Value

string

Timestamp

public DateTime Timestamp { get; set; }

Property Value

DateTime

User

public ChatUser User { get; set; }

Property Value

ChatUser

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.