Spring Social Facebook

org.springframework.social.facebook.api
Class Post

java.lang.Object
  extended by org.springframework.social.facebook.api.Post
Direct Known Subclasses:
CheckinPost, LinkPost, MusicPost, NotePost, PhotoPost, StatusPost, SwfPost, VideoPost

public class Post
extends java.lang.Object

Model class representing an entry in a feed.

Author:
Craig Walls

Nested Class Summary
static class Post.PostType
           
 
Constructor Summary
Post(java.lang.String id, Reference from, java.util.Date createdTime, java.util.Date updatedTime)
           
 
Method Summary
 Reference getApplication()
           
 java.lang.String getCaption()
           
 int getCommentCount()
           
 java.util.List<Comment> getComments()
          The most recent comments for the post.
 java.util.Date getCreatedTime()
           
 java.lang.String getDescription()
           
 Reference getFrom()
           
 java.lang.String getIcon()
           
 java.lang.String getId()
           
 java.lang.Integer getLikeCount()
          The number of likes for this Post.
 java.util.List<Reference> getLikes()
          Reference for users who have liked this Post.
 java.lang.String getLink()
           
 java.lang.String getMessage()
           
 java.lang.String getName()
           
 java.lang.String getPicture()
          Deprecated. This method will be replaced in Spring 1.1.0 with a new version that returns an object with more details about the picture.
 int getSharesCount()
           
 java.lang.String getStory()
           
 java.util.Map<java.lang.Integer,java.util.List<StoryTag>> getStoryTags()
           
 java.util.List<Reference> getTo()
           
 Post.PostType getType()
           
 java.util.Date getUpdatedTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Post

public Post(java.lang.String id,
            Reference from,
            java.util.Date createdTime,
            java.util.Date updatedTime)
Method Detail

getId

public java.lang.String getId()

getFrom

public Reference getFrom()

getTo

public java.util.List<Reference> getTo()

getCaption

public java.lang.String getCaption()

getMessage

public java.lang.String getMessage()

getPicture

@Deprecated
public java.lang.String getPicture()
Deprecated. This method will be replaced in Spring 1.1.0 with a new version that returns an object with more details about the picture.

The page's picture.


getLink

public java.lang.String getLink()

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()

getIcon

public java.lang.String getIcon()

getCreatedTime

public java.util.Date getCreatedTime()

getUpdatedTime

public java.util.Date getUpdatedTime()

getApplication

public Reference getApplication()

getType

public Post.PostType getType()

getLikes

public java.util.List<Reference> getLikes()
Reference for users who have liked this Post. May not be a complete list and the size may be different than the value returned from getLikeCount(). For a complete list of likes, use LikeOperations.getLikes(String).

Returns:
a list of Reference objects for the users who have liked the Post or null if there is no like information available.

getLikeCount

public java.lang.Integer getLikeCount()
The number of likes for this Post. May be different than the size of the list returned from getLikes().

Returns:
the number of likes for the Post or null if no like information is available.

getSharesCount

public int getSharesCount()

getComments

public java.util.List<Comment> getComments()
The most recent comments for the post.


getStory

public java.lang.String getStory()

getStoryTags

public java.util.Map<java.lang.Integer,java.util.List<StoryTag>> getStoryTags()

getCommentCount

public int getCommentCount()

Spring Social Facebook