Good evening Forum:
I tried to use the following references to run a test of the PureCloud Guest Chat Client but I could not get some issues solved and could not be able to find any documentation related with those:
References:
- https://developer.mypurecloud.com/api/rest/client-libraries/java-guest/index.html#building_an_apiclient_instance
- https://github.com/MyPureCloud/purecloud-guest-chat-client-java/blob/master/build/src/main/java/com/mypurecloud/sdk/v2/guest/model/WebChatMemberInfo.java
Issues:
- In the first reference the WebChatMemberInfo Java class has a method called setProfileImageUrl(String imageUrl): void. And the method documented in the second reference is setAvatarImageUrl(String imageUrl): void. I do not know if it might be changed the behavior of the chat client, but if I print the CreateWebChatConversationResponse object, after I invoke the CreateWebChatConversationRequest , the WebChatMemberInfo object displayName and avatarImageUrl are null:
class CreateWebChatConversationResponse { id: <SomeIDNotNull> jwt: <SomeJWTNotNull> eventStreamUri: <SomeEventStreamUriNotNull> member: class WebChatMemberInfo { id: <SomeIDNotNull> displayName: null avatarImageUrl: null role: null joinDate: null leaveDate: null authenticatedGuest: null customFields: null state: null } }
It returned the CreateWebChatConversationResponse id, jwt and eventStremaUri well - as we know.
-
I think this issue could be related to the firstone because of the CreateWebChatConversationRequest mehod called setMemberInfo(info). In the first reference info does not exist, but in the third reference the method specified that info is a GuestMemberInfo object, not a WebChatMemberInfo object. So the request can get done if we use a GuestMemberInfo object but not if we use a WebChatMemberInfo object. If it happens, the WebChatMemberInfo object is not used in the code. In addition, the WebChatMemberInfo id is related to the id if the first session of the conversation created related to an external participant whose wrapupcode was the "Default Wrap-up Code".
-
And finally the third issue was in the momment I create the WebSocket object´s listener, because it could not find the WebSocketAdapter java interface , so I had to use the WebSocketListener interface and rewrite its methods.
I am not sure if is necessary get those changes made, in the test I got confused with some concepts but I understood that the connection has to be stablised via the CreateWebChatConversationRequest without authentication.
I appreciate your help in order to get this issues figured out and to get some concepts understood.
Thank you.