InteractionAttributes message = new InteractionAttributes();
message.setInteractionId("123");
// Example of marshaling a message to kvlist
KeyValueCollection kv = OpenMediaAttributesBinding.marshal(message);
// Example of unmarshaling a kvilst to the message object
// if kv
isn't null then result1
won't be null
InteractionAttributes result1
= (InteractionAttributes) OpenMediaAttributesBinding.unmarshal("InteractionAttributes", kv);
// ... process result
// Example of unmarshaling a kvilst to a apropriate message object (autoresolving)
// if kv
isn't null and kv
contains 'NumberOfInteractions' then result2
type will be WorkbinStatisticDetails
// else if kv
isn't null and kv
contains 'WorkbinType' then result2
type will be WorkbinTypeDetails
// else if kv
isn't null and kv
contains 'InteractionId' then result2
type will be InteractionAttributes
// else null will be returned
Object result2 = OpenMediaAttributesBinding.unmarshal(kv);
if (result2 instanceof InteractionAttributes) {
InteractionAttributes result = (InteractionAttributes)result2;
// ... process result
}
// Example of marshaling using OpenMediaAttributesFactory
OpenMediaAttributesFactory factory = new OpenMediaAttributesFactory();
KeyValueCollection kvlist = factory.marshal(message);
// Example of unmarshaling using OpenMediaAttributesFactory
InteractionAttributes message2 = (InteractionAttributes) factory.unmarshal(kvlist);
Class | Description |
---|---|
Converter | |
InteractionAttributes | |
MCRInteractionsResolver | |
OpenMediaAttributesBinding |
Class contains functionality for marshaling/unmarshaling data between key value collection
and appropriate object of predefined class.
|
OpenMediaAttributesFactory | |
WorkbinStatisticDetails | |
WorkbinType | |
WorkbinTypeDetails |
Exception | Description |
---|---|
OpenMediaAttributesBinding.KVBindingException |
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.