If I have a conversation call running, the service getConversationsCalls returns a list with 1 entity. This entity is a conversation with participant object filled. But in the same circumstances the service getConversationsEmails returns a conversation with an empty participants object. Although it appears to make sense, the service getConversationsEmails is supposed to return something at all? Do I need to validate the response structure in order to know that this conversation does not refer to an email?
You should determine the type of media that's in the conversation before using the media-specific endpoints. It doesn't make sense to use the email endpoints on a voice conversation, for example.
Use case:
I use a Webapp to handle api calls. When I load the application, in case that I have any conversation of any kind already running (or in case of page refresh) I need to check if theres any active conversation to load them.
So what im doing is to call these two services sequentially and check if the returned list of each has items or not.
Until now I assumed if there were elements in each list, they were of that particulary type (voice or email).
So I need to check their structure too, in order to validate conversation's type and the endpoint's type.
In that case, can you give me a use case cenario where I should use only getConversationsEmails() for example? If I will always have to validate the response, whats the meaning of this different endpoints?