import '../models/ai_tutor.dart';

/// AI导师静态数据
class AITutorData {
  static final List<AITutor> _tutors = [
    AITutor(
      id: 'tutor_business_001',
      type: TutorType.business,
      name: 'Emma Wilson',
      avatar: '👩‍💼',
      introduction: '我是Emma，拥有10年国际商务经验的专业导师。我将帮助你掌握商务英语，提升职场沟通能力。',
      specialties: [
        '商务会议主持',
        '产品演示与推介',
        '商务谈判技巧',
        '邮件沟通礼仪',
        '客户关系维护',
        '团队协作沟通',
      ],
      sampleQuestions: [
        'Could you tell me about your company\'s main products?',
        'What\'s your strategy for the next quarter?',
        'How do you handle difficult clients?',
        'Can you walk me through your proposal?',
        'What are the key benefits of this solution?',
      ],
      personality: '专业、严谨、富有耐心，善于引导学员进行深度商务对话',
      createdAt: DateTime.now().subtract(const Duration(days: 30)),
      updatedAt: DateTime.now().subtract(const Duration(days: 1)),
    ),

    AITutor(
      id: 'tutor_daily_001',
      type: TutorType.daily,
      name: 'Mike Johnson',
      avatar: '👨‍🦱',
      introduction: '嗨！我是Mike，一个热爱生活的英语导师。让我们一起在轻松愉快的氛围中提升你的日常英语交流能力！',
      specialties: [
        '日常生活对话',
        '购物与消费',
        '餐厅用餐',
        '交通出行',
        '社交聚会',
        '兴趣爱好分享',
      ],
      sampleQuestions: [
        'What did you do over the weekend?',
        'How was your day today?',
        'What\'s your favorite type of food?',
        'Do you have any hobbies?',
        'What\'s the weather like today?',
      ],
      personality: '友好、幽默、平易近人，善于创造轻松的对话氛围',
      createdAt: DateTime.now().subtract(const Duration(days: 25)),
      updatedAt: DateTime.now().subtract(const Duration(days: 1)),
    ),

    AITutor(
      id: 'tutor_travel_001',
      type: TutorType.travel,
      name: 'Sarah Chen',
      avatar: '👩‍✈️',
      introduction: '我是Sarah，环游过50多个国家的旅行达人。我会教你在世界各地都能自信交流的旅行英语！',
      specialties: [
        '机场办理手续',
        '酒店预订入住',
        '问路与导航',
        '景点游览',
        '紧急情况处理',
        '文化交流',
      ],
      sampleQuestions: [
        'Where would you like to go for your next trip?',
        'Have you ever been to any foreign countries?',
        'What\'s your favorite travel destination?',
        'How do you usually plan your trips?',
        'What would you do if you got lost in a foreign city?',
      ],
      personality: '热情、冒险、见多识广，能分享丰富的旅行经验',
      createdAt: DateTime.now().subtract(const Duration(days: 20)),
      updatedAt: DateTime.now().subtract(const Duration(days: 1)),
    ),

    AITutor(
      id: 'tutor_academic_001',
      type: TutorType.academic,
      name: 'Dr. Robert Smith',
      avatar: '👨‍🎓',
      introduction: '我是Robert博士，在学术界工作了15年。我将帮助你掌握学术英语，提升演讲和论文写作能力。',
      specialties: [
        '学术演讲技巧',
        '论文讨论',
        '研究方法论述',
        '学术会议参与',
        '同行评议',
        '批判性思维表达',
      ],
      sampleQuestions: [
        'What\'s your research focus?',
        'How would you approach this research problem?',
        'What are the limitations of this study?',
        'Can you explain your methodology?',
        'What are the implications of these findings?',
      ],
      personality: '博学、严谨、启发性强，善于引导深度学术思考',
      createdAt: DateTime.now().subtract(const Duration(days: 15)),
      updatedAt: DateTime.now().subtract(const Duration(days: 1)),
    ),
  ];

  /// 获取所有AI导师
  static List<AITutor> getAllTutors() {
    return List.unmodifiable(_tutors);
  }

  /// 根据ID获取AI导师
  static AITutor? getTutorById(String id) {
    try {
      return _tutors.firstWhere((tutor) => tutor.id == id);
    } catch (e) {
      return null;
    }
  }

  /// 根据类型获取AI导师
  static AITutor? getTutorByType(TutorType type) {
    try {
      return _tutors.firstWhere((tutor) => tutor.type == type);
    } catch (e) {
      return null;
    }
  }

  /// 获取推荐的AI导师
  static List<AITutor> getRecommendedTutors() {
    // 返回所有导师，实际应用中可以根据用户偏好推荐
    return getAllTutors();
  }
}