目录

Class info
public class Drive extends AbstractJsonClient
华为Drive服务实现类,负责管理云端硬盘中的文件,包括上传,下载,搜索,检测更改等。

Nested Class Summary

TypeNameDesc
classDrive.AboutDrive.About类声明。
classDrive.ChangesDrive.Changes类声明。
classDrive.FilesDrive.Files类声明。
classDrive.ChannelsDrive.Channels类声明。
static classDrive.BuilderDrive类对象构造类。
classDrive.CommentsDrive. Comments类声明。
classDrive.RepliesDrive. Replies类声明。

Public Constructor Summary

Constructor name
Drive(DriveCredential credential, Context context)
Drive构造方法。

Protected Constructor Summary

Constructor name
Drive(Builder builder)
Drive构造方法。

Public Method Summary

Return typeMethod name
Drive.Aboutabout()
获取封装About接口请求的访问对象。
Drive.Changeschanges()
获取创建Changes请求方法的访问对象。
Drive.Channelschannels()
获取Channels方法请求的访问对象。
Drive.Filesfiles()
获取Files请求的访问对象。
Drive.Commentscomments()
获取Comments方法请求的访问对象。
Drive.Repliesreplies()
获取评论回复Replies请求的访问对象。

Protected Method Summary

Return typeMethod name
voidinitialize(AbstractClientRequest<?> httpClientRequest)

Public Constructors

constructor
public Drive(DriveCredential credential, android.content.Context context)
构造一个Drive对象。

Parameters

Parameter nameParameter desc
credentialDriveCredential对象,设备凭证,包含用户ID,国家/地区代码等信息。
context应用上下文。

Protected Constructors

constructor
protected Drive(Builder builder)
构造一个Drive对象。

Parameters

Parameter nameParameter desc
builderbuilder构造对象。

Public Methods

Method
public Drive.About about()
获取封装Drive.About接口请求的对象。

Return

typedesc
Drive.About返回一个Drive.About类对象。


Method
public Drive.Changes changes()
获取创建Drive.Changes请求方法的访问对象。

Return

typedesc
Drive.Changes返回一个Drive.Changes类对象。


Method
public Drive.Channels channels()
获取Drive.Channels方法请求的访问对象。

Return

typedesc
Drive.Channels返回一个Drive.Channels类对象。


Method
public Drive.Files files()
获取Drive.Files请求的访问对象。

Return

typedesc
Drive.Files返回一个Drive.Files类对象。


Method
public Drive.Comments comments()
获取Drive.Comments方法请求的访问对象。

Return

typedesc
Drive.Comments返回一个Drive.Comments类对象。


Method
public Drive.Replies replies()
获取Drive.Replies请求的访问对象。

Return

typedesc
Drive.Replies返回一个Drive.Replies类对象。


Method
public final BatchRequest batch()
获取Drive批量接口(该方法是父类方法,可直接调用)。

Return

typedesc
BatchRequest返回批量请求,BatchRequest类对象。


Protected Methods

Method
protected void initialize(AbstractClientRequest<?> httpClientRequest)
通过ClientRequestInitializer初始化AbstractClientRequest。

Parameters

Parameter nameParameter desc
httpClientRequestAbstractClientRequest对象。

Throws

Throw nameThrow desc
java.io.IOException若接口调用异常,会返回IOException。开发者可以通过getMessage方法获取错误描述。