facebook4j.internal.json
Class PostJSONImpl

java.lang.Object
  extended by facebook4j.internal.json.FacebookResponseImpl
      extended by facebook4j.internal.json.PostJSONImpl
All Implemented Interfaces:
FacebookResponse, Post, java.io.Serializable

final class PostJSONImpl
extends FacebookResponseImpl
implements Post, java.io.Serializable

Author:
Ryuji Yamashita - roundrop at gmail.com

Nested Class Summary
private  class PostJSONImpl.ActionJSONImpl
           
private  class PostJSONImpl.PropertyJSONImpl
           
 
Nested classes/interfaces inherited from interface facebook4j.Post
Post.Action, Post.Property
 
Nested classes/interfaces inherited from interface facebook4j.FacebookResponse
FacebookResponse.Metadata
 
Field Summary
private  java.util.List<Post.Action> actions
           
private  Application application
           
private  java.lang.String caption
           
private  PagableList<Comment> comments
           
private  java.util.Date createdTime
           
private  java.lang.String description
           
private  Category from
           
private  java.net.URL icon
           
private  java.lang.String id
           
private  java.lang.Boolean isPublished
           
private  PagableList<Like> likes
           
private  java.net.URL link
           
private  java.lang.String message
           
private  java.util.List<Tag> messageTags
           
private  java.lang.String name
           
private  java.lang.String objectId
           
private  java.net.URL picture
           
private  Place place
           
private  Privacy privacy
           
private  java.util.List<Post.Property> properties
           
private  java.lang.Integer scheduledPublishTime
           
private static long serialVersionUID
           
private  java.lang.Integer sharesCount
           
private  java.net.URL source
           
private  java.lang.String statusType
           
private  java.lang.String story
           
private  java.util.Map<java.lang.String,Tag[]> storyTags
           
private  Targeting targeting
           
private  java.util.List<IdNameEntity> to
           
private  java.lang.String type
           
private  java.util.Date updatedTime
           
private  java.util.List<IdNameEntity> withTags
           
 
Constructor Summary
PostJSONImpl(HttpResponse res, Configuration conf)
           
PostJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Post> createPostList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 java.util.List<Post.Action> getActions()
           
 Application getApplication()
           
 java.lang.String getCaption()
           
 PagableList<Comment> getComments()
           
 java.util.Date getCreatedTime()
           
 java.lang.String getDescription()
           
 Category getFrom()
           
 java.net.URL getIcon()
           
 java.lang.String getId()
           
 PagableList<Like> getLikes()
           
 java.net.URL getLink()
           
 java.lang.String getMessage()
           
 java.util.List<Tag> getMessageTags()
           
 java.lang.String getName()
           
 java.lang.String getObjectId()
           
 java.net.URL getPicture()
           
 Place getPlace()
           
 Privacy getPrivacy()
           
 java.util.List<Post.Property> getProperties()
           
 java.util.Date getScheduledPublishTime()
           
 java.lang.Integer getSharesCount()
           
 java.net.URL getSource()
           
 java.lang.String getStatusType()
           
 java.lang.String getStory()
           
 java.util.Map<java.lang.String,Tag[]> getStoryTags()
           
 Targeting getTargeting()
           
 java.util.List<IdNameEntity> getTo()
           
 java.lang.String getType()
           
 java.util.Date getUpdatedTime()
           
 java.util.List<IdNameEntity> getWithTags()
           
 int hashCode()
           
private  void init(JSONObject json)
           
 java.lang.Boolean isPublished()
           
 java.lang.String toString()
           
 
Methods inherited from class facebook4j.internal.json.FacebookResponseImpl
getMetadata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface facebook4j.FacebookResponse
getMetadata
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

id

private java.lang.String id

from

private Category from

to

private java.util.List<IdNameEntity> to

message

private java.lang.String message

messageTags

private java.util.List<Tag> messageTags

picture

private java.net.URL picture

link

private java.net.URL link

name

private java.lang.String name

caption

private java.lang.String caption

description

private java.lang.String description

source

private java.net.URL source

properties

private java.util.List<Post.Property> properties

icon

private java.net.URL icon

actions

private java.util.List<Post.Action> actions

privacy

private Privacy privacy

type

private java.lang.String type

sharesCount

private java.lang.Integer sharesCount

likes

private PagableList<Like> likes

place

private Place place

statusType

private java.lang.String statusType

story

private java.lang.String story

storyTags

private java.util.Map<java.lang.String,Tag[]> storyTags

withTags

private java.util.List<IdNameEntity> withTags

comments

private PagableList<Comment> comments

objectId

private java.lang.String objectId

application

private Application application

createdTime

private java.util.Date createdTime

updatedTime

private java.util.Date updatedTime

isPublished

private java.lang.Boolean isPublished

scheduledPublishTime

private java.lang.Integer scheduledPublishTime

targeting

private Targeting targeting
Constructor Detail

PostJSONImpl

PostJSONImpl(HttpResponse res,
             Configuration conf)
       throws FacebookException
Throws:
FacebookException

PostJSONImpl

PostJSONImpl(JSONObject json)
       throws FacebookException
Throws:
FacebookException
Method Detail

init

private void init(JSONObject json)
           throws FacebookException
Throws:
FacebookException

getId

public java.lang.String getId()
Specified by:
getId in interface Post

getFrom

public Category getFrom()
Specified by:
getFrom in interface Post

getTo

public java.util.List<IdNameEntity> getTo()
Specified by:
getTo in interface Post

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface Post

getMessageTags

public java.util.List<Tag> getMessageTags()
Specified by:
getMessageTags in interface Post

getPicture

public java.net.URL getPicture()
Specified by:
getPicture in interface Post

getLink

public java.net.URL getLink()
Specified by:
getLink in interface Post

getName

public java.lang.String getName()
Specified by:
getName in interface Post

getCaption

public java.lang.String getCaption()
Specified by:
getCaption in interface Post

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Post

getSource

public java.net.URL getSource()
Specified by:
getSource in interface Post

getProperties

public java.util.List<Post.Property> getProperties()
Specified by:
getProperties in interface Post

getIcon

public java.net.URL getIcon()
Specified by:
getIcon in interface Post

getActions

public java.util.List<Post.Action> getActions()
Specified by:
getActions in interface Post

getPrivacy

public Privacy getPrivacy()
Specified by:
getPrivacy in interface Post

getType

public java.lang.String getType()
Specified by:
getType in interface Post

getSharesCount

public java.lang.Integer getSharesCount()
Specified by:
getSharesCount in interface Post

getLikes

public PagableList<Like> getLikes()
Specified by:
getLikes in interface Post

getPlace

public Place getPlace()
Specified by:
getPlace in interface Post

getStatusType

public java.lang.String getStatusType()
Specified by:
getStatusType in interface Post

getStory

public java.lang.String getStory()
Specified by:
getStory in interface Post

getStoryTags

public java.util.Map<java.lang.String,Tag[]> getStoryTags()
Specified by:
getStoryTags in interface Post

getWithTags

public java.util.List<IdNameEntity> getWithTags()
Specified by:
getWithTags in interface Post

getComments

public PagableList<Comment> getComments()
Specified by:
getComments in interface Post

getObjectId

public java.lang.String getObjectId()
Specified by:
getObjectId in interface Post

getApplication

public Application getApplication()
Specified by:
getApplication in interface Post

getCreatedTime

public java.util.Date getCreatedTime()
Specified by:
getCreatedTime in interface Post

getUpdatedTime

public java.util.Date getUpdatedTime()
Specified by:
getUpdatedTime in interface Post

isPublished

public java.lang.Boolean isPublished()
Specified by:
isPublished in interface Post

getScheduledPublishTime

public java.util.Date getScheduledPublishTime()
Specified by:
getScheduledPublishTime in interface Post

getTargeting

public Targeting getTargeting()
Specified by:
getTargeting in interface Post

createPostList

static ResponseList<Post> createPostList(HttpResponse res,
                                         Configuration conf)
                                  throws FacebookException
Throws:
FacebookException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object