Add missing generics

This commit is contained in:
Andrea Cavalli 2021-10-22 19:10:45 +02:00
parent c1e423704d
commit c6e7ae3bd5
1 changed files with 9 additions and 4 deletions

View File

@ -4,11 +4,16 @@ import it.tdlight.jni.TdApi;
public class NativeClient {
protected static native int createNativeClient();
protected static native int createNativeClient();
protected static native void nativeClientSend(int nativeClientId, long eventId, TdApi.Function function);
protected static native <R extends TdApi.Object> void nativeClientSend(int nativeClientId,
long eventId,
TdApi.Function<R> function);
protected static native int nativeClientReceive(int[] clientIds, long[] eventIds, TdApi.Object[] events, double timeout);
protected static native int nativeClientReceive(int[] clientIds,
long[] eventIds,
TdApi.Object[] events,
double timeout);
protected static native TdApi.Object nativeClientExecute(TdApi.Function function);
protected static native <R extends TdApi.Object> TdApi.Object nativeClientExecute(TdApi.Function<R> function);
}