001package com.aispeech.dui.dds.agent.wakeup.word;
002
003import java.util.ArrayList;
004
005public class WakeupWordIntent extends WakeupWord {
006
007    protected WakeupType mWakeupType;
008
009    public WakeupWordIntent(WakeupType wakeupType) {
010        if (wakeupType == null) {
011            throw new IllegalArgumentException("WakeupWordIntent wakeupType is null");
012        }
013        this.mWakeupType = wakeupType;
014        initCreateEngine();
015    }
016
017    public WakeupWordIntent setWord(String word) {
018        super.setWord(word);
019        return this;
020    }
021
022    public WakeupWordIntent setPinyin(String pinyin) {
023        super.setPinyin(pinyin);
024        return this;
025    }
026
027    public WakeupWordIntent setThreshold(String threshold) {
028        super.setThreshold(threshold);
029        return this;
030    }
031
032    public WakeupWordIntent setThreshold(String threshold, String threshold2) {
033        super.setThreshold(threshold, threshold2);
034        return this;
035    }
036
037    public WakeupWordIntent addGreeting(String greeting) {
038        super.addGreeting(greeting);
039        return this;
040    }
041
042    public WakeupWordIntent setGreetings(ArrayList<String> greetingList) {
043        super.setGreetings(greetingList);
044        return this;
045    }
046
047    public WakeupWordIntent setAction(String action) {
048        super.setAction(action);
049        return this;
050    }
051
052    private void initCreateEngine() {
053        mCreateEngine = CreateEngineFactory.getCreateEngine("WakeupWordIntent", mWakeupType);
054    }
055
056}