<li><ahref="../../../it/ernytech/tdbot/ConstructorDetector.html"title="class in it.ernytech.tdbot"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../it/ernytech/tdbot/UserClient.html"title="class in it.ernytech.tdbot"><spanclass="typeNameLink">Next Class</span></a></li>
<dd><code><ahref="../../../it/ernytech/tdbot/BotClient.html"title="class in it.ernytech.tdbot">BotClient</a></code>, <code><ahref="../../../it/ernytech/tdbot/UserClient.html"title="class in it.ernytech.tdbot">UserClient</a></code></dd>
</dl>
<hr>
<pre>public class <spanclass="typeNameLabel">EasyClient</span>
extends java.lang.Object</pre>
<divclass="block">Interface for easy interaction with TDLib for bot, used to implement other clients such as BotClient and UserClient.</div>
<thclass="colConstructorName"scope="row"><code><spanclass="memberNameLink"><ahref="../../../it/ernytech/tdbot/EasyClient.html#%3Cinit%3E(it.ernytech.tdbot.AuthorizationHandler)">EasyClient</a></span>​(<ahref="../../../it/ernytech/tdbot/AuthorizationHandler.html"title="interface in it.ernytech.tdbot">AuthorizationHandler</a> authorizationHandler)</code></th>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../it/ernytech/tdbot/EasyClient.html#authorizationHandler(it.ernytech.tdlib.TdApi.UpdateAuthorizationState)">authorizationHandler</a></span>​(<ahref="../../../it/ernytech/tdlib/TdApi.UpdateAuthorizationState.html"title="class in it.ernytech.tdlib">TdApi.UpdateAuthorizationState</a> authorizationState)</code></th>
<tdclass="colLast">
<divclass="block">Manages the authorization state updates.</div>
<divclass="block">Destroys the client and TDLib instance.</div>
</td>
</tr>
<trid="i2"class="altColor">
<tdclass="colFirst"><code>protected <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/tdbot/EasyClient.html#execute(it.ernytech.tdlib.TdApi.Function)">execute</a></span>​(<ahref="../../../it/ernytech/tdlib/TdApi.Function.html"title="class in it.ernytech.tdlib">TdApi.Function</a> function)</code></th>
<tdclass="colLast">
<divclass="block">Send a request to tdlib, wait for the result and return the response.</div>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../it/ernytech/tdbot/EasyClient.html#execute(it.ernytech.tdlib.TdApi.Function,it.ernytech.tdlib.utils.ReceiveCallback,it.ernytech.tdlib.utils.ErrorCallback)">execute</a></span>​(<ahref="../../../it/ernytech/tdlib/TdApi.Function.html"title="class in it.ernytech.tdlib">TdApi.Function</a> function,
<ahref="../../../it/ernytech/tdlib/utils/ReceiveCallback.html"title="interface in it.ernytech.tdlib.utils">ReceiveCallback</a> receiveCallback,
<ahref="../../../it/ernytech/tdlib/utils/ErrorCallback.html"title="interface in it.ernytech.tdlib.utils">ErrorCallback</a> errorCallback)</code></th>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../it/ernytech/tdbot/EasyClient.html#send(it.ernytech.tdlib.TdApi.Function)">send</a></span>​(<ahref="../../../it/ernytech/tdlib/TdApi.Function.html"title="class in it.ernytech.tdlib">TdApi.Function</a> function)</code></th>
<tdclass="colLast">
<divclass="block">Send a request to tdlib without waiting for the result.</div>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../it/ernytech/tdbot/EasyClient.html#setCloseCallback(it.ernytech.tdlib.utils.CloseCallback)">setCloseCallback</a></span>​(<ahref="../../../it/ernytech/tdlib/utils/CloseCallback.html"title="interface in it.ernytech.tdlib.utils">CloseCallback</a> closeCallback)</code></th>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../it/ernytech/tdbot/EasyClient.html#setErrorCallback(it.ernytech.tdlib.utils.ErrorCallback)">setErrorCallback</a></span>​(<ahref="../../../it/ernytech/tdlib/utils/ErrorCallback.html"title="interface in it.ernytech.tdlib.utils">ErrorCallback</a> errorCallback)</code></th>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="../../../it/ernytech/tdbot/EasyClient.html#setUpdateCallback(it.ernytech.tdlib.utils.ReceiveCallback)">setUpdateCallback</a></span>​(<ahref="../../../it/ernytech/tdlib/utils/ReceiveCallback.html"title="interface in it.ernytech.tdlib.utils">ReceiveCallback</a> receiveCallback)</code></th>
<pre>protected EasyClient​(<ahref="../../../it/ernytech/tdbot/AuthorizationHandler.html"title="interface in it.ernytech.tdbot">AuthorizationHandler</a> authorizationHandler)</pre>
<dd><code>authorizationHandler</code> - Callback to be implemented in the client to manage the authorization.</dd>
</dl>
</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.TdApi.Function)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>send</h4>
<pre>protected long send​(<ahref="../../../it/ernytech/tdlib/TdApi.Function.html"title="class in it.ernytech.tdlib">TdApi.Function</a> function)</pre>
<divclass="block">Send a request to tdlib without waiting for the result.</div>
<pre>protected void execute​(<ahref="../../../it/ernytech/tdlib/TdApi.Function.html"title="class in it.ernytech.tdlib">TdApi.Function</a> function,
<dd><code>function</code> - TDLib API function representing a request to TDLib.</dd>
<dd><code>receiveCallback</code> - Interface of callback for receive incoming update or request response.</dd>
<dd><code>errorCallback</code> - Interface of callback for receive incoming error response.</dd>
</dl>
</li>
</ul>
<aid="execute(it.ernytech.tdlib.TdApi.Function)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>execute</h4>
<pre>protected <ahref="../../../it/ernytech/tdlib/Response.html"title="class in it.ernytech.tdlib">Response</a> execute​(<ahref="../../../it/ernytech/tdlib/TdApi.Function.html"title="class in it.ernytech.tdlib">TdApi.Function</a> function)</pre>
<divclass="block">Send a request to tdlib, wait for the result and return the response.</div>
<pre>protected void setUpdateCallback​(<ahref="../../../it/ernytech/tdlib/utils/ReceiveCallback.html"title="interface in it.ernytech.tdlib.utils">ReceiveCallback</a> receiveCallback)</pre>
<pre>protected void setErrorCallback​(<ahref="../../../it/ernytech/tdlib/utils/ErrorCallback.html"title="interface in it.ernytech.tdlib.utils">ErrorCallback</a> errorCallback)</pre>
<pre>protected void setCloseCallback​(<ahref="../../../it/ernytech/tdlib/utils/CloseCallback.html"title="interface in it.ernytech.tdlib.utils">CloseCallback</a> closeCallback)</pre>
<pre>protected void authorizationHandler​(<ahref="../../../it/ernytech/tdlib/TdApi.UpdateAuthorizationState.html"title="class in it.ernytech.tdlib">TdApi.UpdateAuthorizationState</a> authorizationState)</pre>
<divclass="block">Manages the authorization state updates.</div>
<li><ahref="../../../it/ernytech/tdbot/ConstructorDetector.html"title="class in it.ernytech.tdbot"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../it/ernytech/tdbot/UserClient.html"title="class in it.ernytech.tdbot"><spanclass="typeNameLink">Next Class</span></a></li>