Show / Hide Table of Contents

Class ChatMessage

A message in a chat session

Carrier object for ChatMessage. Services for the ChatMessage Carrier is available from the Chat Agent.
Inheritance
object
ChatMessage
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.6.0.0")]
public class ChatMessage

Constructors

ChatMessage()

Default constructor

Declaration
public ChatMessage()
See Also
IChatAgent

Properties

Author

The author of the message.

Declaration
[DataMember]
public virtual string Author { get; set; }
Property Value
Type Description
string
See Also
IChatAgent

ChatMessageId

The primary key (auto-incremented)

Declaration
[DataMember]
public virtual int ChatMessageId { get; set; }
Property Value
Type Description
int
See Also
IChatAgent

ChatSessionId

The reference to the associated chat session.

Declaration
[DataMember]
public virtual int ChatSessionId { get; set; }
Property Value
Type Description
int
See Also
IChatAgent

Message

The message.

Declaration
[DataMember]
public virtual string Message { get; set; }
Property Value
Type Description
string
See Also
IChatAgent

ReadByCustomer

Whether the message has been read by the customer or not.

Declaration
[DataMember]
public virtual short ReadByCustomer { get; set; }
Property Value
Type Description
short
See Also
IChatAgent

SpecialParam

Special parameter for the special_type.

Declaration
[DataMember]
public virtual string SpecialParam { get; set; }
Property Value
Type Description
string
See Also
IChatAgent

SpecialType

Enum indicating if it is a special message, such as an URL redirection, etc.

Declaration
[DataMember]
public virtual ChatMessageSpecialType SpecialType { get; set; }
Property Value
Type Description
ChatMessageSpecialType
See Also
IChatAgent

Type

The type of the message.

Declaration
[DataMember]
public virtual ChatMessageType Type { get; set; }
Property Value
Type Description
ChatMessageType
See Also
IChatAgent

WhenPosted

When the message was posted (UTC timestamp).

Declaration
[DataMember]
public virtual DateTime WhenPosted { get; set; }
Property Value
Type Description
DateTime
See Also
IChatAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
string

The carrier contents.

Overrides
object.ToString()
See Also
IChatAgent

ToString(string)

Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
string prefix

The line prefix (typically used for indenting)

Returns
Type Description
string

The carrier contents.

See Also
IChatAgent

See Also

IChatAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top