ru.redcom.lib.integration.api.client.dadata.dto.Vehicle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dadata-api-client Show documentation
Show all versions of dadata-api-client Show documentation
DaData.ru Standardization API client java library
The newest version!
/*
* Copyright (c) 2018 Boris Fox, REDCOM-Internet CJSC
* All rights reserved.
*/
package ru.redcom.lib.integration.api.client.dadata.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import ru.redcom.lib.integration.api.client.dadata.types.QcVehicle;
/*
Название Длина Описание
source 100 Исходное значение
result 100 Стандартизованное значение
brand 50 Марка
model 50 Модель
qc 5 Код проверки
[
{
"source": "форд фокус",
"result": "FORD FOCUS",
"brand": "FORD",
"model": "FOCUS",
"qc": 0
}
]
*/
/**
* Cleaned Vehicle Type container.
*
* @author boris
*/
@SuppressWarnings("unused")
@Getter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class Vehicle extends ResponseItem {
private String result;
private String brand;
private String model;
@JsonProperty(required = true)
private QcVehicle qc;
// This class is not instantiable
private Vehicle() {
}
}