Google Classroom eklentileri artık geliştiricilerin genel kullanımına sunuldu! Daha fazla bilgi edinmek için lütfen
eklenti belgelerini inceleyin.
AddOnContext
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Belirli bir yayın bağlamında Classroom eklentileri için eklerle ilgili meta veriler.
JSON gösterimi |
{
"courseId": string,
"postId": string,
"itemId": string,
"supportsStudentWork": boolean,
// Union field context can be only one of the following:
"studentContext": {
object (StudentContext )
},
"teacherContext": {
object (TeacherContext )
}
// End of list of possible types for union field context .
} |
Alanlar |
courseId |
string
Değişmez. Dersin tanımlayıcısıdır.
|
postId (deprecated) |
string
Değişmez. Desteği sonlandırıldı. Bunun yerine itemId kullanın.
|
itemId |
string
Değişmez. Ekin eklenmiş olduğu Announcement , CourseWork veya CourseWorkMaterial öğesinin tanımlayıcısıdır.
|
supportsStudentWork |
boolean
İsteğe bağlı. Yayında öğretmenin öğrenci çalışmalarını ve geri verilen notları görmesine izin verilip verilmediği.
|
Birlik alanı context . context yalnızca aşağıdakilerden biri olabilir:
|
studentContext |
object (StudentContext )
İstekte bulunan kullanıcının öğrenci rolüne karşılık gelen eklenti bağlamı. Bu özelliğin varlığı, istek gönderen kullanıcının kurstaki bir öğrenci olduğunu gösterir.
|
teacherContext |
object (TeacherContext )
İstekte bulunan kullanıcının öğretmen rolüne karşılık gelen eklenti bağlamı. Bu özelliğin varlığı, istek gönderen kullanıcının kursta öğretmen olduğunu gösterir.
|
StudentContext
İstekte bulunan kullanıcı bir öğrenciyse role özgü bağlam.
JSON gösterimi |
{
"submissionId": string
} |
Alanlar |
submissionId |
string
Notların aktarılması ve öğrenci çalışmasının öğretmene gösterilmesi sırasında öğrencinin tanımlanması için kullanıcının gönderim kimliğinin istenmesi. Bu değer tam olarak supportsStudentWork true olduğunda ayarlanır.
|
TeacherContext
Bu türde alan yoktur.
İstekte bulunan kullanıcı bir öğretmense role özgü bağlam.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[],[],null,["# AddOnContext\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [StudentContext](#StudentContext)\n - [JSON representation](#StudentContext.SCHEMA_REPRESENTATION)\n- [TeacherContext](#TeacherContext)\n\nAttachment-relevant metadata for Classroom add-ons in the context of a specific post.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"courseId\": string, \"postId\": string, \"itemId\": string, \"supportsStudentWork\": boolean, // Union field `context` can be only one of the following: \"studentContext\": { object (/workspace/classroom/reference/rest/v1/AddOnContext#StudentContext) }, \"teacherContext\": { object (/workspace/classroom/reference/rest/v1/AddOnContext#TeacherContext) } // End of list of possible types for union field `context`. } ``` |\n\n| Fields ||\n|---------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `courseId` | `string` Immutable. Identifier of the course. |\n| `postId` **(deprecated)** | `string` | This item is deprecated! Immutable. Deprecated, use `itemId` instead. |\n| `itemId` | `string` Immutable. Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. |\n| `supportsStudentWork` | `boolean` Optional. Whether the post allows the teacher to see student work and passback grades. |\n| Union field `context`. `context` can be only one of the following: ||\n| `studentContext` | `object (`[StudentContext](/workspace/classroom/reference/rest/v1/AddOnContext#StudentContext)`)` Add-on context corresponding to the requesting user's role as a student. Its presence implies that the requesting user is a student in the course. |\n| `teacherContext` | `object (`[TeacherContext](/workspace/classroom/reference/rest/v1/AddOnContext#TeacherContext)`)` Add-on context corresponding to the requesting user's role as a teacher. Its presence implies that the requesting user is a teacher in the course. |\n\nStudentContext\n--------------\n\nRole-specific context if the requesting user is a student.\n\n| JSON representation |\n|------------------------------------|\n| ``` { \"submissionId\": string } ``` |\n\n| Fields ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `submissionId` | `string` Requesting user's submission id to be used for grade passback and to identify the student when showing student work to the teacher. This is set exactly when `supportsStudentWork` is `true`. |\n\nTeacherContext\n--------------\n\nThis type has no fields.\nRole-specific context if the requesting user is a teacher."]]