Hello,
While reading through the code, and using the SDK I came across the NotificationListener interface (link to the file, in the latest release: 229.0.0).
My point is the following: why is this interface marked as generically typed (NotificationListener<T>), when its methods do not returned object type with its type (T) but as ?.
In fact it says "hey I listen to notifications of type Exemple, but I will receive a notification of an unknown type (Object), where I should receive an Exemple notification". This doesn't seem coherent at all.
For this specific interface I would expect it to be like this:
package com.mypurecloud.sdk.v2.extensions.notifications;
public interface NotificationListener<T> {
String getTopic();
Class<T> getEventBodyClass();
void onEvent(NotificationEvent<T> event);
}
This would be much more logical / coherent.
By the way, I didn't dig in the code, but I think it should be fixed in all other interfaces/classes, if the same kind of thing happens anywhere else…
Thank you in advance for your response.
#PlatformSDK------------------------------
Gaël BLAISE
National Bank of Canada
------------------------------