public class QuestionInfo extends AbstractModel
Constructor and Description |
---|
QuestionInfo() |
QuestionInfo(QuestionInfo source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
AnswerStat[] |
getAnswerStats()
Get The statistics for each type of answer.
|
Long |
getCorrectAnswer()
Get The correct answer.
|
Long |
getDuration()
Get The time limit for the question.
|
String |
getQuestionContent()
Get The question.
|
String |
getQuestionId()
Get The question ID.
|
void |
setAnswerStats(AnswerStat[] AnswerStats)
Set The statistics for each type of answer.
|
void |
setCorrectAnswer(Long CorrectAnswer)
Set The correct answer.
|
void |
setDuration(Long Duration)
Set The time limit for the question.
|
void |
setQuestionContent(String QuestionContent)
Set The question.
|
void |
setQuestionId(String QuestionId)
Set The question ID.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public QuestionInfo()
public QuestionInfo(QuestionInfo source)
public String getQuestionId()
public void setQuestionId(String QuestionId)
QuestionId
- The question ID.public String getQuestionContent()
public void setQuestionContent(String QuestionContent)
QuestionContent
- The question.public Long getDuration()
public void setDuration(Long Duration)
Duration
- The time limit for the question. If you set this parameter to `0`, there will not be a time limit.public Long getCorrectAnswer()
public void setCorrectAnswer(Long CorrectAnswer)
CorrectAnswer
- The correct answer. Bits are used to indicate the options that should be chosen. For example, `0x1` indicates option A; `0x11` indicates A and B, and so on.public AnswerStat[] getAnswerStats()
public void setAnswerStats(AnswerStat[] AnswerStats)
AnswerStats
- The statistics for each type of answer.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.