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

com.konduto.sdk.models.KondutoGeolocation Maven / Gradle / Ivy

Go to download

Easily integrate with Konduto (https://konduto.com), a fraud prevention service.

There is a newer version: 2.17.4
Show newest version
package com.konduto.sdk.models;

/**
 *
 * Geolocation model.
 *
 * @see Konduto API Spec
 */
public class KondutoGeolocation extends KondutoModel {

	/* Attributes */
	String city;
	String state;
	String country;

	/* Constructors */
	public KondutoGeolocation() { }

	/* Equals */
	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (!(o instanceof KondutoGeolocation)) return false;

		KondutoGeolocation that = (KondutoGeolocation) o;

		if (city != null ? !city.equals(that.city) : that.city != null) return false;
		if (country != null ? !country.equals(that.country) : that.country != null) return false;
		if (state != null ? !state.equals(that.state) : that.state != null) return false;

		return true;
	}

	/* Getters and Setters */
	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy