Class WarningManagerService
java.lang.Object
com.github.badpop.jcoinbase.service.WarningManagerService
public class WarningManagerService
extends java.lang.Object
An utility class that allow JCoinbase to log warning(s) returned by the coinbase api
-
Constructor Summary
Constructors Constructor Description WarningManagerService()
-
Method Summary
Modifier and Type Method Description <T> void
alertIfCoinbaseHasReturnedWarnings(DataDto<T> data)
Log coinbase warnings if presents, do nothing otherwise<T> void
alertIfCoinbaseHasReturnedWarnings(PaginatedResponseDto<T> data)
Log coinbase warnings if presents, do nothing otherwiseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
WarningManagerService
public WarningManagerService()
-
-
Method Details
-
alertIfCoinbaseHasReturnedWarnings
Log coinbase warnings if presents, do nothing otherwise- Type Parameters:
T
- the type wanted initially by making the request- Parameters:
data
- theDataDto
computed from the coinbase response
-
alertIfCoinbaseHasReturnedWarnings
Log coinbase warnings if presents, do nothing otherwise- Type Parameters:
T
- the type wanted initially by making the request- Parameters:
data
- theDataDto
computed from the coinbase response
-