1 package com
.owncloud
.android
.authenticator
.oauth2
;
3 import org
.json
.JSONObject
;
6 * Listener that expects results from OAuth2GetCodeRunnable class.
8 * @author SolidGear S.L.
11 public interface OnOAuth2GetCodeResultListener
{
13 enum ResultOAuthType
{
14 OK_SSL
, OK_NO_SSL
, SSL_INIT_ERROR
, HOST_NOT_AVAILABLE
, TIMEOUT
, NO_NETWORK_CONNECTION
, INCORRECT_ADDRESS
, INSTANCE_NOT_CONFIGURED
, FILE_NOT_FOUND
, UNKNOWN_ERROR
, WRONG_CONNECTION
, SSL_UNVERIFIED_SERVER
, BAD_OC_VERSION
17 public void onOAuth2GetCodeResult(ResultOAuthType type
, JSONObject code
);