com.twilio.type.OutboundCallPriceWithOrigin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twilio Show documentation
Show all versions of twilio Show documentation
Twilio Java Helper Library
package com.twilio.type;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.ToString;
import java.util.List;
import java.util.Objects;
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString
public class OutboundCallPriceWithOrigin {
private final double basePrice;
private final double currentPrice;
private final List originationPrefixes;
@JsonCreator
public OutboundCallPriceWithOrigin(@JsonProperty("base_price") final double basePrice,
@JsonProperty("current_price") final double currentPrice,
@JsonProperty("origination_prefixes") final List originationPrefixes) {
this.basePrice = basePrice;
this.currentPrice = currentPrice;
this.originationPrefixes = originationPrefixes;
}
public double getBasePrice() {
return basePrice;
}
public double getCurrentPrice() {
return currentPrice;
}
public List getOriginationPrefixes() {
return originationPrefixes;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OutboundCallPriceWithOrigin other = (OutboundCallPriceWithOrigin) o;
return Objects.equals(this.basePrice, other.basePrice) &&
Objects.equals(this.currentPrice, other.currentPrice) &&
Objects.equals(this.originationPrefixes, other.originationPrefixes);
}
@Override
public int hashCode() {
return Objects.hash(this.basePrice, this.currentPrice, this.originationPrefixes);
}
}