Show / Hide Table of Contents

Class CourseWork

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

Inheritance
object
CourseWork
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Classroom.v1.Data
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CourseWork : IDirectResponseSchema

Properties

AlternateLink

Absolute link to this course work in the Classroom web UI. This is only populated if state is PUBLISHED. Read-only.

Declaration
[JsonProperty("alternateLink")]
public virtual string AlternateLink { get; set; }
Property Value
Type Description
string

AssigneeMode

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

Declaration
[JsonProperty("assigneeMode")]
public virtual string AssigneeMode { get; set; }
Property Value
Type Description
string

Assignment

Assignment details. This is populated only when work_type is ASSIGNMENT. Read-only.

Declaration
[JsonProperty("assignment")]
public virtual Assignment Assignment { get; set; }
Property Value
Type Description
Assignment

AssociatedWithDeveloper

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

Declaration
[JsonProperty("associatedWithDeveloper")]
public virtual bool? AssociatedWithDeveloper { get; set; }
Property Value
Type Description
bool?

CourseId

Identifier of the course. Read-only.

Declaration
[JsonProperty("courseId")]
public virtual string CourseId { get; set; }
Property Value
Type Description
string

CreationTime

object representation of CreationTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreationTimeDateTimeOffset instead.")]
public virtual object CreationTime { get; set; }
Property Value
Type Description
object

CreationTimeDateTimeOffset

DateTimeOffset representation of CreationTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreationTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

CreationTimeRaw

Timestamp when this course work was created. Read-only.

Declaration
[JsonProperty("creationTime")]
public virtual string CreationTimeRaw { get; set; }
Property Value
Type Description
string

CreatorUserId

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

Declaration
[JsonProperty("creatorUserId")]
public virtual string CreatorUserId { get; set; }
Property Value
Type Description
string

Description

Optional description of this course work. If set, the description must be a valid UTF-8 string containing no more than 30,000 characters.

Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type Description
string

DueDate

Optional date, in UTC, that submissions for this course work are due. This must be specified if due_time is specified.

Declaration
[JsonProperty("dueDate")]
public virtual Date DueDate { get; set; }
Property Value
Type Description
Date

DueTime

Optional time of day, in UTC, that submissions for this course work are due. This must be specified if due_date is specified.

Declaration
[JsonProperty("dueTime")]
public virtual TimeOfDay DueTime { get; set; }
Property Value
Type Description
TimeOfDay

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

GradeCategory

The category that this coursework's grade contributes to. Present only when a category has been chosen for the coursework. May be used in calculating the overall grade. Read-only.

Declaration
[JsonProperty("gradeCategory")]
public virtual GradeCategory GradeCategory { get; set; }
Property Value
Type Description
GradeCategory

GradingPeriodId

Identifier of the grading period associated with the coursework. * At creation, if unspecified, the grading period ID will be set based on the dueDate (or scheduledTime if no dueDate is set). * To indicate no association to any grading period, set this field to an empty string (""). * If specified, it must match an existing grading period ID in the course.

Declaration
[JsonProperty("gradingPeriodId")]
public virtual string GradingPeriodId { get; set; }
Property Value
Type Description
string

Id

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

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
string

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.

Declaration
[JsonProperty("individualStudentsOptions")]
public virtual IndividualStudentsOptions IndividualStudentsOptions { get; set; }
Property Value
Type Description
IndividualStudentsOptions

Materials

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

Declaration
[JsonProperty("materials")]
public virtual IList<Material> Materials { get; set; }
Property Value
Type Description
IList<Material>

MaxPoints

Maximum grade for this course work. If zero or unspecified, this assignment is considered ungraded. This must be a non-negative integer value.

Declaration
[JsonProperty("maxPoints")]
public virtual double? MaxPoints { get; set; }
Property Value
Type Description
double?

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.

Declaration
[JsonProperty("multipleChoiceQuestion")]
public virtual MultipleChoiceQuestion MultipleChoiceQuestion { get; set; }
Property Value
Type Description
MultipleChoiceQuestion

ScheduledTime

object representation of ScheduledTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ScheduledTimeDateTimeOffset instead.")]
public virtual object ScheduledTime { get; set; }
Property Value
Type Description
object

ScheduledTimeDateTimeOffset

DateTimeOffset representation of ScheduledTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? ScheduledTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

ScheduledTimeRaw

Optional timestamp when this course work is scheduled to be published.

Declaration
[JsonProperty("scheduledTime")]
public virtual string ScheduledTimeRaw { get; set; }
Property Value
Type Description
string

State

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

Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
Type Description
string

SubmissionModificationMode

Setting to determine when students are allowed to modify submissions. If unspecified, the default value is MODIFIABLE_UNTIL_TURNED_IN.

Declaration
[JsonProperty("submissionModificationMode")]
public virtual string SubmissionModificationMode { get; set; }
Property Value
Type Description
string

Title

Title of this course work. The title must be a valid UTF-8 string containing between 1 and 3000 characters.

Declaration
[JsonProperty("title")]
public virtual string Title { get; set; }
Property Value
Type Description
string

TopicId

Identifier for the topic that this coursework is associated with. Must match an existing topic in the course.

Declaration
[JsonProperty("topicId")]
public virtual string TopicId { get; set; }
Property Value
Type Description
string

UpdateTime

object representation of UpdateTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type Description
object

UpdateTimeDateTimeOffset

DateTimeOffset representation of UpdateTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

UpdateTimeRaw

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

Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type Description
string

WorkType

Type of this course work. The type is set when the course work is created and cannot be changed.

Declaration
[JsonProperty("workType")]
public virtual string WorkType { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX