Class ChatMessage
A message in a chat session
Carrier object for ChatMessage. Services for the ChatMessage Carrier is available from the Chat Agent.Inherited Members
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
Properties
Author
The author of the message.
Declaration
[DataMember]
public virtual string Author { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
ChatMessageId
The primary key (auto-incremented)
Declaration
[DataMember]
public virtual int ChatMessageId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
ChatSessionId
The reference to the associated chat session.
Declaration
[DataMember]
public virtual int ChatSessionId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
Message
The message.
Declaration
[DataMember]
public virtual string Message { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
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
SpecialParam
Special parameter for the special_type.
Declaration
[DataMember]
public virtual string SpecialParam { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
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
Type
The type of the message.
Declaration
[DataMember]
public virtual ChatMessageType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ChatMessageType |
See Also
WhenPosted
When the message was posted (UTC timestamp).
Declaration
[DataMember]
public virtual DateTime WhenPosted { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
See Also
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The carrier contents. |
Overrides
See Also
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. |