com.google.code.facebookapi
Class FeedImage

java.lang.Object
  extended by com.google.code.facebookapi.Pair<java.lang.Object,java.net.URL>
      extended by com.google.code.facebookapi.FeedImage
All Implemented Interfaces:
IFeedImage, IPair<java.lang.Object,java.net.URL>, java.io.Serializable

public class FeedImage
extends Pair<java.lang.Object,java.net.URL>
implements IFeedImage

A simple Pair of URLs for an image appearing in a newsfeed/minifeed story and the optional destination URL for a click on that image.

See Also:
IFacebookRestClient, Serialized Form

Field Summary
 
Fields inherited from class com.google.code.facebookapi.Pair
first, second
 
Constructor Summary
FeedImage(java.net.URL image)
          Deprecated. a FeedImage must include a link url.
FeedImage(java.net.URL image, java.net.URL link)
          Constructor for a feed image with an associated hyperlink.
 
Method Summary
 java.lang.Object getImageUrl()
           
 java.lang.String getImageUrlString()
          The image "url" can be either: a URL linking to an image: this image will be be shrunk to fit within 75x75, cached, and formatted by Facebook.
 java.net.URL getLinkUrl()
           
 
Methods inherited from class com.google.code.facebookapi.Pair
getFirst, getSecond, setFirst, setSecond
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.code.facebookapi.IPair
getFirst, getSecond, setFirst, setSecond
 

Constructor Detail

FeedImage

@Deprecated
public FeedImage(java.net.URL image)
Deprecated. a FeedImage must include a link url.

Constructor for a feed image with no associated hyperlink.

Parameters:
image - the URL of the image to display.

FeedImage

public FeedImage(java.net.URL image,
                 java.net.URL link)
Constructor for a feed image with an associated hyperlink.

Parameters:
image - the URL of the image to display.
link - the url to link to when the image is clicked.
Method Detail

getImageUrl

public java.lang.Object getImageUrl()
Returns:
the URL of the image to display.

getLinkUrl

public java.net.URL getLinkUrl()
Specified by:
getLinkUrl in interface IFeedImage
Returns:
the URL of the link that will be opened when the image is clicked.

getImageUrlString

public java.lang.String getImageUrlString()
Description copied from interface: IFeedImage
The image "url" can be either:

Specified by:
getImageUrlString in interface IFeedImage
Returns:
the String representation of the image URL


Copyright © 2010. All Rights Reserved.