目录

Drive.Comments

Class Info

public class Drive.Comments extends java.lang.Object

Drive.Comments类结构。

Nested Class Summary

Qualifier and Type

Class Name and Description

class

Drive.Comments.Create

Drive.Comments.Create类声明。

class

Drive.Comments.Delete

Drive.Comments.Delete类声明。

class

Drive.Comments.Get

Drive.Comments.Get类声明。

class

Drive.Comments.List

Drive.Comments.List类声明。

class

Drive.Comments.Update

Drive.Comments.Update类声明。

Public Constructor Summary

Constructor Name

Comments()

Drive.Comments构造方法。

Public Method Summary

Qualifier and Type

Method Name and Description

Drive.Comments.Create

create(String fileId, Comment content)

创建文件的一条评论。

Drive.Comments.Delete

delete(String fileId, String commentId)

删除文件的一条评论。

Drive.Comments.Get

get(String fileId, String commentId)

获取文件的一条评论。

Drive.Comments.List

list(String fileId)

获取文件评论列表。

Drive.Comments.Update

update(String fileId, String commentId, Comment content)

更新文件评论内容。

Public Constructors

[h2]Drive.Comments

Constructor

Drive.Comments()

构造一个Drive.Comments类对象。

Public Methods

[h2]create

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类对象。

[h2]delete

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类对象。

[h2]get

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类对象。

[h2]list

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类对象。

[h2]update

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类对象。