Google 课堂插件现已面向开发者正式推出!如需了解详情,请参阅
插件文档。
GradeCategory
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
课程中某个成绩类别的详细信息。
课业可以有 0 个或 1 个成绩类别,并且该类别可能会用于计算总体成绩。如需了解详情,请参阅帮助中心文章。
JSON 表示法 |
{
"id": string,
"name": string,
"weight": integer,
"defaultGradeDenominator": integer
} |
字段 |
id |
string
成绩类别的 ID。
|
name |
string
成绩类别的名称。
|
weight |
integer
类别平均值在总体平均值中的权重。权重为 12.34% 的广告系列将表示为 123400(100% 为 1,000,000)。由于我们使用小数精度为 2 位,因此最后两位数字应始终为 0。仅当成绩计算类型为 WEIGHTED_CATEGORIES 时适用。
|
defaultGradeDenominator |
integer
分母的默认值。仅当成绩计算类型为 TOTAL_POINTS 时适用。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# GradeCategory\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nDetails for a grade category in a course.\n\nCoursework may have zero or one grade category, and the category may be used in computing the overall grade. See the [help center article](https://support.google.com/edu/classroom/answer/9184995) for details.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"name\": string, \"weight\": integer, \"defaultGradeDenominator\": integer } ``` |\n\n| Fields ||\n|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` ID of the grade category. |\n| `name` | `string` Name of the grade category. |\n| `weight` | `integer` The weight of the category average as part of overall average. A weight of 12.34% is represented as 123400 (100% is 1,000,000). The last two digits should always be zero since we use two decimal precision. Only applicable when grade calculation type is WEIGHTED_CATEGORIES. |\n| `defaultGradeDenominator` | `integer` Default value of denominator. Only applicable when grade calculation type is TOTAL_POINTS. |"]]