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

javastrava.model.StravaPhotoSizes Maven / Gradle / Ivy

The newest version!
package javastrava.model;

import java.util.List;

import com.google.gson.annotations.SerializedName;

import javastrava.model.reference.StravaResourceState;

/**
 * 

* Photo sizes *

* * @author Dan Shannon * */ public class StravaPhotoSizes implements StravaEntity { /** * URL of full-size photo */ @SerializedName("0") private List size0; /** * URL for thumbnail */ @SerializedName("100") private List url100; /** * URL for medium-size rendering */ @SerializedName("600") private Integer url600; /** * No args constructor */ public StravaPhotoSizes() { super(); } /* * (non-Javadoc) * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof StravaPhotoSizes)) { return false; } final StravaPhotoSizes other = (StravaPhotoSizes) obj; if (this.size0 == null) { if (other.size0 != null) { return false; } } else if (!this.size0.equals(other.size0)) { return false; } if (this.url100 == null) { if (other.url100 != null) { return false; } } else if (!this.url100.equals(other.url100)) { return false; } if (this.url600 == null) { if (other.url600 != null) { return false; } } else if (!this.url600.equals(other.url600)) { return false; } return true; } @Override public StravaResourceState getResourceState() { return StravaResourceState.DETAILED; } /** * @return the size0 */ public List getSize0() { return this.size0; } /** * @return the url100 */ public List getUrl100() { return this.url100; } /** * @return the url600 */ public Integer getUrl600() { return this.url600; } /* * (non-Javadoc) * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = (prime * result) + ((this.size0 == null) ? 0 : this.size0.hashCode()); result = (prime * result) + ((this.url100 == null) ? 0 : this.url100.hashCode()); result = (prime * result) + ((this.url600 == null) ? 0 : this.url600.hashCode()); return result; } /** * @param size0 * the size0 to set */ public void setSize0(List size0) { this.size0 = size0; } /** * @param url100 * the url100 to set */ public void setUrl100(List url100) { this.url100 = url100; } /** * @param url600 * the url600 to set */ public void setUrl600(final Integer url600) { this.url600 = url600; } @Override public String toString() { return "StravaPhotoSizes [size0=" + this.size0 + ", url100=" + this.url100 + ", url600=" + this.url600 + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy