All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hn.robot.tuling.TuLingResult Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
package com.hn.robot.tuling;

import lombok.Data;

import java.util.Map;

/**
 * 图灵机器人 请求消息实体
 */
@Data
public class TuLingResult {

    /**
     * ‘组’编号:0为独立输出,大于0时可能包含同组相关内容 (如:音频与文本为一组时说明内容一致)
     */
    private Integer groupType;

    /**
     * 输出类型
     * 文本(text);连接(url);音频(voice);视频(video);图片(image);图文(news)
     */
    private String resultType;

    /**
     * values
     */
    private Map values;

    public String getText() {
        return values.get("text");
    }

    public String getUrl() {
        return values.get("url");
    }

    public boolean isText(){
        return values.containsKey("text");
    }

    public boolean isUrl(){
        return values.containsKey("url");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy