tdlight/example/java/org/drinkless/tdlib
Vyacheslav dd77e4628f Strong typed API for synchronous TDLib method execution in Java interface
`Client.execute` in Java interface is now strongly typed: returned TDLib object type depends on the return type defined in the corresponding Function class.

When TDLib error is occurred, method now throws `Client.ExecutionError`.

This change adds compile-time protection against return type change and allows using this pattern:

```
try {
  TdApi.SpecificReturnType result = Client.execute(function);
  // work with strongly typed resultl without casting and type checks
} catch (Client.ExecutionError error) {
  // Handle error
}
```
2023-10-26 13:15:37 +03:00
..
example Update Java example to the latest TDLib version. 2023-08-16 00:44:12 +03:00
Client.java Strong typed API for synchronous TDLib method execution in Java interface 2023-10-26 13:15:37 +03:00