Class AddOnAttachment
An add-on attachment on a post.
Implements
Inherited Members
Namespace: Google.Apis.Classroom.v1.Data
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class AddOnAttachment : IDirectResponseSchema
Properties
CopyHistory
Output only. Identifiers of attachments that were previous copies of this attachment. If the attachment was previously copied by virtue of its parent post being copied, this enumerates the identifiers of attachments that were its previous copies in ascending chronological order of copy.
Declaration
[JsonProperty("copyHistory")]
public virtual IList<CopyHistory> CopyHistory { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<CopyHistory> |
CourseId
Immutable. Identifier of the course.
Declaration
[JsonProperty("courseId")]
public virtual string CourseId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DueDate
Date, in UTC, that work on this attachment is 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
Time of day, in UTC, that work on this attachment is 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 |
Id
Immutable. Classroom-assigned identifier for this attachment, unique per post.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ItemId
Immutable. Identifier of the Announcement, CourseWork, or CourseWorkMaterial under which the
attachment is attached. Unique per course.
Declaration
[JsonProperty("itemId")]
public virtual string ItemId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MaxPoints
Maximum grade for this attachment. Can only be set if studentWorkReviewUri is set. Set to a non-zero value
to indicate that the attachment supports grade passback. If set, this must be a non-negative integer value.
When set to zero, the attachment will not support grade passback.
Declaration
[JsonProperty("maxPoints")]
public virtual double? MaxPoints { get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
PostId
Immutable. Deprecated, use item_id instead.
Declaration
[JsonProperty("postId")]
public virtual string PostId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StudentViewUri
Required. URI to show the student view of the attachment. The URI will be opened in an iframe with the
courseId, itemId, itemType, and attachmentId query parameters set.
Declaration
[JsonProperty("studentViewUri")]
public virtual EmbedUri StudentViewUri { get; set; }
Property Value
| Type | Description |
|---|---|
| EmbedUri |
StudentWorkReviewUri
URI for the teacher to see student work on the attachment, if applicable. The URI will be opened in an
iframe with the courseId, itemId, itemType, attachmentId, and submissionId query parameters set.
This is the same submissionId returned in the
AddOnContext.studentContext
field when a student views the attachment. If the URI is omitted or removed, max_points will also be
discarded.
Declaration
[JsonProperty("studentWorkReviewUri")]
public virtual EmbedUri StudentWorkReviewUri { get; set; }
Property Value
| Type | Description |
|---|---|
| EmbedUri |
TeacherViewUri
Required. URI to show the teacher view of the attachment. The URI will be opened in an iframe with the
courseId, itemId, itemType, and attachmentId query parameters set.
Declaration
[JsonProperty("teacherViewUri")]
public virtual EmbedUri TeacherViewUri { get; set; }
Property Value
| Type | Description |
|---|---|
| EmbedUri |
Title
Required. Title of this attachment. The title must be between 1 and 1000 characters.
Declaration
[JsonProperty("title")]
public virtual string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |