Difference between revisions of "PEC-Developer/Current/SCAPI/AgentNamespace"
From Genesys Documentation
m (Text replacement - "\|Platform=([^\|]*)GenesysEngage-onpremises([\|]*)" to "|Platform=$1GenesysEngage-cloud$2") |
(Published) |
||
Line 6: | Line 6: | ||
|ComingSoon=No | |ComingSoon=No | ||
|Platform=GenesysEngage-cloud | |Platform=GenesysEngage-cloud | ||
− | |||
|Section={{Section | |Section={{Section | ||
|sectionHeading=Methods | |sectionHeading=Methods | ||
|anchor=Methods | |anchor=Methods | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
− | |||
|structuredtext=The Agent namespace includes the following methods: | |structuredtext=The Agent namespace includes the following methods: | ||
Line 23: | Line 20: | ||
{{{!}} | {{{!}} | ||
!Signature | !Signature | ||
− | {{!}}<static> get() → | + | {{!}}<static> get() → {{{Link-SomewhereInThisVersion|manual=SCAPI|topic=AgentNamespace|anchor=Agent|display text=agent.Agent}}} |
{{!}}- | {{!}}- | ||
!Description | !Description | ||
Line 35: | Line 32: | ||
{{{!}} | {{{!}} | ||
!Signature | !Signature | ||
− | {{!}}<static> getState() → | + | {{!}}<static> getState() → {{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=media.State}}} |
{{!}}- | {{!}}- | ||
!Description | !Description | ||
Line 76: | Line 73: | ||
{{!}}} | {{!}}} | ||
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
Line 83: | Line 78: | ||
|anchor=TypeDefinitions | |anchor=TypeDefinitions | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
− | |||
|structuredtext=The agent namespace includes the following object types: | |structuredtext=The agent namespace includes the following object types: | ||
*{{Link-SomewhereInThisManual|topic=AgentNamespace|anchor=Agent|display text=Agent}} | *{{Link-SomewhereInThisManual|topic=AgentNamespace|anchor=Agent|display text=Agent}} | ||
− | + | {{AnchorDiv|Agent}} | |
===Agent=== | ===Agent=== | ||
{{{!}} | {{{!}} | ||
Line 121: | Line 114: | ||
{{!}}} | {{!}}} | ||
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}} | }} | ||
}} | }} |
Revision as of 14:02, March 2, 2022
Learn about the Agent namespace methods and type definitions in the Service Client API.
Methods
The Agent namespace includes the following methods:
get
Signature | <static> get() → {agent.Agent} |
---|---|
Description | Gets the agent's attributes. |
Returns | agent.Agent |
getState
Signature | <static> getState() → {media.State} |
---|---|
Description | Gets the agent's state. |
Returns | media.State |
getStateList
Signature | <static> getStateList() → {Array.<media.State>} |
---|---|
Description | Gets the list of possible agent states. |
Returns | Array.<media.State> |
setState
Signature | <static> setState(stateOperationName) | ||||||
---|---|---|---|---|---|---|---|
Description | Sets the agent's state. | ||||||
Parameters |
|
Type definitions
The agent namespace includes the following object types:
Agent
Description | Represents the JSON structure of the agent. | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Object | |||||||||||||||
Properties |
|
Comments or questions about this documentation? Contact us for support!