Commit 67de14f4 authored by Tiago Cunha's avatar Tiago Cunha

Improved class naming

parent bfff726e
...@@ -9,7 +9,7 @@ import chat.rocket.android.R; ...@@ -9,7 +9,7 @@ import chat.rocket.android.R;
import chat.rocket.android.RocketChatCache; import chat.rocket.android.RocketChatCache;
import chat.rocket.android.helper.LogcatIfError; import chat.rocket.android.helper.LogcatIfError;
import chat.rocket.android.helper.OkHttpHelper; import chat.rocket.android.helper.OkHttpHelper;
import chat.rocket.android.helper.ServerHelper; import chat.rocket.android.helper.ServerPolicyHelper;
import chat.rocket.android.helper.TextUtils; import chat.rocket.android.helper.TextUtils;
import chat.rocket.android.model.ServerConfig; import chat.rocket.android.model.ServerConfig;
import chat.rocket.android.realm_helper.RealmObjectObserver; import chat.rocket.android.realm_helper.RealmObjectObserver;
...@@ -40,10 +40,10 @@ public class InputHostnameFragment extends AbstractServerConfigFragment { ...@@ -40,10 +40,10 @@ public class InputHostnameFragment extends AbstractServerConfigFragment {
} }
private void handleConnect() { private void handleConnect() {
final String hostname = ServerHelper.enforceHostname(getHostname()); final String hostname = ServerPolicyHelper.enforceHostname(getHostname());
ServerHelper.isApiVersionValid(OkHttpHelper.getClientForUploadFile(), hostname, ServerPolicyHelper.isApiVersionValid(OkHttpHelper.getClientForUploadFile(), hostname,
new ServerHelper.Callback() { new ServerPolicyHelper.Callback() {
@Override @Override
public void isValid() { public void isValid() {
getActivity().runOnUiThread(() -> onServerValid(hostname)); getActivity().runOnUiThread(() -> onServerValid(hostname));
......
...@@ -11,7 +11,7 @@ import okhttp3.Request; ...@@ -11,7 +11,7 @@ import okhttp3.Request;
import okhttp3.Response; import okhttp3.Response;
import okhttp3.ResponseBody; import okhttp3.ResponseBody;
public class ServerHelper { public class ServerPolicyHelper {
private static final String DEFAULT_HOST = ".rocket.chat"; private static final String DEFAULT_HOST = ".rocket.chat";
private static final String API_INFO_PATH = "/api/info"; private static final String API_INFO_PATH = "/api/info";
......
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