Jump to: navigation, search
(Created target blank page For Version: PSAAS:Julie) |
(Automated save: adding PEC_Migrated template.) |
||
Line 1: | Line 1: | ||
− | <!-- | + | = Media namespace= |
+ | |||
+ | {{Template:PEC_Migrated}} | ||
+ | |||
+ | |||
+ | __TOC__ | ||
+ | ==Methods== | ||
+ | The Media namespace includes the following methods: | ||
+ | * [[MediaNamespace#getMediaList|getMediaList]] | ||
+ | * [[MediaNamespace#setState|setState]] | ||
+ | |||
+ | ===getMediaList=== | ||
+ | {| | ||
+ | ! Signature | ||
+ | | <static> getMediaList() → {Array.<[[MediaNamespace#State|media.Media]]>} | ||
+ | |- | ||
+ | ! Description | ||
+ | | Get the media attributes. | ||
+ | |- | ||
+ | ! Returns | ||
+ | | Array.<[[MediaNamespace#State|media.Media]]> | ||
+ | |} | ||
+ | |||
+ | ===setState=== | ||
+ | {| | ||
+ | ! Signature | ||
+ | | <static> setState(''name'', ''stateOperationName'') | ||
+ | |- | ||
+ | ! Description | ||
+ | | Sets the media state. | ||
+ | |- | ||
+ | ! Parameters | ||
+ | | | ||
+ | {| | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Description | ||
+ | |- | ||
+ | | name | ||
+ | | string | ||
+ | | The media name. | ||
+ | |- | ||
+ | | stateOperationName | ||
+ | | string | ||
+ | | An <tt>operationName</tt> from the agent states list. See [[MediaNamespace#State|State]]. | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | ==Type definitions== | ||
+ | The Media namespace includes the following object types: | ||
+ | * [[MediaNamespace#Media|Media]] | ||
+ | * [[MediaNamespace#State|State]] | ||
+ | * [[MediaNamespace#Device|Device]] | ||
+ | |||
+ | ===Media=== | ||
+ | {| | ||
+ | ! Description | ||
+ | | Represents the JSON structure of a media. | ||
+ | |- | ||
+ | ! Type | ||
+ | | Object | ||
+ | |- | ||
+ | ! Properties | ||
+ | | | ||
+ | {| | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Description | ||
+ | |- | ||
+ | | name | ||
+ | | string | ||
+ | | The media name. | ||
+ | |- | ||
+ | | state | ||
+ | | [[MediaNamespace#State|media.State]] | ||
+ | | The media state object. | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | ===State=== | ||
+ | {| | ||
+ | ! Description | ||
+ | | Represents the JSON structure of a media state. | ||
+ | |- | ||
+ | ! Type | ||
+ | | Object | ||
+ | |- | ||
+ | ! Properties | ||
+ | | | ||
+ | {| | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Description | ||
+ | |- | ||
+ | | type | ||
+ | | string | ||
+ | | The type of operation. Possible values are: | ||
+ | *LOGOUT | ||
+ | *READY | ||
+ | *PARTIAL_READY * | ||
+ | *NOT_READY | ||
+ | *NOT_READY_ACTION_CODE | ||
+ | *NOT_READY_AFTER_CALLWORK | ||
+ | *NOT_READY_AFTER_CALLWORK_ACTION_CODE | ||
+ | *DND_ON | ||
+ | *OUT_OF_SERVICE * | ||
+ | *LOGOUT_DND_ON * | ||
+ | *UNKNOWN * | ||
+ | |- | ||
+ | | displayName | ||
+ | | string | ||
+ | | The display name of the state. | ||
+ | |- | ||
+ | | operationName | ||
+ | | string | ||
+ | | The operation name to use with [[AgentNamespace#setState|agent.setState]] and [[MediaNamespace#setState|media.setState]]. | ||
+ | |} | ||
+ | |} | ||
+ | ''* States that are limited to an event and can't be applied by code'' | ||
+ | |||
+ | ===Device=== | ||
+ | {| | ||
+ | ! Description | ||
+ | | Represents the JSON structure of a media. | ||
+ | |- | ||
+ | ! Type | ||
+ | | Object | ||
+ | |- | ||
+ | ! Properties | ||
+ | | | ||
+ | {| | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Description | ||
+ | |- | ||
+ | | number | ||
+ | | string | ||
+ | | The phone number configured for an agent – the physical DN. | ||
+ | '''Note''': This property is applicable only for voice data. | ||
+ | |- | ||
+ | | dynamicPhoneNumber | ||
+ | | string | ||
+ | | The dynamic phone number configured for the agent for the session. | ||
+ | '''Note''': This property is applicable only for voice data. This property is applicable only when there is an alternate phone number and applicable for the current session only. | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | |||
+ | [[Category:V:PSAAS:Julie]] |
Latest revision as of 23:01, June 21, 2020
Media namespace
Important
This content may not be the latest Genesys Engage cloud content. To find the latest content, go to Genesys Engage cloud for Administrators.
Contents
[hide]Methods
The Media namespace includes the following methods:
getMediaList
Signature | <static> getMediaList() → {Array.<media.Media>} |
---|---|
Description | Get the media attributes. |
Returns | Array.<media.Media> |
setState
Signature | <static> setState(name, stateOperationName) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Sets the media state. | |||||||||
Parameters |
|
Type definitions
The Media namespace includes the following object types:
Media
Description | Represents the JSON structure of a media. | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Type | Object | |||||||||
Properties |
|
State
Description | Represents the JSON structure of a media state. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Object | ||||||||||||
Properties |
|
* States that are limited to an event and can't be applied by code
Device
Description | Represents the JSON structure of a media. | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Type | Object | |||||||||
Properties |
|
This page was last edited on June 21, 2020, at 23:01.
Comments or questions about this documentation? Contact us for support!