目录

ProductClient

Interface Info

public interface ProductClient

Provides APIs for managing missed orders.

Public Method Summary

Qualifier and Type

Method Name and Description

Task <List<ProductOrderInfo>>

getMissProductOrder(Context context)

Queries the missed orders for the current HUAWEI ID.

Public Methods

[h2]getMissProductOrder

Method

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

Queries the missed orders for the current HUAWEI ID.

Parameters

Name

Description

context

Client context.

Returns

Type

Description

Task <List<ProductOrderInfo>>

Order data.

You need to set two callback listeners in Task returned by the API. In Task, you can obtain success data from OnSuccessListener, and request failure data from OnFailureListener. In OnFailureListener, you need to check whether the exception object is an ApiException instance. If so, use its getStatusCode() method to obtain the result code and then process the exception accordingly.