org.dc.riot.lol.rx.model.staticdata.ImageDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lol-api-rxjava Show documentation
Show all versions of lol-api-rxjava Show documentation
Service library for League of Legends API
package org.dc.riot.lol.rx.model.staticdata;
/**
* This object contains image data.
*
* @author Dc
* @since 1.0.0
*/
public class ImageDto {
private static long COUNT = 0;
public static long getInstanceCount() {
return COUNT;
}
private String full;
private String group;
private String sprite;
private Integer h;
private Integer w;
private Integer x;
private Integer y;
public ImageDto() {
COUNT++;
}
/**
* @return Full.
*/
public String getFull() {
return full;
}
/**
* @return Group.
*/
public String getGroup() {
return group;
}
/**
* @return Sprite data. Base64 image data?
*/
public String getSprite() {
return sprite;
}
/**
* @return Height or -1
if not defined.
*/
public int getH() {
if (h == null) {
return -1;
}
return h.intValue();
}
/**
* @return Width or -1
if not defined.
*/
public int getW() {
if (w == null) {
return -1;
}
return w.intValue();
}
/**
* @return X coordinate or -1
if not defined.
*/
public int getX() {
if (x == null) {
return -1;
}
return x.intValue();
}
/**
* @return Y coordinate or -1
if not defined.
*/
public int getY() {
if (y == null) {
return -1;
}
return y.intValue();
}
}