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

#include <assignment_submission.h>

Inheritance diagram for google_classroom_api::AssignmentSubmission:

Public Member Functions

 AssignmentSubmission (const Json::Value &storage)
 
 AssignmentSubmission (Json::Value *storage)
 
virtual ~AssignmentSubmission ()
 
const StringPiece GetTypeName () const
 
bool has_attachments () const
 
void clear_attachments ()
 
const client::JsonCppArray< Attachmentget_attachments () const
 
client::JsonCppArray< Attachmentmutable_attachments ()
 

Static Public Member Functions

static AssignmentSubmissionNew ()
 

Detailed Description

Student work for an assignment.

Constructor & Destructor Documentation

◆ AssignmentSubmission() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ AssignmentSubmission() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~AssignmentSubmission()

google_classroom_api::AssignmentSubmission::~AssignmentSubmission ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_attachments()

void google_classroom_api::AssignmentSubmission::clear_attachments ( )
inline

Clears the 'attachments' attribute.

◆ get_attachments()

const client::JsonCppArray<Attachment > google_classroom_api::AssignmentSubmission::get_attachments ( ) const

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_classroom_api::AssignmentSubmission

◆ has_attachments()

bool google_classroom_api::AssignmentSubmission::has_attachments ( ) const
inline

Determine if the 'attachments' attribute was set.

Returns
true if the 'attachments' attribute was set.

◆ mutable_attachments()

client::JsonCppArray<Attachment > google_classroom_api::AssignmentSubmission::mutable_attachments ( )

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

Attachments added by the student. Drive files that correspond to materials with a share mode of STUDENT_COPY may not exist yet if the student has not accessed the assignment in Classroom.

Some attachment metadata is only populated if the requesting user has permission to access it. Identifier and alternate_link fields are always available, but others (e.g. title) may not be.

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

◆ New()

AssignmentSubmission * google_classroom_api::AssignmentSubmission::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: