tdlight-java/src/main/java/it/tdlight/tdnative/NativeClient.java

19 lines
498 B
Java
Raw Normal View History

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
2021-10-22 19:53:23 +02:00
@SuppressWarnings("rawtypes")
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-22 19:53:23 +02:00
protected static native void nativeClientSend(int nativeClientId, long eventId, TdApi.Function function);
2021-04-07 19:48:10 +02:00
2021-10-22 12:54:28 +02:00
protected static native int nativeClientReceive(int[] clientIds,
long[] eventIds,
TdApi.Object[] events,
2021-09-27 19:27:13 +02:00
double timeout);
2021-04-07 19:48:10 +02:00
2021-10-22 19:53:23 +02:00
protected static native TdApi.Object nativeClientExecute(TdApi.Function function);
2021-04-07 19:48:10 +02:00
}