2021-04-07 19:48:10 +02:00
|
|
|
package it.tdlight.common.internal;
|
2020-10-13 01:31:32 +02:00
|
|
|
|
2021-04-07 19:48:10 +02:00
|
|
|
import it.tdlight.tdnative.NativeClient;
|
2020-10-13 01:31:32 +02:00
|
|
|
import it.tdlight.jni.TdApi;
|
|
|
|
import it.tdlight.jni.TdApi.Function;
|
|
|
|
|
|
|
|
class NativeClientAccess extends NativeClient {
|
|
|
|
|
|
|
|
public static int create() {
|
|
|
|
return NativeClientAccess.createNativeClient();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static TdApi.Object execute(Function function) {
|
|
|
|
return NativeClientAccess.nativeClientExecute(function);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void send(int nativeClientId, long eventId, TdApi.Function function) {
|
|
|
|
NativeClientAccess.nativeClientSend(nativeClientId, eventId, function);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static int receive(int[] clientIds, long[] eventIds, TdApi.Object[] events, double timeout) {
|
|
|
|
return NativeClientAccess.nativeClientReceive(clientIds, eventIds, events, timeout);
|
|
|
|
}
|
|
|
|
}
|