New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

The Chat Message.

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChatMessage : IChatMessage

Inheritance: objectChatMessage

Implements: IChatMessage

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

The constructor that will create a ChatMessage instance.

C#
public ChatMessage()

Properties

The author's unique identifier.

C#
public string AuthorId { get; set; }

Implements: IChatMessage.AuthorId

The alternative text that will be displayed if no image is present.

C#
public string AuthorImageAltText { get; set; }

Implements: IChatMessage.AuthorImageAltText

The author's image.

C#
public string AuthorImageUrl { get; set; }

Implements: IChatMessage.AuthorImageUrl

The author's name.

C#
public string AuthorName { get; set; }

Implements: IChatMessage.AuthorName

The initial files that will be set to the chat message.

C#
public IEnumerable<ChatFile> Files { get; set; }

Implements: IChatMessage.Files

The unique identifier of the message.

C#
public string Id { get; set; }

Implements: IChatMessage.Id

Sets the IsDeleted mode.

C#
public bool? IsDeleted { get; set; }

Implements: IChatMessage.IsDeleted

The pin mode of the message.

C#
public bool? IsPinned { get; set; }

Implements: IChatMessage.IsPinned

Sets the IsTyping mode.

C#
public bool? IsTyping { get; set; }

Implements: IChatMessage.IsTyping

ID of message being replied to

C#
[Obsolete("RepliedToId is obsolete. Please use ReplyToId instead.")]
public string RepliedToId { get; set; }

Implements: IChatMessage.RepliedToId

ID of message being replied to

C#
public string ReplyToId { get; set; }

Implements: IChatMessage.ReplyToId

The text of the message.

C#
public string Text { get; set; }

Implements: IChatMessage.Text

The message's timestamp.

C#
public DateTime? TimeStamp { get; set; }

Implements: IChatMessage.TimeStamp

Methods

Serialize current instance to Dictionary

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>