package com.yeejoin.amos.boot.module.jcs.biz.audioToText;

/**
 * 语音转文字消息类型
 * mqtt 发送消息类型是加上[_phoneNumber]即接电话用户的电话号码，实现区分
 */
public enum MessageType {
    RECORD("audioRecord"), KEYWORD("audioKeyWord");

    private String name;

    MessageType(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

/**
 * 语音转文字关键字查找表
 */
enum MessageKeywords {
    LOCATION("location", new String[]{"地址", "位置", "地点", "在"}),
    CONTACT("contact", new String[]{"联系人", "联系", "在",}),
    CONTACT_NUMBER("contactNumber", new String[]{"号码是", "号码", "手机是", "手机",}),
    UNIT("unit", new String[]{"事发单位", "单位",}),
    PART("part", new String[]{"重点部位", "部位",});

    private String type;
    private String[] keyword;

    MessageKeywords(String type, String[] keyword) {
        this.type = type;
        this.keyword = keyword;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String[] getKeyword() {
        return keyword;
    }

    public void setKeyword(String[] keyword) {
        this.keyword = keyword;
    }
}
