(Context context)
| 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); |
no test coverage detected