com.arcao.geocaching.api.data
Class ImageData

java.lang.Object
  extended by com.arcao.geocaching.api.data.ImageData
All Implemented Interfaces:
JsonSerializable

public class ImageData
extends Object
implements JsonSerializable


Constructor Summary
ImageData(String description, String mobileUrl, String name, String thumbUrl, String url)
           
 
Method Summary
static ImageData fromInputStream(String description, String name, String fileName, InputStream is)
           
 String getDescription()
           
 String getMobileUrl()
           
 String getName()
           
 String getThumbUrl()
           
 String getUrl()
           
 void writeJson(com.google.gson.stream.JsonWriter w)
          Called during serialization process and must be implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageData

public ImageData(String description,
                 String mobileUrl,
                 String name,
                 String thumbUrl,
                 String url)
Method Detail

getDescription

public String getDescription()

getMobileUrl

public String getMobileUrl()

getName

public String getName()

getThumbUrl

public String getThumbUrl()

getUrl

public String getUrl()

fromInputStream

public static ImageData fromInputStream(String description,
                                        String name,
                                        String fileName,
                                        InputStream is)
                                 throws IOException
Throws:
IOException

writeJson

public void writeJson(com.google.gson.stream.JsonWriter w)
               throws IOException
Description copied from interface: JsonSerializable
Called during serialization process and must be implemented.

Specified by:
writeJson in interface JsonSerializable
Parameters:
w - JsonWriter object for writing output
Throws:
IOException - If I/O error occurs


Copyright © 2012. All Rights Reserved.