blob: 492b2b99f68ca47110e40e78ad72baee9cf6a750 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package org.wordpress.android.networking;
import com.android.volley.RequestQueue;
import com.wordpress.rest.RestClient;
public class RestClientFactory {
private static RestClientFactoryAbstract sFactory;
public static RestClient instantiate(RequestQueue queue) {
return instantiate(queue, RestClient.REST_CLIENT_VERSIONS.V1);
}
public static RestClient instantiate(RequestQueue queue, RestClient.REST_CLIENT_VERSIONS version) {
if (sFactory == null) {
sFactory = new RestClientFactoryDefault();
}
return sFactory.make(queue, version);
}
}
|