Class ImageInfo
- java.lang.Object
-
- aero.panasonic.inflight.services.image.v2.ImageInfo
-
public class ImageInfo extends java.lang.ObjectThis class is ImageInfo model class.
-
-
Field Summary
Fields Modifier and Type Field Description static intIMAGE_TYPE_POSTERstatic intIMAGE_TYPE_SYNOPSIS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetHeight()Returns the image height.java.lang.IntegergetSizeSelector()Returns the size selector.intgetType()java.lang.StringgetUrl()java.lang.IntegergetWidth()Returns the image width.voidsetSizeSelector(int sizeSelector)voidsetType(int type)java.lang.StringtoString()
-
-
-
Field Detail
-
IMAGE_TYPE_SYNOPSIS
public static final int IMAGE_TYPE_SYNOPSIS
- See Also:
- Constant Field Values
-
IMAGE_TYPE_POSTER
public static final int IMAGE_TYPE_POSTER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImageInfo
public ImageInfo(JSONObject json)
-
ImageInfo
public ImageInfo(java.lang.String src, java.lang.String width, java.lang.String height, int type)
-
ImageInfo
public ImageInfo(java.lang.String src, java.lang.String width, java.lang.String height, java.lang.String sizeSelector, int type)
-
-
Method Detail
-
getWidth
public java.lang.Integer getWidth()
Returns the image width.- Returns:
- null if width isn't available
-
getHeight
public java.lang.Integer getHeight()
Returns the image height.- Returns:
- null if height isn't available
-
getSizeSelector
public java.lang.Integer getSizeSelector()
Returns the size selector.- Returns:
- null if size selector isn't available
-
setSizeSelector
public void setSizeSelector(int sizeSelector)
-
getUrl
public java.lang.String getUrl()
-
getType
public int getType()
-
setType
public void setType(int type)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-