Package com.example.airplanned.api
Class SlimCallback<T>
- java.lang.Object
-
- com.example.airplanned.api.SlimCallback<T>
-
- Type Parameters:
T
- generalized type
- All Implemented Interfaces:
retrofit2.Callback<T>
public class SlimCallback<T> extends Object implements retrofit2.Callback<T>
This class generalized the call back function in retrofit calls- Author:
- Saiyara Iftekharuzzaman
-
-
Constructor Summary
Constructors Constructor Description SlimCallback(LambdaInterface<T> lambdaInterface)
constructor for slimback call
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onFailure(retrofit2.Call<T> call, Throwable t)
handles retrofit failure responsevoid
onResponse(retrofit2.Call<T> call, retrofit2.Response<T> response)
handles retrofit call response
-
-
-
Constructor Detail
-
SlimCallback
public SlimCallback(LambdaInterface<T> lambdaInterface)
constructor for slimback call- Parameters:
lambdaInterface
- lambdaInterface class
-
-