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 Type
    Method
    Description
    void
    onResult(T obj, TdApi.Error error)
    Callback called on result of query to TDLib.
  • Method Details

    • onResult

      void onResult(T obj, TdApi.Error error)
      Callback called on result of query to TDLib.
      Parameters:
      obj - Response object from TdApi.Function query or null if TdApi.Error received
      error - Error result of query to TDLib or null