|
|
|
|
@ -1,5 +1,7 @@ |
|
|
|
|
package com.fongmi.android.tv.bean; |
|
|
|
|
|
|
|
|
|
import android.text.TextUtils; |
|
|
|
|
|
|
|
|
|
import com.google.gson.Gson; |
|
|
|
|
import com.google.gson.annotations.SerializedName; |
|
|
|
|
import com.google.gson.reflect.TypeToken; |
|
|
|
|
@ -25,11 +27,12 @@ public class Part { |
|
|
|
|
|
|
|
|
|
public static List<String> get(String str) { |
|
|
|
|
List<String> items = new ArrayList<>(); |
|
|
|
|
if (TextUtils.isEmpty(str)) return Collections.emptyList(); |
|
|
|
|
for (Part item : arrayFrom(str)) items.add(item.getT()); |
|
|
|
|
return items; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getT() { |
|
|
|
|
return t; |
|
|
|
|
return TextUtils.isEmpty(t) ? "" : t; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|