com.google.code.facebookapi
Class FeedUserPhoto

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

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

A simple Pair consisting of a Facebook Photos photo ID for an image appearing in a newsfeed/minifeed story and the destination URL for a click on that image.

See Also:
IFacebookRestClient, IFacebookRestClient.photos_get(java.lang.Long, java.lang.String, java.util.Collection), FacebookRestClient#handleFeedImages, Serialized Form

Field Summary
 
Fields inherited from class com.google.code.facebookapi.Pair
first, second
 
Constructor Summary
FeedUserPhoto(java.lang.Long userId, java.net.URL link)
          Creates a linked Facebook Photos photo to appear in a user's newsfeed/minifeed.
 
Method Summary
 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()
           
 java.lang.Object getUserId()
           
 
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

FeedUserPhoto

public FeedUserPhoto(java.lang.Long userId,
                     java.net.URL link)
Creates a linked Facebook Photos photo to appear in a user's newsfeed/minifeed.

Parameters:
userId - the photo ID of a Facebook photo to appear in a user's newsfeed/minifeed
link - the URL to which the image should link
See Also:
IFacebookRestClient.photos_get(java.lang.Long, java.lang.String, java.util.Collection), FacebookRestClient#handleFeedImages
Method Detail

getUserId

public java.lang.Object getUserId()
Returns:
the Facebook user ID of the feed image

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 feed image "URL"

getLinkUrl

public java.net.URL getLinkUrl()
Specified by:
getLinkUrl in interface IFeedImage
Returns:
the link URL to which the feed image should link


Copyright © 2010. All Rights Reserved.