package ru.soune.nocopy.dto.file;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class YandexSearchResponse {

    @JsonProperty("images")
    private List<ImageResult> images;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class ImageResult {
        @JsonProperty("url")
        private String url;

        @JsonProperty("pageUrl")
        private String pageUrl;

        @JsonProperty("pageTitle")
        private String pageTitle;

        @JsonProperty("width")
        private Integer width;

        @JsonProperty("height")
        private Integer height;

        @JsonProperty("host")
        private String host;
    }

    private int page;

    private int pageSize;

    private int totalResults;

    private int totalPages;
}