Show / Hide Table of Contents

Class NSChatMessage

A message in a chat session. Carrier object for ChatMessage.

Syntax

Constructors

NSChatMessage()

Initializes a new instance of the NSChatMessage class.

Declaration
NSChatMessage

Methods

GetAuthor()

A message in a chat session. Carrier object for ChatMessage.

Declaration
String GetAuthor()
Returns
Type Description
String

The author of the message.

Examples
NSChatMessage thing;
String author = thing.GetAuthor();

GetChatMessageId()

A message in a chat session. Carrier object for ChatMessage.

Declaration
Integer GetChatMessageId()
Returns
Type Description
Integer

The primary key (auto-incremented).

Examples
NSChatMessage thing;
Integer chatMessageId = thing.GetChatMessageId();

GetChatSessionId()

A message in a chat session. Carrier object for ChatMessage.

Declaration
Integer GetChatSessionId()
Returns
Type Description
Integer

The reference to the associated chat session.

Examples
NSChatMessage thing;
Integer chatSessionId = thing.GetChatSessionId();

GetMessage()

A message in a chat session. Carrier object for ChatMessage.

Declaration
String GetMessage()
Returns
Type Description
String

The message.

Examples
NSChatMessage thing;
String message = thing.GetMessage();

GetReadByCustomer()

A message in a chat session. Carrier object for ChatMessage.

Declaration
Integer GetReadByCustomer()
Returns
Type Description
Integer

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

Examples
NSChatMessage thing;
Integer readByCustomer = thing.GetReadByCustomer();

GetSpecialParam()

A message in a chat session. Carrier object for ChatMessage.

Declaration
String GetSpecialParam()
Returns
Type Description
String

Special parameter for the special_type.

Examples
NSChatMessage thing;
String specialParam = thing.GetSpecialParam();

GetSpecialType()

A message in a chat session. Carrier object for ChatMessage.

Declaration
Integer GetSpecialType()
Returns
Type Description
Integer

Indicates if it is a special message, such as a URL redirection. See ChatMessageSpecialType

Examples
NSChatMessage thing;
Integer specialType = thing.GetSpecialType();

GetType()

A message in a chat session. Carrier object for ChatMessage.

Declaration
Integer GetType()
Returns
Type Description
Integer

The type of the message. See ChatMessageType

Examples
NSChatMessage thing;
Integer type = thing.GetType();

GetWhenPosted()

A message in a chat session. Carrier object for ChatMessage.

Declaration
DateTime GetWhenPosted()
Returns
Type Description
DateTime

When the message was posted (UTC timestamp).

Examples
NSChatMessage thing;
DateTime whenPosted = thing.GetWhenPosted();

SetAuthor(String)

A message in a chat session. Carrier object for ChatMessage.

Declaration
Void SetAuthor(String author)
Parameters
Type Name Description
String author

The author of the message.

Returns
Type Description
Void
Examples
NSChatMessage thing;
String author;
thing.SetAuthor(author);

SetChatMessageId(Integer)

A message in a chat session. Carrier object for ChatMessage.

Declaration
Void SetChatMessageId(Integer chatMessageId)
Parameters
Type Name Description
Integer chatMessageId

The primary key (auto-incremented).

Returns
Type Description
Void
Examples
NSChatMessage thing;
Integer chatMessageId;
thing.SetChatMessageId(chatMessageId);

SetChatSessionId(Integer)

A message in a chat session. Carrier object for ChatMessage.

Declaration
Void SetChatSessionId(Integer chatSessionId)
Parameters
Type Name Description
Integer chatSessionId

The reference to the associated chat session.

Returns
Type Description
Void
Examples
NSChatMessage thing;
Integer chatSessionId;
thing.SetChatSessionId(chatSessionId);

SetMessage(String)

A message in a chat session. Carrier object for ChatMessage.

Declaration
Void SetMessage(String message)
Parameters
Type Name Description
String message

The message.

Returns
Type Description
Void
Examples
NSChatMessage thing;
String message;
thing.SetMessage(message);

SetReadByCustomer(Integer)

A message in a chat session. Carrier object for ChatMessage.

Declaration
Void SetReadByCustomer(Integer readByCustomer)
Parameters
Type Name Description
Integer readByCustomer

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

Returns
Type Description
Void
Examples
NSChatMessage thing;
Integer readByCustomer;
thing.SetReadByCustomer(readByCustomer);

SetSpecialParam(String)

A message in a chat session. Carrier object for ChatMessage.

Declaration
Void SetSpecialParam(String specialParam)
Parameters
Type Name Description
String specialParam

Special parameter for the special_type.

Returns
Type Description
Void
Examples
NSChatMessage thing;
String specialParam;
thing.SetSpecialParam(specialParam);

SetSpecialType(Integer)

A message in a chat session. Carrier object for ChatMessage.

Declaration
Void SetSpecialType(Integer specialType)
Parameters
Type Name Description
Integer specialType

Indicates if it is a special message, such as a URL redirection. See ChatMessageSpecialType.

Returns
Type Description
Void
Examples
NSChatMessage thing;
Integer specialType;
thing.SetSpecialType(specialType);

SetType(Integer)

A message in a chat session. Carrier object for ChatMessage.

Declaration
Void SetType(Integer type)
Parameters
Type Name Description
Integer type

The type of the message. See ChatMessageType.

Returns
Type Description
Void
Examples
NSChatMessage thing;
Integer type;
thing.SetType(type);

SetWhenPosted(DateTime)

A message in a chat session. Carrier object for ChatMessage.

Declaration
Void SetWhenPosted(DateTime whenPosted)
Parameters
Type Name Description
DateTime whenPosted

When the message was posted (UTC timestamp).

Returns
Type Description
Void
Examples
NSChatMessage thing;
DateTime whenPosted;
thing.SetWhenPosted(whenPosted);
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top