<divclass="block">Destroys the client and TDLib instance.</div>
</td>
</tr>
<trid="i1"class="rowColor">
<tdclass="colFirst"><code><ahref="../../../it/ernytech/tdlib/Response.html"title="class in it.ernytech.tdlib">Response</a></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../it/ernytech/tdlib/Client.html#execute(it.ernytech.tdlib.Request)">execute</a></span>​(<ahref="../../../it/ernytech/tdlib/Request.html"title="class in it.ernytech.tdlib">Request</a> request)</code></th>
<divclass="block">Receives incoming updates and request responses from TDLib.</div>
</td>
</tr>
<trid="i3"class="rowColor">
<tdclass="colFirst"><code>java.util.List<<ahref="../../../it/ernytech/tdlib/Response.html"title="class in it.ernytech.tdlib">Response</a>></code></td>
<divclass="block">Receives incoming updates and request responses from TDLib.</div>
</td>
</tr>
<trid="i4"class="altColor">
<tdclass="colFirst"><code>void</code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../it/ernytech/tdlib/Client.html#send(it.ernytech.tdlib.Request)">send</a></span>​(<ahref="../../../it/ernytech/tdlib/Request.html"title="class in it.ernytech.tdlib">Request</a> request)</code></th>
<divclass="block">Creates a new TDLib client.</div>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<sectionrole="region">
<ulclass="blockList">
<liclass="blockList"><aid="method.detail">
<!---->
</a>
<h3>Method Detail</h3>
<aid="send(it.ernytech.tdlib.Request)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>send</h4>
<pre>public void send​(<ahref="../../../it/ernytech/tdlib/Request.html"title="class in it.ernytech.tdlib">Request</a> request)</pre>
<divclass="block">Sends request to TDLib. May be called from any thread.</div>
<pre>public java.util.List<<ahref="../../../it/ernytech/tdlib/Response.html"title="class in it.ernytech.tdlib">Response</a>> receive​(double timeout,
int eventSize)</pre>
<divclass="block">Receives incoming updates and request responses from TDLib. May be called from any thread, but shouldn't be called simultaneously from two different threads.</div>
<dd><code>timeout</code> - Maximum number of seconds allowed for this function to wait for new data.</dd>
<dd><code>eventSize</code> - Maximum number of events allowed in list.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>An incoming update or request response list. The object returned in the response may be an empty list if the timeout expires.</dd>
</dl>
</li>
</ul>
<aid="receive(double)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>receive</h4>
<pre>public <ahref="../../../it/ernytech/tdlib/Response.html"title="class in it.ernytech.tdlib">Response</a> receive​(double timeout)</pre>
<divclass="block">Receives incoming updates and request responses from TDLib. May be called from any thread, but shouldn't be called simultaneously from two different threads.</div>
<dd><code>timeout</code> - Maximum number of seconds allowed for this function to wait for new data.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>An incoming update or request response. The object returned in the response may be a nullptr if the timeout expires.</dd>
</dl>
</li>
</ul>
<aid="execute(it.ernytech.tdlib.Request)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>execute</h4>
<pre>public <ahref="../../../it/ernytech/tdlib/Response.html"title="class in it.ernytech.tdlib">Response</a> execute​(<ahref="../../../it/ernytech/tdlib/Request.html"title="class in it.ernytech.tdlib">Request</a> request)</pre>
<divclass="block">Synchronously executes TDLib requests. Only a few requests can be executed synchronously. May be called from any thread.</div>