Example #1
0
  public static String GetShowCombCategories(Object MediaObject) {
    String category = StringCategory(ShowAPI.GetShowCategory(MediaObject));
    String subcategory = StringCategory(ShowAPI.GetShowSubCategory(MediaObject));
    String categories = "";
    if (category.length() != 0 && subcategory.length() != 0) {
      categories = category + " | " + subcategory;
    } else if (category.length() != 0) {
      categories = category;
    }

    return categories;
  }
Example #2
0
  public static String[] GetShowCategories(Object MediaObject) {
    String Category = StringCategory(ShowAPI.GetShowCategory(MediaObject));
    String SubCategory = StringCategory(ShowAPI.GetShowSubCategory(MediaObject));
    String[] Categories;
    if (SubCategory.length() != 0) {

      Categories = new String[2];
      Categories[0] = Category;
      Categories[1] = SubCategory;

    } else if (Category.length() != 0) {
      Categories = new String[1];
      Categories[0] = Category;
    } else {
      Categories = null;
    }

    return Categories;
  }
Example #3
0
 public static String GetShowSubCategory(Object MediaObject) {
   return StringCategory(ShowAPI.GetShowSubCategory(MediaObject));
 }