package com.draw.painting.canvas.core;

import java.util.ArrayList;
import java.util.List;

public class SketchRepository {

    public static String Class_Animals = "sketches_animals";
    public static String Class_birds = "sketches_birds";
    public static String Class_butterfly = "sketches_butterfly";
    public static String Class_cafe = "sketches_cafe";
    public static String Class_cartoons = "sketches_cartoons";
    public static String Class_christmas = "sketches_christmas";
    public static String Class_festivals = "sketches_festivals";
    public static String Class_flowers = "sketches_flowers";
    public static String Class_fruits = "sketches_fruits";
    public static String Class_general = "sketches_general";

    public static String Class_mehndi = "sketches_mehndi";
    public static String Class_nature = "sketches_nature";
    public static String Class_properties = "sketches_properties";
    public static String Class_rangoli = "sketches_rangoli";
    public static String Class_sports = "sketches_sports";
    public static String Class_vehicles = "sketches_vehicles";

    public static List<String> getAllDir() {
        ArrayList<String> list = new ArrayList<>();
        list.add(Class_Animals);
        list.add(Class_birds);
        list.add(Class_butterfly);
        list.add(Class_cafe);
        list.add(Class_cartoons);
        list.add(Class_christmas);
        list.add(Class_festivals);
        list.add(Class_flowers);
        list.add(Class_fruits);
        list.add(Class_general);
        list.add(Class_mehndi);
        list.add(Class_nature);
        list.add(Class_properties);
        list.add(Class_rangoli);
        list.add(Class_sports);
        list.add(Class_vehicles);
        return list;
    }

    /**
     * 获取推荐图片列表（精选）
     * 从各个分类中精选出最受欢迎的图片
     */
    public static List<String> getFeaturedSketches() {
        ArrayList<String> list = new ArrayList<>();
        // 从不同分类中选择精选图片
        list.add(Class_Animals + "/1.jpg");
        list.add(Class_birds + "/1.jpg");
        list.add(Class_butterfly + "/1.jpg");
        list.add(Class_flowers + "/1.jpg");
        list.add(Class_cartoons + "/1.jpg");
        list.add(Class_fruits + "/1.jpg");
        list.add(Class_nature + "/1.jpg");
        list.add(Class_vehicles + "/1.jpg");
        return list;
    }

    /**
     * 获取分类说明文案
     */
    public static String getCategoryDescription(String categoryDir) {
        String categoryName = categoryDir.substring(categoryDir.lastIndexOf("_") + 1);
        switch (categoryName) {
            case "animals":
                return "Simple animal outlines. Good for beginners.";
            case "birds":
                return "Beautiful bird sketches. Perfect for nature lovers.";
            case "butterfly":
                return "Delicate butterfly patterns. Great for detailed work.";
            case "cafe":
                return "Coffee and cafe-themed designs. Cozy and warm.";
            case "cartoons":
                return "Fun cartoon characters. Kids will love these.";
            case "christmas":
                return "Festive holiday designs. Celebrate the season.";
            case "festivals":
                return "Festival celebration patterns. Joyful and colorful.";
            case "flowers":
                return "Elegant floral designs. Classic and beautiful.";
            case "fruits":
                return "Fresh fruit illustrations. Bright and cheerful.";
            case "general":
                return "Various everyday objects. Something for everyone.";
            case "mehndi":
                return "Traditional mehndi patterns. Intricate and artistic.";
            case "nature":
                return "Natural landscapes and scenery. Peaceful and serene.";
            case "properties":
                return "Buildings and structures. Architectural beauty.";
            case "rangoli":
                return "Traditional rangoli designs. Vibrant and symbolic.";
            case "sports":
                return "Sports and activities. Active and dynamic.";
            case "vehicles":
                return "Cars, bikes, and more. Perfect for vehicle enthusiasts.";
            default:
                return "Explore and trace beautiful sketches.";
        }
    }
}

