facebook4j.internal.json
Class QuestionJSONImpl

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

final class QuestionJSONImpl
extends FacebookResponseImpl
implements Question, java.io.Serializable

Author:
Ryuji Yamashita - roundrop at gmail.com

Nested Class Summary
(package private) static class QuestionJSONImpl.OptionJSONImpl
           
 
Nested classes/interfaces inherited from interface facebook4j.Question
Question.Option
 
Nested classes/interfaces inherited from interface facebook4j.FacebookResponse
FacebookResponse.Metadata
 
Field Summary
private  java.util.Date createdTime
           
private  Category from
           
private  java.lang.String id
           
private  PagableList<Question.Option> options
           
private  java.lang.String question
           
private static long serialVersionUID
           
private  java.util.Date updatedTime
           
 
Constructor Summary
QuestionJSONImpl(HttpResponse res, Configuration conf)
           
QuestionJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Question.Option> createOptionList(HttpResponse res, Configuration conf)
           
(package private) static PagableList<Question.Option> createOptionList(JSONObject json)
           
(package private) static ResponseList<Question> createQuestionList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Date getCreatedTime()
           
 Category getFrom()
           
 java.lang.String getId()
           
 PagableList<Question.Option> getOptions()
           
 java.lang.String getQuestion()
           
 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

question

private java.lang.String question

createdTime

private java.util.Date createdTime

updatedTime

private java.util.Date updatedTime

options

private PagableList<Question.Option> options
Constructor Detail

QuestionJSONImpl

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

QuestionJSONImpl

QuestionJSONImpl(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 Question

getFrom

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

getQuestion

public java.lang.String getQuestion()
Specified by:
getQuestion in interface Question

getCreatedTime

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

getUpdatedTime

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

getOptions

public PagableList<Question.Option> getOptions()
Specified by:
getOptions in interface Question

createQuestionList

static ResponseList<Question> createQuestionList(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

createOptionList

static PagableList<Question.Option> createOptionList(JSONObject json)
                                              throws FacebookException
Throws:
FacebookException

createOptionList

static ResponseList<Question.Option> createOptionList(HttpResponse res,
                                                      Configuration conf)
                                               throws FacebookException
Throws:
FacebookException