Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

StudentSubmission

import type { StudentSubmission } from "https://googleapis.deno.dev/v1/classroom:v1.ts";

Student submission for course work. StudentSubmission items are generated when a CourseWork item is created. Student submissions that have never been accessed (i.e. with state = NEW) may not have a creation time or update time.

interface StudentSubmission {
alternateLink?: string;
assignedGrade?: number;
assignmentSubmission?: AssignmentSubmission;
associatedWithDeveloper?: boolean;
courseId?: string;
courseWorkId?: string;
courseWorkType?:
| "COURSE_WORK_TYPE_UNSPECIFIED"
| "ASSIGNMENT"
| "SHORT_ANSWER_QUESTION"
| "MULTIPLE_CHOICE_QUESTION";
creationTime?: Date;
draftGrade?: number;
id?: string;
late?: boolean;
multipleChoiceSubmission?: MultipleChoiceSubmission;
shortAnswerSubmission?: ShortAnswerSubmission;
state?:
| "SUBMISSION_STATE_UNSPECIFIED"
| "NEW"
| "CREATED"
| "TURNED_IN"
| "RETURNED"
| "RECLAIMED_BY_STUDENT";
submissionHistory?: SubmissionHistory[];
updateTime?: Date;
userId?: string;
}

§Properties

§
assignedGrade?: number
[src]

Optional grade. If unset, no grade was set. This value must be non-negative. Decimal (that is, non-integer) values are allowed, but are rounded to two decimal places. This may be modified only by course teachers.

§
assignmentSubmission?: AssignmentSubmission
[src]

Submission content when course_work_type is ASSIGNMENT. Students can modify this content using ModifyAttachments.

§
associatedWithDeveloper?: boolean
[src]

Whether this student submission is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only.

§
courseId?: string
[src]

Identifier of the course. Read-only.

§
courseWorkId?: string
[src]

Identifier for the course work this corresponds to. Read-only.

§
courseWorkType?: "COURSE_WORK_TYPE_UNSPECIFIED" | "ASSIGNMENT" | "SHORT_ANSWER_QUESTION" | "MULTIPLE_CHOICE_QUESTION"
[src]

Type of course work this submission is for. Read-only.

§
creationTime?: Date
[src]

Creation time of this submission. This may be unset if the student has not accessed this item. Read-only.

§
draftGrade?: number
[src]

Optional pending grade. If unset, no grade was set. This value must be non-negative. Decimal (that is, non-integer) values are allowed, but are rounded to two decimal places. This is only visible to and modifiable by course teachers.

§
id?: string
[src]

Classroom-assigned Identifier for the student submission. This is unique among submissions for the relevant course work. Read-only.

§
late?: boolean
[src]

Whether this submission is late. Read-only.

§
multipleChoiceSubmission?: MultipleChoiceSubmission
[src]

Submission content when course_work_type is MULTIPLE_CHOICE_QUESTION.

§
shortAnswerSubmission?: ShortAnswerSubmission
[src]

Submission content when course_work_type is SHORT_ANSWER_QUESTION.

§
state?: "SUBMISSION_STATE_UNSPECIFIED" | "NEW" | "CREATED" | "TURNED_IN" | "RETURNED" | "RECLAIMED_BY_STUDENT"
[src]

State of this submission. Read-only.

§
submissionHistory?: SubmissionHistory[]
[src]

The history of the submission (includes state and grade histories). Read-only.

§
updateTime?: Date
[src]

Last update time of this submission. This may be unset if the student has not accessed this item. Read-only.

§
userId?: string
[src]

Identifier for the student that owns this submission. Read-only.