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

net.jacobpeterson.domain.polygon.snapshot.SnapshotAllTickersResponse Maven / Gradle / Ivy


package net.jacobpeterson.domain.polygon.snapshot;

import java.io.Serializable;
import java.util.ArrayList;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import net.jacobpeterson.domain.polygon.snapshot.ticker.SnapshotTicker;


/**
 * See https://polygon.io/docs/#!/Stocks--Equities/get_v2_snapshot_locale_us_markets_stocks_tickers
 * 

* * */ public class SnapshotAllTickersResponse implements Serializable { /** * Status of this requests response *

* * */ @SerializedName("status") @Expose private String status; /** * tickers *

* * */ @SerializedName("tickers") @Expose private ArrayList tickers; private final static long serialVersionUID = 5300823134383255954L; /** * No args constructor for use in serialization * */ public SnapshotAllTickersResponse() { } /** * * @param tickers * @param status */ public SnapshotAllTickersResponse(String status, ArrayList tickers) { super(); this.status = status; this.tickers = tickers; } /** * Status of this requests response *

* * */ public String getStatus() { return status; } /** * Status of this requests response *

* * */ public void setStatus(String status) { this.status = status; } /** * tickers *

* * */ public ArrayList getTickers() { return tickers; } /** * tickers *

* * */ public void setTickers(ArrayList tickers) { this.tickers = tickers; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(SnapshotAllTickersResponse.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("status"); sb.append('='); sb.append(((this.status == null)?"":this.status)); sb.append(','); sb.append("tickers"); sb.append('='); sb.append(((this.tickers == null)?"":this.tickers)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.tickers == null)? 0 :this.tickers.hashCode())); result = ((result* 31)+((this.status == null)? 0 :this.status.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof SnapshotAllTickersResponse) == false) { return false; } SnapshotAllTickersResponse rhs = ((SnapshotAllTickersResponse) other); return (((this.tickers == rhs.tickers)||((this.tickers!= null)&&this.tickers.equals(rhs.tickers)))&&((this.status == rhs.status)||((this.status!= null)&&this.status.equals(rhs.status)))); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy