package io.rapidpro.sdk.chat;

import retrofit2.Call;
import retrofit2.Callback;

/**
 * Created by John Cordeiro on 5/11/17.
 * Copyright © 2017 rapidpro-android-sdk, Inc. All rights reserved.
 */

public abstract class FcmClientCallback<T> implements Callback<T> {

    private final FcmClientChatPresenter presenter;

    public FcmClientCallback(FcmClientChatPresenter presenter) {
        this.presenter = presenter;
    }

    @Override
    public void onFailure(Call<T> call, Throwable t) {
        presenter.onRequestFailed();
    }
}

package io.rapidpro.sdk.chat;

import retrofit2.Call;
import retrofit2.Callback;

/**
 * Created by John Cordeiro on 5/11/17.
 * Copyright © 2017 rapidpro-android-sdk, Inc. All rights reserved.
 */

abstract class FcmClientCallback<T> implements Callback<T> {

    private final FcmClientChatPresenter presenter;

    FcmClientCallback(FcmClientChatPresenter presenter) {
        this.presenter = presenter;
    }

    @Override
    public void onFailure(Call<T> call, Throwable t) {
        presenter.onRequestFailed();
    }
}

Refactor callback visibility