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()

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

Declaration
public 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.

Fields

Author

The author of the message.

Declaration
public string Author
Field Value
Type Description
string
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.

ChatMessageId

The primary key (auto-incremented)

Declaration
public int ChatMessageId
Field Value
Type Description
int
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.

CreatedBy

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

Declaration
public int CreatedBy
Field Value
Type Description
int
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.

Message

The message.

Declaration
public string Message
Field Value
Type Description
string
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.

ReadByCustomer

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

Declaration
public short ReadByCustomer
Field Value
Type Description
short
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.

SessionId

The reference to the associated chat session.

Declaration
public int SessionId
Field Value
Type Description
int
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.

SpecialParam

Special parameter for the special_type.

Declaration
public string SpecialParam
Field Value
Type Description
string
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.

SpecialType

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

Declaration
public ChatMessageSpecialType SpecialType
Field Value
Type Description
ChatMessageSpecialType
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.

Type

The type of the message.

Declaration
public ChatMessageType Type
Field Value
Type Description
ChatMessageType
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.

WhenPosted

When the message was posted (UTC timestamp).

Declaration
public DateTime WhenPosted
Field Value
Type Description
DateTime
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.

Extension Methods

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