2025-12-22 14:07:44 +07:00
|
|
|
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;
|
|
|
|
|
}
|
2026-02-10 11:58:32 +07:00
|
|
|
|
|
|
|
|
private int page;
|
|
|
|
|
|
|
|
|
|
private int pageSize;
|
|
|
|
|
|
|
|
|
|
private int totalResults;
|
|
|
|
|
|
|
|
|
|
private int totalPages;
|
2025-12-22 14:07:44 +07:00
|
|
|
}
|