-Correct OnErrorWebSocker to OnErrorWebSocket
This commit is contained in:
parent
d2d17bb6b4
commit
17f74b4774
3 changed files with 9 additions and 13 deletions
|
@ -93,7 +93,7 @@ public abstract class GrapheneApiGenerator {
|
|||
*
|
||||
* Interface to catch only errors in connection with sockets
|
||||
* */
|
||||
private static GrapheneApiGenerator.OnErrorWebSocker onErrorWebSocker;
|
||||
private static OnErrorWebSocket onErrorWebSocket;
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -247,7 +247,7 @@ public abstract class GrapheneApiGenerator {
|
|||
}
|
||||
}), CryptoNetManager.getURL(CryptoNet.BITSHARES));
|
||||
thread.setActivity(activity); //To catch websocket errors to user interface
|
||||
thread.setOnErrorWebSocker(onErrorWebSocker); //To deliver websocket errors to user interface
|
||||
thread.setOnErrorWebSocker(onErrorWebSocket); //To deliver websocket errors to user interface
|
||||
thread.start();
|
||||
}
|
||||
|
||||
|
@ -740,15 +740,15 @@ public abstract class GrapheneApiGenerator {
|
|||
GrapheneApiGenerator.onResponsesWebSocker = onResponsesWebSocker;
|
||||
}
|
||||
|
||||
public static void setOnErrorWebSocker(OnErrorWebSocker onErrorWebSocker) {
|
||||
GrapheneApiGenerator.onErrorWebSocker = onErrorWebSocker;
|
||||
public static void setOnErrorWebSocket(OnErrorWebSocket onErrorWebSocket) {
|
||||
GrapheneApiGenerator.onErrorWebSocket = onErrorWebSocket;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Interface to catch errors in connection with sockets
|
||||
* */
|
||||
public interface OnErrorWebSocker{
|
||||
public interface OnErrorWebSocket {
|
||||
void onError(Exception exception);
|
||||
}
|
||||
|
||||
|
|
|
@ -2,11 +2,9 @@ package cy.agorise.crystalwallet.network;
|
|||
|
||||
import android.app.Activity;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.util.Log;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
||||
|
@ -70,7 +68,7 @@ public abstract class CryptoNetManager {
|
|||
public static void addCryptoNetURL(CryptoNet crypto,
|
||||
String[] urls,
|
||||
final Activity activity,
|
||||
final GrapheneApiGenerator.OnErrorWebSocker onErrorWebSocker,
|
||||
final GrapheneApiGenerator.OnErrorWebSocket onErrorWebSocker,
|
||||
final boolean showNormalError){
|
||||
addCryptoNetURL(crypto,urls,activity,onErrorWebSocker,null,showNormalError);
|
||||
}
|
||||
|
@ -95,7 +93,7 @@ public abstract class CryptoNetManager {
|
|||
public static void addCryptoNetURL(CryptoNet crypto,
|
||||
String[] urls,
|
||||
final Activity activity,
|
||||
final GrapheneApiGenerator.OnErrorWebSocker onErrorWebSocker,
|
||||
final GrapheneApiGenerator.OnErrorWebSocket onErrorWebSocker,
|
||||
final GrapheneApiGenerator.OnResponsesWebSocket onResponsesWebSocket,
|
||||
final boolean showNormalError) {
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ import android.util.Log;
|
|||
import android.widget.Toast;
|
||||
|
||||
import com.neovisionaries.ws.client.WebSocket;
|
||||
import com.neovisionaries.ws.client.WebSocketException;
|
||||
import com.neovisionaries.ws.client.WebSocketFactory;
|
||||
import com.neovisionaries.ws.client.WebSocketListener;
|
||||
|
||||
|
@ -14,7 +13,6 @@ import java.util.HashMap;
|
|||
|
||||
import cy.agorise.crystalwallet.activities.LoadingActivity;
|
||||
import cy.agorise.crystalwallet.apigenerator.GrapheneApiGenerator;
|
||||
import cy.agorise.crystalwallet.dialogs.material.DialogMaterial;
|
||||
|
||||
/**
|
||||
* Created by henry on 8/10/2017.
|
||||
|
@ -43,7 +41,7 @@ public class WebSocketThread extends Thread {
|
|||
*
|
||||
* Interface to catch only errors in connection with sockets
|
||||
* */
|
||||
private GrapheneApiGenerator.OnErrorWebSocker onErrorWebSocker;
|
||||
private GrapheneApiGenerator.OnErrorWebSocket onErrorWebSocker;
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -239,7 +237,7 @@ public class WebSocketThread extends Thread {
|
|||
}
|
||||
|
||||
|
||||
public void setOnErrorWebSocker(GrapheneApiGenerator.OnErrorWebSocker onErrorWebSocker) {
|
||||
public void setOnErrorWebSocker(GrapheneApiGenerator.OnErrorWebSocket onErrorWebSocker) {
|
||||
this.onErrorWebSocker = onErrorWebSocker;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue