CourseWork class

Course work created by a teacher for students of the course.

Constructors

CourseWork()
CourseWork.fromJson(Map _json)

Properties

Absolute link to this course work in the Classroom web UI. This is only populated if state is PUBLISHED. Read-only.
read / write
assigneeMode String
Assignee mode of the coursework. If unspecified, the default value is ALL_STUDENTS. Possible string values are: [...]
read / write
assignment Assignment
Assignment details. This is populated only when work_type is ASSIGNMENT. Read-only.
read / write
associatedWithDeveloper bool
Whether this course work item is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only.
read / write
courseId String
Identifier of the course. Read-only.
read / write
creationTime String
Timestamp when this course work was created. Read-only.
read / write
creatorUserId String
Identifier for the user that created the coursework. Read-only.
read / write
description String
Optional description of this course work. If set, the description must be a valid UTF-8 string containing no more than 30,000 characters.
read / write
dueDate Date
Optional date, in UTC, that submissions for this course work are due. This must be specified if due_time is specified.
read / write
dueTime TimeOfDay
Optional time of day, in UTC, that submissions for this course work are due. This must be specified if due_date is specified.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Classroom-assigned identifier of this course work, unique per course. Read-only.
read / write
individualStudentsOptions IndividualStudentsOptions
Identifiers of students with access to the coursework. This field is set only if assigneeMode is INDIVIDUAL_STUDENTS. If the assigneeMode is INDIVIDUAL_STUDENTS, then only students specified in this field are assigned the coursework.
read / write
materials List<Material>
Additional materials. CourseWork must have no more than 20 material items.
read / write
maxPoints double
Maximum grade for this course work. If zero or unspecified, this assignment is considered ungraded. This must be a non-negative integer value.
read / write
multipleChoiceQuestion MultipleChoiceQuestion
Multiple choice question details. For read operations, this field is populated only when work_type is MULTIPLE_CHOICE_QUESTION. For write operations, this field must be specified when creating course work with a work_type of MULTIPLE_CHOICE_QUESTION, and it must not be set otherwise.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scheduledTime String
Optional timestamp when this course work is scheduled to be published.
read / write
state String
Status of this course work. If unspecified, the default state is DRAFT. Possible string values are: [...]
read / write
submissionModificationMode String
Setting to determine when students are allowed to modify submissions. If unspecified, the default value is MODIFIABLE_UNTIL_TURNED_IN. Possible string values are: [...]
read / write
title String
Title of this course work. The title must be a valid UTF-8 string containing between 1 and 3000 characters.
read / write
topicId String
Identifier for the topic that this coursework is associated with. Must match an existing topic in the course.
read / write
updateTime String
Timestamp of the most recent change to this course work. Read-only.
read / write
workType String
Type of this course work. The type is set when the course work is created and cannot be changed. Possible string values are: [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited