public abstract class AbstractEventCallback<T> extends Object implements retrofit2.Callback<okhttp3.ResponseBody>
| Modifier and Type | Field and Description |
|---|---|
protected io.reactivex.FlowableEmitter<T> |
emitter |
| Constructor and Description |
|---|
AbstractEventCallback(io.reactivex.FlowableEmitter<T> emitter) |
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(retrofit2.Call<okhttp3.ResponseBody> call,
Throwable t) |
void |
onResponse(retrofit2.Call<okhttp3.ResponseBody> call,
retrofit2.Response<okhttp3.ResponseBody> response) |
protected abstract boolean |
processLine(String line,
BufferedReader reader,
String logID) |
protected io.reactivex.FlowableEmitter<T> emitter
public AbstractEventCallback(io.reactivex.FlowableEmitter<T> emitter)
public void onResponse(retrofit2.Call<okhttp3.ResponseBody> call,
retrofit2.Response<okhttp3.ResponseBody> response)
onResponse in interface retrofit2.Callback<okhttp3.ResponseBody>protected abstract boolean processLine(String line, BufferedReader reader, String logID) throws IOException
IOExceptionpublic void onFailure(retrofit2.Call<okhttp3.ResponseBody> call,
Throwable t)
onFailure in interface retrofit2.Callback<okhttp3.ResponseBody>Copyright © 2025. All rights reserved.