Changing the user state does not seem to be working

I am trying out the latest SDK (12.0.0) and changing the user state does not seem to be working anymore. :frowning:

The getPresenceDefinition() according to the documentation method returns OrganisationPresenceEntityListing (which has entities or type OrganizationPresence). I store this with the application.

When I want to change the state of the agent and try to setup UserPresence by calling the setPresenceDefinition() it now expect an PresenceDefinition object as a parameter rather than OrganizationPresence object, which I had retrieved by called the above API.

Can you confirm if this is a bug?

(Note: I had followed the User Presence Tutorial @ https://developer.mypurecloud.com/api/tutorials/presence/#java . I believe this won;t work too :slight_smile: )

I've updated the tutorial. The SDK is correct. https://github.com/MyPureCloud/developercenter-tutorials/blob/master/presence/java/src/com/genesys/Main.java

Thanks for updating the tutorial.

On the tutorial, I can now see how the mapping is done between OrganizationPresence and PresenceDefinition.

So on the latest version parameters seems to have changed. Where can I get a list of similar changes between the SDKs?

You can see each release with a count of the changes here: https://github.com/MyPureCloud/platform-client-sdk-java/releases

To view the changes in each release, look at this file's history: https://github.com/MyPureCloud/platform-client-sdk-java/blob/master/releaseNotes.md

1 Like