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

19 lines
498 B
Java
Raw Normal View History

2021-04-07 20:41:23 +02:00
package it.tdlight.tdnative;
2021-04-07 21:50:31 +02:00
import it.tdlight.jni.TdApi;
2020-10-10 03:26:24 +02:00
2021-10-22 19:52:47 +02:00
@SuppressWarnings("rawtypes")
2020-10-10 03:26:24 +02:00
public class NativeClient {
2020-10-12 18:02:48 +02:00
2021-10-22 19:10:45 +02:00
protected static native int createNativeClient();
2020-10-12 18:02:48 +02:00
2021-10-22 19:52:47 +02:00
protected static native void nativeClientSend(int nativeClientId, long eventId, TdApi.Function function);
2020-10-12 18:02:48 +02:00
2021-10-22 19:10:45 +02:00
protected static native int nativeClientReceive(int[] clientIds,
long[] eventIds,
TdApi.Object[] events,
double timeout);
2020-10-12 18:02:48 +02:00
2021-10-22 19:52:47 +02:00
protected static native TdApi.Object nativeClientExecute(TdApi.Function function);
2020-10-10 03:26:24 +02:00
}