Commit 68cc8c05 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Add methods notifyRetryingConnection() and notifyConnecting() to ConnectivityManagerApi

parent 8c1d7c85
......@@ -30,4 +30,8 @@ public interface ConnectivityManagerApi {
void resetConnectivityStateList();
void notifySessionEstablished(String hostname);
void notifyRetryingConnection(String hostname);
void notifyConnecting(String hostname);
}
......@@ -136,6 +136,12 @@ import io.reactivex.subjects.BehaviorSubject;
return list;
}
@Override
public void notifyRetryingConnection(String hostname) {
connectivitySubject.onNext(
new ServerConnectivity(hostname, ServerConnectivity.STATE_RETRYING_CONNECTION));
}
@Override
public void notifySessionEstablished(String hostname) {
serverConnectivityList.put(hostname, ServerConnectivity.STATE_SESSION_ESTABLISHED);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment