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

Announcement

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

Announcement created by a teacher for students of the course

interface Announcement {
alternateLink?: string;
assigneeMode?: "ASSIGNEE_MODE_UNSPECIFIED" | "ALL_STUDENTS" | "INDIVIDUAL_STUDENTS";
courseId?: string;
creationTime?: Date;
creatorUserId?: string;
id?: string;
individualStudentsOptions?: IndividualStudentsOptions;
materials?: Material[];
scheduledTime?: Date;
state?:
| "ANNOUNCEMENT_STATE_UNSPECIFIED"
| "PUBLISHED"
| "DRAFT"
| "DELETED";
text?: string;
updateTime?: Date;
}

§Properties

§
assigneeMode?: "ASSIGNEE_MODE_UNSPECIFIED" | "ALL_STUDENTS" | "INDIVIDUAL_STUDENTS"
[src]

Assignee mode of the announcement. If unspecified, the default value is ALL_STUDENTS.

§
courseId?: string
[src]

Identifier of the course. Read-only.

§
creationTime?: Date
[src]

Timestamp when this announcement was created. Read-only.

§
creatorUserId?: string
[src]

Identifier for the user that created the announcement. Read-only.

§
id?: string
[src]

Classroom-assigned identifier of this announcement, unique per course. Read-only.

§
individualStudentsOptions?: IndividualStudentsOptions
[src]

Identifiers of students with access to the announcement. This field is set only if assigneeMode is INDIVIDUAL_STUDENTS. If the assigneeMode is INDIVIDUAL_STUDENTS, then only students specified in this field can see the announcement.

§
materials?: Material[]
[src]

Additional materials. Announcements must have no more than 20 material items.

§
scheduledTime?: Date
[src]

Optional timestamp when this announcement is scheduled to be published.

§
state?: "ANNOUNCEMENT_STATE_UNSPECIFIED" | "PUBLISHED" | "DRAFT" | "DELETED"
[src]

Status of this announcement. If unspecified, the default state is DRAFT.

§
text?: string
[src]

Description of this announcement. The text must be a valid UTF-8 string containing no more than 30,000 characters.

§
updateTime?: Date
[src]

Timestamp of the most recent change to this announcement. Read-only.