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 class  ImageResult.Response
    ImageResult.Response is a type system hack to enable API endpoints to return a ImageResult.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String contentType
    The Content-Type header of the returned result.
    byte[] imageData
    The image data from the Photos API call.
  • Constructor Summary

    Constructors 
    Constructor Description
    ImageResult​(java.lang.String contentType, byte[] imageData)  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • imageData

      public final byte[] imageData
      The image data from the Photos API call.
    • contentType

      public final java.lang.String contentType
      The Content-Type header of the returned result.
  • Constructor Details

    • ImageResult

      public ImageResult​(java.lang.String contentType, byte[] imageData)