facebook4j.internal.json
Class QuestionJSONImpl
java.lang.Object
facebook4j.internal.json.FacebookResponseImpl
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
QuestionJSONImpl
QuestionJSONImpl(HttpResponse res,
Configuration conf)
throws FacebookException
- Throws:
FacebookException
QuestionJSONImpl
QuestionJSONImpl(JSONObject json)
throws FacebookException
- Throws:
FacebookException
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