classroom  v1
Public Member Functions | Static Public Member Functions | List of all members
google_classroom_api::MultipleChoiceQuestion Class Reference

#include <multiple_choice_question.h>

Inheritance diagram for google_classroom_api::MultipleChoiceQuestion:

Public Member Functions

 MultipleChoiceQuestion (const Json::Value &storage)
 
 MultipleChoiceQuestion (Json::Value *storage)
 
virtual ~MultipleChoiceQuestion ()
 
const StringPiece GetTypeName () const
 
bool has_choices () const
 
void clear_choices ()
 
const client::JsonCppArray< string > get_choices () const
 
client::JsonCppArray< string > mutable_choices ()
 

Static Public Member Functions

static MultipleChoiceQuestionNew ()
 

Detailed Description

Additional details for multiple-choice questions.

Constructor & Destructor Documentation

◆ MultipleChoiceQuestion() [1/2]

google_classroom_api::MultipleChoiceQuestion::MultipleChoiceQuestion ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ MultipleChoiceQuestion() [2/2]

google_classroom_api::MultipleChoiceQuestion::MultipleChoiceQuestion ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~MultipleChoiceQuestion()

google_classroom_api::MultipleChoiceQuestion::~MultipleChoiceQuestion ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_choices()

void google_classroom_api::MultipleChoiceQuestion::clear_choices ( )
inline

Clears the 'choices' attribute.

◆ get_choices()

const client::JsonCppArray<string > google_classroom_api::MultipleChoiceQuestion::get_choices ( ) const
inline

Get a reference to the value of the 'choices' attribute.

◆ GetTypeName()

const StringPiece google_classroom_api::MultipleChoiceQuestion::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_classroom_api::MultipleChoiceQuestion

◆ has_choices()

bool google_classroom_api::MultipleChoiceQuestion::has_choices ( ) const
inline

Determine if the 'choices' attribute was set.

Returns
true if the 'choices' attribute was set.

◆ mutable_choices()

client::JsonCppArray<string > google_classroom_api::MultipleChoiceQuestion::mutable_choices ( )
inline

Gets a reference to a mutable value of the 'choices' property.

Possible choices.

Returns
The result can be modified to change the attribute value.

◆ New()

MultipleChoiceQuestion * google_classroom_api::MultipleChoiceQuestion::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

The documentation for this class was generated from the following files: