Interface QueryResultHandler<T extends TdApi.Object>
- Type Parameters:
T
- The object type that is returned by the function
public interface QueryResultHandler<T extends TdApi.Object>
Interface for handler for results of queries with callback to TDLib.
- Author:
- Pavel Vorobyev
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onResult
(T obj, TdApi.Error error) Callback called on result of query to TDLib.
-
Method Details
-
onResult
Callback called on result of query to TDLib.- Parameters:
obj
- Response object fromTdApi.Function
query or null ifTdApi.Error
receivederror
- Error result of query to TDLib or null
-