Packagecom.yahoo.webapis.answers
Classpublic class Question

Question is a ValueObject for the Answers API.



Public Properties
 PropertyDefined by
  answers : Array
The Chosen Answer of the Question.
Question
  author : User
The User who posted the Question.
Question
  authorPhotoURL : String
The URL to the author's avatar photo.
Question
  chosenAnswer : ChosenAnswer
The Chosen Answer of the Question.
Question
  content : String
The Content of the Question.
Question
  date : Date
The Date of the Question.
Question
  hasAnswers : Boolean
The Chosen Answer of the Question.
Question
  hasChosenAnswer : Boolean
An easy flag boolean to determine if there has been a chosenAnswer yet.
Question
  id : String
The id of the Question.
Question
  inCategory : Category
The Category the Question is in.
Question
  link : String
The url link to the Question.
Question
  numAnswers : Number
The amount of Answers on the Question.
Question
  numComments : Number
The amount of Comments on the Question.
Question
  subject : String
The literal Question.
Question
  success : Boolean = false
Question
  timestamp : Date
The Timestamp of the Question.
Question
  type : String
The Type of the Question, either 'Answered', 'Voting', or 'Open'
Question
Public Methods
 MethodDefined by
  
Construct a new Question instance.
Question
Property detail
answersproperty
answers:Array  [read-write]

The Chosen Answer of the Question.

Implementation
    public function get answers():Array
    public function set answers(value:Array):void
authorproperty 
author:User  [read-write]

The User who posted the Question.

Implementation
    public function get author():User
    public function set author(value:User):void
authorPhotoURLproperty 
authorPhotoURL:String  [read-write]

The URL to the author's avatar photo.

Implementation
    public function get authorPhotoURL():String
    public function set authorPhotoURL(value:String):void
chosenAnswerproperty 
chosenAnswer:ChosenAnswer  [read-write]

The Chosen Answer of the Question.

Implementation
    public function get chosenAnswer():ChosenAnswer
    public function set chosenAnswer(value:ChosenAnswer):void
contentproperty 
content:String  [read-write]

The Content of the Question.

Implementation
    public function get content():String
    public function set content(value:String):void
dateproperty 
date:Date  [read-write]

The Date of the Question.

Implementation
    public function get date():Date
    public function set date(value:Date):void
hasAnswersproperty 
hasAnswers:Boolean  [read-write]

The Chosen Answer of the Question.

Implementation
    public function get hasAnswers():Boolean
    public function set hasAnswers(value:Boolean):void
hasChosenAnswerproperty 
hasChosenAnswer:Boolean  [read-write]

An easy flag boolean to determine if there has been a chosenAnswer yet.

Implementation
    public function get hasChosenAnswer():Boolean
    public function set hasChosenAnswer(value:Boolean):void
idproperty 
id:String  [read-write]

The id of the Question.

Implementation
    public function get id():String
    public function set id(value:String):void
inCategoryproperty 
inCategory:Category  [read-write]

The Category the Question is in.

Implementation
    public function get inCategory():Category
    public function set inCategory(value:Category):void
linkproperty 
link:String  [read-write]

The url link to the Question.

Implementation
    public function get link():String
    public function set link(value:String):void
numAnswersproperty 
numAnswers:Number  [read-write]

The amount of Answers on the Question.

Implementation
    public function get numAnswers():Number
    public function set numAnswers(value:Number):void
numCommentsproperty 
numComments:Number  [read-write]

The amount of Comments on the Question.

Implementation
    public function get numComments():Number
    public function set numComments(value:Number):void
subjectproperty 
subject:String  [read-write]

The literal Question.

Implementation
    public function get subject():String
    public function set subject(value:String):void
successproperty 
public var success:Boolean = false
timestampproperty 
timestamp:Date  [read-write]

The Timestamp of the Question.

Implementation
    public function get timestamp():Date
    public function set timestamp(value:Date):void
typeproperty 
type:String  [read-write]

The Type of the Question, either 'Answered', 'Voting', or 'Open'

Implementation
    public function get type():String
    public function set type(value:String):void
Constructor detail
Question()constructor
public function Question()

Construct a new Question instance.