classroom
v1
|
#include <attachment.h>
Public Member Functions | |
Attachment (const Json::Value &storage) | |
Attachment (Json::Value *storage) | |
virtual | ~Attachment () |
const StringPiece | GetTypeName () const |
bool | has_drive_file () const |
void | clear_drive_file () |
const DriveFile | get_drive_file () const |
DriveFile | mutable_driveFile () |
bool | has_form () const |
void | clear_form () |
const Form | get_form () const |
Form | mutable_form () |
bool | has_link () const |
void | clear_link () |
const Link | get_link () const |
Link | mutable_link () |
bool | has_you_tube_video () const |
void | clear_you_tube_video () |
const YouTubeVideo | get_you_tube_video () const |
YouTubeVideo | mutable_youTubeVideo () |
Static Public Member Functions | |
static Attachment * | New () |
Attachment added to student assignment work.
When creating attachments, setting the form
field is not supported.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'driveFile
' attribute.
|
inline |
Clears the 'form
' attribute.
|
inline |
Clears the 'link
' attribute.
|
inline |
Clears the 'youTubeVideo
' attribute.
const DriveFile google_classroom_api::Attachment::get_drive_file | ( | ) | const |
Get a reference to the value of the 'driveFile
' attribute.
const Form google_classroom_api::Attachment::get_form | ( | ) | const |
Get a reference to the value of the 'form
' attribute.
const Link google_classroom_api::Attachment::get_link | ( | ) | const |
Get a reference to the value of the 'link
' attribute.
const YouTubeVideo google_classroom_api::Attachment::get_you_tube_video | ( | ) | const |
Get a reference to the value of the 'youTubeVideo
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'driveFile
' attribute was set.
driveFile
' attribute was set.
|
inline |
Determine if the 'form
' attribute was set.
form
' attribute was set.
|
inline |
Determine if the 'link
' attribute was set.
link
' attribute was set.
|
inline |
Determine if the 'youTubeVideo
' attribute was set.
youTubeVideo
' attribute was set. DriveFile google_classroom_api::Attachment::mutable_driveFile | ( | ) |
Gets a reference to a mutable value of the 'driveFile
' property.
Google Drive file attachment.
Form google_classroom_api::Attachment::mutable_form | ( | ) |
Gets a reference to a mutable value of the 'form
' property.
Google Forms attachment.
Link google_classroom_api::Attachment::mutable_link | ( | ) |
Gets a reference to a mutable value of the 'link
' property.
Link attachment.
YouTubeVideo google_classroom_api::Attachment::mutable_youTubeVideo | ( | ) |
Gets a reference to a mutable value of the 'youTubeVideo
' property.
Youtube video attachment.
|
static |
Creates a new default instance.