2022-10-04 12:43:24 +02:00
|
|
|
package it.tdlight.reactiveapi;
|
|
|
|
|
|
|
|
import it.tdlight.jni.TdApi.Object;
|
|
|
|
import it.tdlight.reactiveapi.Event.OnRequest;
|
|
|
|
|
|
|
|
public class ChannelConsumerTdlibRequest {
|
|
|
|
|
|
|
|
private ChannelConsumerTdlibRequest() {
|
|
|
|
}
|
|
|
|
|
2022-10-05 02:26:30 +02:00
|
|
|
public static EventConsumer<OnRequest<Object>> create(ChannelFactory channelFactory, ChannelsParameters channelsParameters) {
|
|
|
|
return channelFactory.newConsumer(channelsParameters,
|
2022-10-04 12:43:24 +02:00
|
|
|
true,
|
|
|
|
ChannelCodec.TDLIB_REQUEST,
|
2022-10-05 02:26:30 +02:00
|
|
|
Channel.TDLIB_REQUEST.getChannelName()
|
2022-10-04 12:43:24 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|