Class ChatSessionRecordData
POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the chat_session table.
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class ChatSessionRecordData
Remarks
Please use this class instead of a full ChatSessionRow 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 ChatSessionTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
Constructors
ChatSessionRecordData()
Declaration
public ChatSessionRecordData()
Fields
AlertLevel
The alert level for this chat session.
Declaration
public int AlertLevel
Field Value
Type | Description |
---|---|
Int32 |
ChatbotIsactive
Indicates that a chatbot is active on the session. This will cause bot triggers to fire. Set to 0 when bot hands off to user.
Declaration
public short ChatbotIsactive
Field Value
Type | Description |
---|---|
Int16 |
ChatSessionId
The primary key (auto-incremented)
Declaration
public int ChatSessionId
Field Value
Type | Description |
---|---|
Int32 |
CompanyName
The name of the customers company, if provided
Declaration
public string CompanyName
Field Value
Type | Description |
---|---|
String |
Consented
The customer consented when starting the session
Declaration
public short Consented
Field Value
Type | Description |
---|---|
Int16 |
ContactId
The contact that this chat session is connected to
Declaration
public int ContactId
Field Value
Type | Description |
---|---|
Int32 |
Country
The country that the chat customer selected.
Declaration
public int Country
Field Value
Type | Description |
---|---|
Int32 |
CustomerAlias
The alias for the customer.
Declaration
public string CustomerAlias
Field Value
Type | Description |
---|---|
String |
CustomerFetch
The last time the customer's client refetched the data. Used to detect 'dead' session.
Declaration
public DateTime CustomerFetch
Field Value
Type | Description |
---|---|
DateTime |
CustomerHost
The hostname or IP address for the customer.
Declaration
public string CustomerHost
Field Value
Type | Description |
---|---|
String |
CustomerId
The reference to the associated customer. May be NULL or -1.
Declaration
public int CustomerId
Field Value
Type | Description |
---|---|
Int32 |
The email address of the customer, if provided
Declaration
public string Email
Field Value
Type | Description |
---|---|
String |
FirstMessage
A copy of the first message in the chat session
Declaration
public string FirstMessage
Field Value
Type | Description |
---|---|
String |
Flags
Various flags for the chat session
Declaration
public ChatSessionFlags Flags
Field Value
Type | Description |
---|---|
ChatSessionFlags |
Idle
The last time anyone sent a message for this session.
Declaration
public DateTime Idle
Field Value
Type | Description |
---|---|
DateTime |
InitialQueuePos
The initial queue pos (i.e. the number of pending sessions + 1) when the session was requested.
Declaration
public int InitialQueuePos
Field Value
Type | Description |
---|---|
Int32 |
LastMessage
A copy of the last message in the chat session
Declaration
public string LastMessage
Field Value
Type | Description |
---|---|
String |
Name
The name of customer, if provided
Declaration
public string Name
Field Value
Type | Description |
---|---|
String |
Phone
The phone number of the customer, if provided
Declaration
public string Phone
Field Value
Type | Description |
---|---|
String |
ProjectId
The project that this chat session is connected to
Declaration
public int ProjectId
Field Value
Type | Description |
---|---|
Int32 |
Rank
Lowest possible unique number for active sessions for user. User for color index. Starting at 1.
Declaration
public int Rank
Field Value
Type | Description |
---|---|
Int32 |
SaleId
The sale that this chat session is connected to
Declaration
public int SaleId
Field Value
Type | Description |
---|---|
Int32 |
SessionKey
Key used to authenticate the session.
Declaration
public string SessionKey
Field Value
Type | Description |
---|---|
String |
Status
Enum indicating the status for the session (pending, active, closed, etc).
Declaration
public ChatSessionStatus Status
Field Value
Type | Description |
---|---|
ChatSessionStatus |
TicketId
The ticket that this chat session is connected to
Declaration
public int TicketId
Field Value
Type | Description |
---|---|
Int32 |
TopicId
The reference to the associated chat topic.
Declaration
public int TopicId
Field Value
Type | Description |
---|---|
Int32 |
TransferTo
The ejuser that has a pending transfer of the chat session
Declaration
public int TransferTo
Field Value
Type | Description |
---|---|
Int32 |
UserId
The reference to the associated user.
Declaration
public int UserId
Field Value
Type | Description |
---|---|
Int32 |
WhenEnded
When the session was ended.
Declaration
public DateTime WhenEnded
Field Value
Type | Description |
---|---|
DateTime |
WhenRequested
When the session was requested by the customer.
Declaration
public DateTime WhenRequested
Field Value
Type | Description |
---|---|
DateTime |
WhenStarted
When the session was accepted by a user.
Declaration
public DateTime WhenStarted
Field Value
Type | Description |
---|---|
DateTime |