com.targomo.client.api.pojo.CompetingRoutingOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java client library for easy usage of Targomo web services.
The newest version!
package com.targomo.client.api.pojo;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
@ToString
@EqualsAndHashCode
public class CompetingRoutingOption {
public final RoutingOptions routingOptions;
public final int routingValueOffset;
public final float routingValueMultiplier;
@Builder
@JsonCreator
public CompetingRoutingOption(@JsonProperty("routingOptions") RoutingOptions routingOptions,
@JsonProperty("routingValueOffset") Integer routingValueOffset,
@JsonProperty("routingValueMultiplier") Float routingValueMultiplier) {
this.routingOptions = routingOptions == null ? new RoutingOptions() : routingOptions;
this.routingValueOffset = routingValueOffset == null ? 0 : routingValueOffset;
this.routingValueMultiplier = routingValueMultiplier == null ? 1.0f : routingValueMultiplier;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy