30 #ifndef GOOGLE_CLASSROOM_API_MULTIPLE_CHOICE_QUESTION_H_ 31 #define GOOGLE_CLASSROOM_API_MULTIPLE_CHOICE_QUESTION_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_classroom_api::MultipleChoiceQuestion");
93 return Storage().isMember(
"choices");
100 MutableStorage()->removeMember(
"choices");
108 const Json::Value& storage = Storage(
"choices");
109 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
120 Json::Value* storage = MutableStorage(
"choices");
121 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
128 #endif // GOOGLE_CLASSROOM_API_MULTIPLE_CHOICE_QUESTION_H_ void clear_choices()
Definition: multiple_choice_question.h:99
const StringPiece GetTypeName() const
Definition: multiple_choice_question.h:83
client::JsonCppArray< string > mutable_choices()
Definition: multiple_choice_question.h:119
Definition: announcement.h:41
Definition: multiple_choice_question.h:50
Definition: announcement.cc:43
const client::JsonCppArray< string > get_choices() const
Definition: multiple_choice_question.h:107
bool has_choices() const
Definition: multiple_choice_question.h:92