|
|
|
@ -82,8 +82,7 @@ public class Vod { |
|
|
|
private Site site; |
|
|
|
private Site site; |
|
|
|
|
|
|
|
|
|
|
|
public static List<Vod> arrayFrom(String str) { |
|
|
|
public static List<Vod> arrayFrom(String str) { |
|
|
|
Type listType = new TypeToken<List<Vod>>() { |
|
|
|
Type listType = new TypeToken<List<Vod>>() {}.getType(); |
|
|
|
}.getType(); |
|
|
|
|
|
|
|
List<Vod> items = new Gson().fromJson(str, listType); |
|
|
|
List<Vod> items = new Gson().fromJson(str, listType); |
|
|
|
return items == null ? Collections.emptyList() : items; |
|
|
|
return items == null ? Collections.emptyList() : items; |
|
|
|
} |
|
|
|
} |
|
|
|
|