T - The type of the expected reply data.
public class ReplyCallback<T>
extends ConsumerCallback
Represents a callback for an OCast reply.
| Constructor and Description |
|---|
ReplyCallback(java.lang.Class<T> replyClass,
Consumer<T> onSuccess,
Consumer<org.ocast.sdk.core.models.OCastError> onError)
Creates an instance of
class ReplyCallback. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<T> |
getReplyClass()
The expected class of the reply data.
|
getOnError, getOnSuccesspublic ReplyCallback(@NotNull
java.lang.Class<T> replyClass,
@NotNull
Consumer<T> onSuccess,
@NotNull
Consumer<org.ocast.sdk.core.models.OCastError> onError)
Creates an instance of class ReplyCallback.
replyClass - The expected class of the reply data.class ReplyCallback