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 TypeMethodDescriptionvoidonResult(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.Functionquery or null ifTdApi.Errorreceivederror- Error result of query to TDLib or null
-