Search in sources :

Example 1 with OAuthResult

use of com.xabber.android.data.account.OAuthResult in project xabber-android by redsolution.

the class ConnectionThread method passwordRequest.

/**
     * Request to renew password using OAuth.
     */
private void passwordRequest() {
    final OAuthResult oAuthResult;
    try {
        oAuthResult = OAuthManager.getInstance().requestAccessToken(protocol, token);
    } catch (NetworkException e) {
        throw new RuntimeException(e);
    }
    runOnUiThread(new Runnable() {

        @Override
        public void run() {
            onPasswordReceived(oAuthResult);
        }
    });
}
Also used : OAuthResult(com.xabber.android.data.account.OAuthResult) NetworkException(com.xabber.android.data.NetworkException)

Aggregations

NetworkException (com.xabber.android.data.NetworkException)1 OAuthResult (com.xabber.android.data.account.OAuthResult)1