Add missing generics
This commit is contained in:
parent
c1e423704d
commit
c6e7ae3bd5
|
@ -4,11 +4,16 @@ import it.tdlight.jni.TdApi;
|
||||||
|
|
||||||
public class NativeClient {
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue