MCPcopy Create free account
hub / github.com/FongMi/TV / get

Method get

catvod/src/main/java/com/github/catvod/bean/Doh.java:30–36  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

28 private List<String> ips;
29
30 public static List<Doh> get(Context context) {
31 List<Doh> items = new ArrayList<>();
32 String[] urls = context.getResources().getStringArray(R.array.doh_url);
33 String[] names = context.getResources().getStringArray(R.array.doh_name);
34 for (int i = 0; i < names.length; i++) items.add(new Doh().name(names[i]).url(urls[i]));
35 return items;
36 }
37
38 public static Doh objectFrom(String str) {
39 Doh item = new Gson().fromJson(str, Doh.class);

Callers 8

getDohMethod · 0.95
redirectFunction · 0.45
fetchMethod · 0.45
proxyMethod · 0.45
isEmptyMethod · 0.45
safeListStringMethod · 0.45
safeListElementMethod · 0.45
digestMethod · 0.45

Calls 5

getStringArrayMethod · 0.80
getResourcesMethod · 0.80
addMethod · 0.45
urlMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected