Class NSChatTopicAgent
User agents within a chat topic. Which users are assigned and what roles they have within the chat topic. Carrier object for ChatTopicAgent.
Syntax
Constructors
NSChatTopicAgent()
Initializes a new instance of the NSChatTopicAgent class.
Declaration
Methods
GetCanListen()
Declaration
Returns
Type |
Description |
Bool |
True of a user can listen in on this topic.
|
Examples
NSChatTopicAgent thing;
Bool canListen = thing.GetCanListen();
GetCanManage()
Declaration
Returns
Type |
Description |
Bool |
True if the user is a manager for this topic.
|
Examples
NSChatTopicAgent thing;
Bool canManage = thing.GetCanManage();
GetCanNotify()
Declaration
Returns
Type |
Description |
Bool |
True if the user should receive notifications for this topic.
|
Examples
NSChatTopicAgent thing;
Bool canNotify = thing.GetCanNotify();
GetCanRespond()
True if the user can respond to chats in this topic
Declaration
Returns
Examples
NSChatTopicAgent thing;
Bool canRespond = thing.GetCanRespond();
GetTopicId()
Declaration
Returns
Type |
Description |
Integer |
The reference to the associated chat topic.
|
Examples
NSChatTopicAgent thing;
Integer topicId = thing.GetTopicId();
GetUser()
Declaration
Returns
Type |
Description |
NSAssociate |
The associate that is the user agent.
|
Examples
NSChatTopicAgent thing;
NSAssociate user = thing.GetUser();
SetCanListen(Bool)
Declaration
Void SetCanListen(Bool canListen)
Parameters
Type |
Name |
Description |
Bool |
canListen |
True of a user can listen in on this topic.
|
Returns
Examples
NSChatTopicAgent thing;
Bool canListen;
thing.SetCanListen(canListen);
SetCanManage(Bool)
Declaration
Void SetCanManage(Bool canManage)
Parameters
Type |
Name |
Description |
Bool |
canManage |
True if the user is a manager for this topic.
|
Returns
Examples
NSChatTopicAgent thing;
Bool canManage;
thing.SetCanManage(canManage);
SetCanNotify(Bool)
Declaration
Void SetCanNotify(Bool canNotify)
Parameters
Type |
Name |
Description |
Bool |
canNotify |
True if the user should receive notifications for this topic.
|
Returns
Examples
NSChatTopicAgent thing;
Bool canNotify;
thing.SetCanNotify(canNotify);
SetCanRespond(Bool)
Declaration
Void SetCanRespond(Bool canRespond)
Parameters
Type |
Name |
Description |
Bool |
canRespond |
True if the user can respond to chats in this topic.
|
Returns
Examples
NSChatTopicAgent thing;
Bool canRespond;
thing.SetCanRespond(canRespond);
SetTopicId(Integer)
Declaration
Void SetTopicId(Integer topicId)
Parameters
Type |
Name |
Description |
Integer |
topicId |
The reference to the associated chat topic.
|
Returns
Examples
NSChatTopicAgent thing;
Integer topicId;
thing.SetTopicId(topicId);
SetUser(NSAssociate)
Declaration
Void SetUser(NSAssociate user)
Parameters
Type |
Name |
Description |
NSAssociate |
user |
The associate that is the user agent.
|
Examples
NSChatTopicAgent thing;
NSAssociate user;
thing.SetUser(user);