facebook4j.internal.json
Class VideoJSONImpl

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

final class VideoJSONImpl
extends FacebookResponseImpl
implements Video, java.io.Serializable

Author:
Ryuji Yamashita - roundrop at gmail.com

Nested Class Summary
private  class VideoJSONImpl.FormatJSONImpl
           
 
Nested classes/interfaces inherited from interface facebook4j.Video
Video.Format
 
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  java.lang.String embedHtml
           
private  java.util.List<Video.Format> format
           
private  Category from
           
private  java.net.URL icon
           
private  java.lang.String id
           
private  java.net.URL link
           
private  java.lang.String name
           
private  java.net.URL picture
           
private static long serialVersionUID
           
private  java.net.URL source
           
private  java.util.List<Tag> tags
           
private  java.util.Date updatedTime
           
 
Constructor Summary
VideoJSONImpl(HttpResponse res, Configuration conf)
           
VideoJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Video> createVideoList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 PagableList<Comment> getComments()
           
 java.util.Date getCreatedTime()
           
 java.lang.String getDescription()
           
 java.lang.String getEmbedHtml()
           
 java.util.List<Video.Format> getFormat()
           
 Category getFrom()
           
 java.net.URL getIcon()
           
 java.lang.String getId()
           
 java.net.URL getLink()
           
 java.lang.String getName()
           
 java.net.URL getPicture()
           
 java.net.URL getSource()
           
 java.util.List<Tag> getTags()
           
 java.util.Date getUpdatedTime()
           
 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 Category from

tags

private java.util.List<Tag> tags

name

private java.lang.String name

description

private java.lang.String description

picture

private java.net.URL picture

embedHtml

private java.lang.String embedHtml

format

private java.util.List<Video.Format> format

icon

private java.net.URL icon

source

private java.net.URL source

createdTime

private java.util.Date createdTime

updatedTime

private java.util.Date updatedTime

comments

private PagableList<Comment> comments

link

private java.net.URL link
Constructor Detail

VideoJSONImpl

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

VideoJSONImpl

VideoJSONImpl(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 Video

getFrom

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

getTags

public java.util.List<Tag> getTags()
Specified by:
getTags in interface Video

getName

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

getDescription

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

getPicture

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

getEmbedHtml

public java.lang.String getEmbedHtml()
Specified by:
getEmbedHtml in interface Video

getFormat

public java.util.List<Video.Format> getFormat()
Specified by:
getFormat in interface Video

getIcon

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

getSource

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

getCreatedTime

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

getUpdatedTime

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

getComments

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

getLink

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

createVideoList

static ResponseList<Video> createVideoList(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