![JAR search and dependency download from the Maven repository](/logo.png)
com.ticketmaster.api.discovery.response.RateLimit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discovery-java Show documentation
Show all versions of discovery-java Show documentation
Ticketmaster Discovery API SDK - Java
The newest version!
package com.ticketmaster.api.discovery.response;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
@Getter
@ToString
@EqualsAndHashCode
public class RateLimit {
private String limit;
private String available;
private String over;
private String reset;
public RateLimit(okhttp3.Response httpResponse) {
this.limit = httpResponse.header("Rate-Limit");
this.available = httpResponse.header("Rate-Limit-Available");
this.over = httpResponse.header("Rate-Limit-Over");
this.reset = httpResponse.header("Rate-Limit-Reset");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy