marisa.grasso | 2023-04-24 15:08:50 UTC | #1
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
Jerome.Saint-Marc | 2023-04-24 16:02:23 UTC | #2
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,
tim.smith | 2023-04-24 17:06:22 UTC | #3
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
system | 2023-05-25 17:02:24 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 19607