Add subscription to conversations .net sdk

Hi There,

I am trying to subscribe to the conversations topic, I need to see the data as it is seen in the notificationtester, full with participants etc. However, I do not know which object to use in .NET to subscribe to this topic. I have first tried to subscribe to the "presenced" topic with the following and i did receive the notifications via the socket:

handler.AddSubscription($"v2.users.{_me.Id}.presence", typeof(PresenceEventUserPresence));

However, for conversations I had no luck. I only receive the heartbeat metadata. I have subscribed to the following objects: ConversationEventTopicCall and ConversationCallEventTopicCallConversation with no success.

Could you please advise which would be the correct object? I need the same data that is obtained by subscribing to v2.users.52c1b5bf-5555-4281-8038-31b0291574aa.conversations in the API tester.

Thank you

Hello,

The code shown under "Full example:", in "Using NotificationHandler" section, on this dev forum page appears to leverage ConversationNotification.

handler.AddSubscription($"v2.users.{_me.Id}.conversations", typeof(ConversationNotification));

Regards,

There's a link in the following section that links to the class in the SDK that provides the mapping data: https://developer.genesys.cloud/devapps/sdk/dotnet#notification-topics-and-classes-for-deserialization links to https://github.com/MyPureCloud/platform-client-sdk-dotnet/blob/master/build/src/PureCloudPlatform.Client.V2/Client/NotificationTopics.cs.

It's also in raw JSON in the root of the repo: https://github.com/MyPureCloud/platform-client-sdk-dotnet/blob/master/notificationMappings.json#L416

The correct class is ConversationEventTopicConversation.

ETA: I've reported the issue with the example in the doc page

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.