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

com.twilio.type.OutboundCallPriceWithOrigin Maven / Gradle / Ivy

There is a newer version: 10.1.5
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy