目录

The ProductClient class defines the method for querying the data of missed orders.

Public Method Summary

Return

Description

abstract Task <List<ProductOrderInfo>>


getMissProductOrder(Context context)

Queries the missed orders for the current HUAWEI ID.

Public Methods

public static Task <List<ProductOrderInfo>> getMissProductOrder(Context context)

Queries the missed orders for the current HUAWEI ID.

Input Parameters

Return

Description

context

Client context.

Return Values

Return

Description

Task <List<ProductOrderInfo>>

Order data.

You need to set two callback listeners in the Task returned by the API. OnSuccessListener obtains the data returned in the success scenario, and OnFailureListener obtains the information about the request failure. In OnFailureListener, you need to check whether the exception object called back in this mode is an ApiException instance object, and resolve the failure according to getStatusCode() contained in the ApiException instance.