package org.xyzh.achievement.checker.impl;

import org.springframework.stereotype.Component;
import org.xyzh.achievement.checker.AbstractAchievementChecker;
import org.xyzh.common.core.enums.AchievementConditionType;
import org.xyzh.common.core.enums.AchievementEventType;

/**
 * @description 学习时长成就检测器
 * @filename LearningTimeChecker.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-24
 */
@Component
public class LearningTimeChecker extends AbstractAchievementChecker {

    @Override
    protected AchievementConditionType getSupportedConditionType() {
        return AchievementConditionType.LEARNING_TIME;
    }

    @Override
    protected AchievementEventType[] getSupportedEventTypes() {
        return new AchievementEventType[]{
            AchievementEventType.LEARNING_TIME_UPDATED
        };
    }
}

