Interface GenericCallBack<T>
- Type Parameters:
T- The type of data returned in case of success.
public interface GenericCallBack<T>
A generic callback interface to handle API responses.
-
Method Summary
-
Method Details
-
success
Called when the operation is successful.- Parameters:
data- The data returned from the operation.
-
error
Called when the operation fails.- Parameters:
error- The error message.
-