Reference Library
ThirdPartyCallController..::..UserData Class
NamespacesAvaya.ApplicationEnablement.DMCCThirdPartyCallControllerThirdPartyCallController..::..UserData
Class which represents both the incoming and outgoing UserData. UserData when sent to/from AES is sent as a string of hex bytes. However, most of the time, the application want to treat the UserData as a string of characters. This class allows the user to easily create the UserData by providing a constructor which takes a string and internally converts it to a string of hex bytes. In addition, the class provides utilities to easily allow the user to decode the string of hex bytes to a regular string (very handy for dealing with incoming UserData).
Declaration Syntax
C#Visual BasicVisual C++
public class UserData
Public Class UserData
public ref class UserData
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
ThirdPartyCallController..::..UserData(String)
Construct the UserData from the string that is passed in. For example, if a UserData object is constructed as follows: UserData Ud; Ud = new UserData("FOO"); Then the data which is actually stored for Ud is 70, 79, 79 and the length of the data is 3.

ThirdPartyCallController..::..UserData(array<Byte>[]()[][], Int32)
Construct the UserData from the array of bytes that is passed in.

decodeDataToString()()()()
Decode the user data to a hex string.

For example, if the user data is "FOO", it will be converted to hex and passed in the request/response as "464F4F". Using decodeDataToString(), "464F4F" will be returned which is the hex string returned in the event or response.


decodeDataToText()()()()
Decode the user data to a text string.

For example, if the user data is "FOO", it will be converted to hex and passed in the request/response as "464F4F", Using the hex string returned in the event or response, decodeDataToText() will return "FOO".

Supported in: 6.2.0


getUserDataAsByteArray
Get the UserData as the raw array of bytes

getUserDataAsString
Retrieve the user data array of bytes as a userString.

For Example, if the user data is "FOO", it will be converted to hex and passed in the request/response as "464F4F". Using the string returned in the event or response, getUserDataAsString will return the decimal value of each character as "525452705270", where decimal 52 = "4" decimal 54 = "6" etc.


getUserDataSize
Get the number of bytes that are in the UserData.

Inheritance Hierarchy
Object
ThirdPartyCallController..::..UserData

Assembly: ServiceProvider (Module: ServiceProvider)