FileDocCategorySizeDatePackage
FeedImage.javaAPI DocGoogle Facebook API v1.53887Sun Nov 11 14:46:44 GMT 2007com.facebook.api

FeedImage

public class FeedImage extends Pair 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
IFacebookRestClient

Fields Summary
Constructors Summary
public FeedImage(URL image)
Constructor for a feed image with no associated hyperlink.

param
image the URL of the image to display.
deprecated
a FeedImage must include a link url.

        this(image, null);
    
public FeedImage(URL image, URL link)
Constructor for a feed image with an associated hyperlink.

param
image the URL of the image to display.
param
link the url to link to when the image is clicked.

        super(image, link);
        if (null == image || null == link) {
            throw new IllegalArgumentException("both image and link URLs are required");
        }
    
Methods Summary
public java.lang.ObjectgetImageUrl()

return
the URL of the image to display.

        return getFirst();
    
public java.lang.StringgetImageUrlString()

return
the String representation of the image URL

      return getImageUrl().toString();
    
public java.net.URLgetLinkUrl()

return
the URL of the link that will be opened when the image is clicked.

        return getSecond();