public class Classroom.Courses.Announcements extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Classroom.Courses.Announcements.Create |
class |
Classroom.Courses.Announcements.Delete |
class |
Classroom.Courses.Announcements.Get |
class |
Classroom.Courses.Announcements.List |
class |
Classroom.Courses.Announcements.ModifyAssignees |
class |
Classroom.Courses.Announcements.Patch |
| Constructor and Description |
|---|
Announcements() |
| Modifier and Type | Method and Description |
|---|---|
Classroom.Courses.Announcements.Create |
create(String courseId,
Announcement content)
Creates an announcement.
|
Classroom.Courses.Announcements.Delete |
delete(String courseId,
String id)
Deletes an announcement.
|
Classroom.Courses.Announcements.Get |
get(String courseId,
String id)
Returns an announcement.
|
Classroom.Courses.Announcements.List |
list(String courseId)
Returns a list of announcements that the requester is permitted to view.
|
Classroom.Courses.Announcements.ModifyAssignees |
modifyAssignees(String courseId,
String id,
ModifyAnnouncementAssigneesRequest content)
Modifies assignee mode and options of an announcement.
|
Classroom.Courses.Announcements.Patch |
patch(String courseId,
String id,
Announcement content)
Updates one or more fields of an announcement.
|
public Classroom.Courses.Announcements.Create create(String courseId, Announcement content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course. This identifier can be either the Classroom-assigned identifier or an
alias.content - the AnnouncementIOExceptionpublic Classroom.Courses.Announcements.Delete delete(String courseId, String id) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course. This identifier can be either the Classroom-assigned identifier or an
alias.id - Identifier of the announcement to delete. This identifier is a Classroom-assigned identifier.IOExceptionpublic Classroom.Courses.Announcements.Get get(String courseId, String id) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course. This identifier can be either the Classroom-assigned identifier or an
alias.id - Identifier of the announcement.IOExceptionpublic Classroom.Courses.Announcements.List list(String courseId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course. This identifier can be either the Classroom-assigned identifier or an
alias.IOExceptionpublic Classroom.Courses.Announcements.ModifyAssignees modifyAssignees(String courseId, String id, ModifyAnnouncementAssigneesRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course. This identifier can be either the Classroom-assigned identifier or an
alias.id - Identifier of the announcement.content - the ModifyAnnouncementAssigneesRequestIOExceptionpublic Classroom.Courses.Announcements.Patch patch(String courseId, String id, Announcement content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.courseId - Identifier of the course. This identifier can be either the Classroom-assigned identifier or an
alias.id - Identifier of the announcement.content - the AnnouncementIOExceptionCopyright © 2011–2022 Google. All rights reserved.