Show / Hide Table of Contents

Class ChatMessageRecordData

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the chat_message table.

Inheritance
Object
ChatMessageRecordData
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class ChatMessageRecordData
Remarks

Please use this class instead of a full ChatMessageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ChatMessageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Constructors

ChatMessageRecordData()

Declaration
public ChatMessageRecordData()

Fields

Author

The author of the message.

Declaration
public string Author
Field Value
Type Description
String

ChatMessageId

The primary key (auto-incremented)

Declaration
public int ChatMessageId
Field Value
Type Description
Int32

CreatedBy

The user agent who wrote the message. -1 if customer

Declaration
public int CreatedBy
Field Value
Type Description
Int32

Message

The message.

Declaration
public string Message
Field Value
Type Description
String

ReadByCustomer

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

Declaration
public short ReadByCustomer
Field Value
Type Description
Int16

SessionId

The reference to the associated chat session.

Declaration
public int SessionId
Field Value
Type Description
Int32

SpecialParam

Special parameter for the special_type.

Declaration
public string SpecialParam
Field Value
Type Description
String

SpecialType

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

Declaration
public ChatMessageSpecialType SpecialType
Field Value
Type Description
ChatMessageSpecialType

Type

The type of the message.

Declaration
public ChatMessageType Type
Field Value
Type Description
ChatMessageType

WhenPosted

When the message was posted (UTC timestamp).

Declaration
public DateTime WhenPosted
Field Value
Type Description
DateTime

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
ChatMessageRecordDataExtensions.ToInsert(ChatMessageRecordData)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top