Class Info |
|---|
public class Drive.Comments extends java.lang.Object Drive.Comments类结构。 |
Qualifier and Type | Class Name and Description |
|---|---|
class | Drive.Comments.Create类声明。 |
class | Drive.Comments.Delete类声明。 |
class | Drive.Comments.Get类声明。 |
class | Drive.Comments.List类声明。 |
class | Drive.Comments.Update类声明。 |
Method |
|---|
public Drive.Comments.Create create(String fileId, Comment content) throws java.io.IOException 创建文件的一条评论。 |
Parameters
Name | Description |
|---|---|
fileId | 文件ID。 |
content | 评论内容。 |
Throws
Name | Description |
|---|---|
java.io.IOException | 若接口调用异常,会返回IOException。您可以通过getMessage方法获取错误描述。 |
Returns
Type | Description |
|---|---|
Drive.Comments.Create | 返回一个Drive.Comments.Create类对象。 |
Method |
|---|
public Drive.Comments.Delete delete(String fileId, String commentId) throws java.io.IOException 删除文件的一条评论。 |
Parameters
Name | Description |
|---|---|
fileId | 文件ID。 |
commentId | 评论ID。 |
Throws
Name | Description |
|---|---|
java.io.IOException | 若接口调用异常,会返回IOException。开发者可以通过getMessage方法获取错误描述。 |
Returns
Type | Description |
|---|---|
Drive.Comments.Delete | 返回一个Drive.Comments.Delete类对象。 |
Method |
|---|
public Drive.Comments.Get get(String fileId, String commentId) throws java.io.IOException 获取文件的一条评论。 |
Parameters
Name | Description |
|---|---|
fileId | 文件ID。 |
commentId | 评论ID。 |
Throws
Name | Description |
|---|---|
java.io.IOException | 若接口调用异常,会返回IOException。您可以通过getMessage方法获取错误描述。 |
Returns
Type | Description |
|---|---|
Drive.Comments.Get | 返回一个Drive.Comments.Get类对象。 |
Method |
|---|
public Drive.Comments.List list(String fileId) throws java.io.IOException 获取文件评论列表。 |
Parameters
Name | Description |
|---|---|
fileId | 文件ID。 |
Throws
Name | Description |
|---|---|
java.io.IOException | 若接口调用异常,会返回IOException。您可以通过getMessage方法获取错误描述。 |
Returns
Type | Description |
|---|---|
Drive.Comments.List | 返回一个Drive.Comments.List类对象。 |
Method |
|---|
public Drive.Comments.Update update(String fileId, String commentId, Comment content) throws java.io.IOException 更新文件评论内容。 |
Parameters
Name | Description |
|---|---|
fileId | 文件ID。 |
commentId | 评论ID。 |
content | 评论内容。 |
Throws
Name | Description |
|---|---|
java.io.IOException | 若接口调用异常,会返回IOException。您可以通过getMessage方法获取错误描述。 |
Returns
Type | Description |
|---|---|
Drive.Comments.Update | 返回一个Drive.Comments.Update类对象。 |