Package ai.nextbillion.maps
Class ImageResult
java.lang.Object
ai.nextbillion.maps.ImageResult
- All Implemented Interfaces:
java.io.Serializable
public class ImageResult
extends java.lang.Object
implements java.io.Serializable
ImageResult is the object returned from API end points that return images.- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImageResult.ResponseImageResult.Responseis a type system hack to enable API endpoints to return aImageResult. -
Field Summary
Fields Modifier and Type Field Description java.lang.StringcontentTypeThe Content-Type header of the returned result.byte[]imageDataThe image data from the Photos API call. -
Constructor Summary
Constructors Constructor Description ImageResult(java.lang.String contentType, byte[] imageData) -
Method Summary
-
Field Details
-
imageData
public final byte[] imageDataThe image data from the Photos API call. -
contentType
public final java.lang.String contentTypeThe Content-Type header of the returned result.
-
-
Constructor Details
-
ImageResult
public ImageResult(java.lang.String contentType, byte[] imageData)
-