facebook4j.internal.json
Class LinkJSONImpl

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

final class LinkJSONImpl
extends FacebookResponseImpl
implements Link, java.io.Serializable

Author:
Ryuji Yamashita - roundrop at gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface facebook4j.FacebookResponse
FacebookResponse.Metadata
 
Field Summary
private  PagableList<Comment> comments
           
private  java.util.Date createdTime
           
private  java.lang.String description
           
private  IdNameEntity from
           
private  java.lang.String icon
           
private  java.lang.String id
           
private  PagableList<Like> likes
           
private  java.lang.String link
           
private  java.lang.String message
           
private  java.lang.String name
           
private  java.lang.String picture
           
private  Privacy privacy
           
private static long serialVersionUID
           
private  java.lang.String type
           
 
Constructor Summary
LinkJSONImpl(HttpResponse res, Configuration conf)
           
LinkJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Link> createLinkList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 PagableList<Comment> getComments()
           
 java.util.Date getCreatedTime()
           
 java.lang.String getDescription()
           
 IdNameEntity getFrom()
           
 java.lang.String getIcon()
           
 java.lang.String getId()
           
 PagableList<Like> getLikes()
           
 java.lang.String getLink()
           
 java.lang.String getMessage()
           
 java.lang.String getName()
           
 java.lang.String getPicture()
           
 Privacy getPrivacy()
           
 java.lang.String getType()
           
 int hashCode()
           
private  void init(JSONObject json)
           
 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 IdNameEntity from

link

private java.lang.String link

name

private java.lang.String name

likes

private PagableList<Like> likes

comments

private PagableList<Comment> comments

description

private java.lang.String description

icon

private java.lang.String icon

picture

private java.lang.String picture

message

private java.lang.String message

createdTime

private java.util.Date createdTime

type

private java.lang.String type

privacy

private Privacy privacy
Constructor Detail

LinkJSONImpl

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

LinkJSONImpl

LinkJSONImpl(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 Link

getFrom

public IdNameEntity getFrom()
Specified by:
getFrom in interface Link

getLink

public java.lang.String getLink()
Specified by:
getLink in interface Link

getName

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

getLikes

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

getComments

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

getDescription

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

getIcon

public java.lang.String getIcon()
Specified by:
getIcon in interface Link

getPicture

public java.lang.String getPicture()
Specified by:
getPicture in interface Link

getMessage

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

getCreatedTime

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

getType

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

getPrivacy

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

createLinkList

static ResponseList<Link> createLinkList(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