2021-04-07 19:48:10 +02:00
|
|
|
package it.tdlight.tdnative;
|
|
|
|
|
2021-04-07 21:55:08 +02:00
|
|
|
import it.tdlight.jni.TdApi;
|
2021-04-07 19:48:10 +02:00
|
|
|
|
|
|
|
public class NativeClient {
|
|
|
|
|
2021-09-27 19:27:13 +02:00
|
|
|
protected static native int createNativeClient();
|
2021-04-07 19:48:10 +02:00
|
|
|
|
2021-10-20 23:51:06 +02:00
|
|
|
protected static native <R extends TdApi.Object> void nativeClientSend(int nativeClientId, long eventId,
|
|
|
|
TdApi.Function<R> function);
|
2021-04-07 19:48:10 +02:00
|
|
|
|
2021-09-27 19:27:13 +02:00
|
|
|
protected static native int nativeClientReceive(int[] clientIds, long[] eventIds, TdApi.Object[] events,
|
|
|
|
double timeout);
|
2021-04-07 19:48:10 +02:00
|
|
|
|
2021-10-20 23:51:06 +02:00
|
|
|
protected static native <R extends TdApi.Object> TdApi.Object nativeClientExecute(TdApi.Function<R> function);
|
2021-04-07 19:48:10 +02:00
|
|
|
}
|