package com.heyu.api.baidu.response.common;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.heyu.api.baidu.response.BBaseResp;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * {
 *     "language": -1,
 *     "words_result": [
 *         {
 *             "words": "商"
 *         },
 *         {
 *             "words": "网"
 *         },
 *         {
 *             "words": "顶"
 *         },
 *         {
 *             "words": "新年快乐"
 *         }
 *     ],
 *     "words_result_num": 4,
 *     "direction": 0,
 *     "log_id": "1893559621565051533"
 * }
 */
@NoArgsConstructor
@Data
public class BWebImageResp  extends BBaseResp {

    @JsonProperty("language")
    private Integer language;
    @JsonProperty("words_result")
    private List<WordsResultDTO> wordsResult;
    @JsonProperty("words_result_num")
    private Integer wordsResultNum;
    @JsonProperty("direction")
    private Integer direction;
    @JsonProperty("log_id")
    private String logId;

    @NoArgsConstructor
    @Data
    public static class WordsResultDTO {
        @JsonProperty("words")
        private String words;
    }
}
