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

ru.redcom.lib.integration.api.client.dadata.dto.Vehicle Maven / Gradle / Ivy

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() {
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy