Search in sources :

Example 1 with R_get_characters_character_id_skillqueue

use of fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_skillqueue in project JCELechat by guiguilechat.

the class Skills method makeTraining.

protected ObjHolder<R_get_characters_character_id_skillqueue> makeTraining() {
    return getQueue().map(l -> {
        LocalDateTime now = LocalDateTime.now();
        R_get_characters_character_id_skillqueue ret = l.stream().filter(sq -> sq.finish_date != null && now.isBefore(ESITools.convertLocalDateTime(sq.finish_date))).findFirst().orElse(null);
        if (ret == null) {
            ret = new R_get_characters_character_id_skillqueue();
        }
        return ret;
    }, null);
}
Also used : LocalDateTime(java.time.LocalDateTime) R_get_characters_character_id_skillqueue(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_skillqueue)

Aggregations

R_get_characters_character_id_skillqueue (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_skillqueue)1 LocalDateTime (java.time.LocalDateTime)1