T - User identify type in your account systempublic class YfyClientFactory<T> extends Object
| Constructor and Description |
|---|
YfyClientFactory(int maxCapacity,
YfyRequestConfig requestConfig)
Get a YfyClientFactory to build YfyClient with the same arguments
|
YfyClientFactory(int maxCapacity,
YfyRequestConfig requestConfig,
YfyRefreshListener<T> refreshListener)
Get a YfyClientFactory to build YfyClient with the same arguments
|
public YfyClientFactory(int maxCapacity,
YfyRequestConfig requestConfig,
YfyRefreshListener<T> refreshListener)
maxCapacity - Max number of LRU cache to cache user clientrequestConfig - Request config typerefreshListener - Personal refresh listenerpublic YfyClientFactory(int maxCapacity,
YfyRequestConfig requestConfig)
maxCapacity - Max number of LRU cache to cache user clientrequestConfig - Request config typepublic YfyClient getClient(T key)
key - User identify in your account systempublic YfyClient getClient(T key, String accessToken, String refreshToken)
key - User identify in your account systemaccessToken - User's access tokenrefreshToken - User's refresh tokenCopyright © 2017 YiFangYun. All rights reserved.