Show / Hide Table of Contents

Class ChatSessionEntity

Chat sessions belong to a chat topic, and contain messages to/from users

Carrier object for ChatSessionEntity. Services for the ChatSessionEntity Carrier is available from the Chat Agent.
Inheritance
object
ChatSessionEntity
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.2.0.0")]
public class ChatSessionEntity : Carrier
Examples

Get ChatSessionEntity 123 using the agent:

using SuperOffice;
using SuperOffice.CRM.Services;

using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
   var agent = new ChatAgent();
   var chatSessionEntity = agent.GetChatSessionEntity( 123 );
}

Find all ChatSessionEntity, get related items using archive agent.

var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("ChatSession", "...", null, "getAllRows eq 1", null, 0, 100 );

Constructors

ChatSessionEntity()

Default constructor

Declaration
public ChatSessionEntity()
See Also
IChatAgent

Properties

AlertLevel

The alert level for this chat session.

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

ChatSessionId

The primary key (auto-incremented)

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

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
[DataMember]
public virtual bool ChatbotIsActive { get; set; }
Property Value
Type Description
bool
See Also
IChatAgent

Contact

Contact this session is connected to - could be empty if we don't know exactly.

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

CustomerAlias

The alias for the customer.

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

CustomerCompanyName

The name of the customers company, if provided

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

CustomerConsented

The customer consented when starting the session

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

CustomerEmail

The email address of the customer, if provided

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

CustomerHost

The hostname or IP address for the customer.

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

CustomerName

The name of customer, if provided

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

CustomerPhone

The phone number of the customer, if provided

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

FirstMessage

A copy of the first message in the chat session

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

Flags

Various flags for the chat session

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

InitialQueuePos

The initial queue pos (i.e. the number of pending sessions + 1) when the session was requested.

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

LastMessage

A copy of the last message in the chat session

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

Person

Customer person in this session - could be empty if we don't know exactly.

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

Project

Project the session is connectedto - could be empty if we don't know exactly.

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

Rank

Lowest possible unique number for active sessions for user. User for color index. Starting at 1.

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

Rating

Rating of this chat conversation given by the customer

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

Sale

Sale the session is connected to - could be empty if we don't know exactly.

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

SessionKey

Key used to authenticate the session.

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

Status

Enum indicating the status for the session (pending, active, closed, etc).

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

Ticket

Ticket the session is connected to - could be empty if we don't know exactly.

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

TopicId

The reference to the associated chat topic.

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

TransferTo

User agent that has a pending transfer of the chat session

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

User

User agent handling this session

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

WhenEnded

When the session was ended.

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

WhenFetched

The last time the customer's client refetched the data. Used to detect 'dead' session.

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

WhenIdle

The last time anyone sent a message for this session.

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

WhenRequested

When the session was requested by the customer.

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

WhenStarted

When the session was accepted by a user.

Declaration
[DataMember]
public virtual DateTime WhenStarted { 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.

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