# Purchase.PurchasesResult

Summary:[Ctors](https://developer.android.com/reference/com/android/billingclient/api/Purchase.PurchasesResult#pubctors)\|[Methods](https://developer.android.com/reference/com/android/billingclient/api/Purchase.PurchasesResult#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/com/android/billingclient/api/Purchase.PurchasesResult#inhmethods)  

# Purchase.PurchasesResult

`
public
static


class
Purchase.PurchasesResult
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|--------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | com.android.billingclient.api.Purchase.PurchasesResult |

<br />

*** ** * ** ***

Result list and response code for[BillingClient.queryPurchases(String)](https://developer.android.com/reference/com/android/billingclient/api/BillingClient#queryPurchases(java.lang.String))method.

## Summary

|                                                                                                                                                                                                                                                                   ### Public constructors                                                                                                                                                                                                                                                                   ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[PurchasesResult](https://developer.android.com/reference/com/android/billingclient/api/Purchase.PurchasesResult#PurchasesResult(com.android.billingclient.api.BillingResult,%20java.util.List<com.android.billingclient.api.Purchase>))`(`[BillingResult](https://developer.android.com/reference/com/android/billingclient/api/BillingResult)` mBillingResult, `[List](https://developer.android.com/reference/java/util/List.html)`<`[Purchase](https://developer.android.com/reference/com/android/billingclient/api/Purchase)`> purchasesList) ` |

|                                                                                                                                                                                                                   ### Public methods                                                                                                                                                                                                                   ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[BillingResult](https://developer.android.com/reference/com/android/billingclient/api/BillingResult)                                                                | ` `[getBillingResult](https://developer.android.com/reference/com/android/billingclient/api/Purchase.PurchasesResult#getBillingResult())`() ` Returns the[BillingResult](https://developer.android.com/reference/com/android/billingclient/api/BillingResult)of the operation. |
| ` `[List](https://developer.android.com/reference/java/util/List.html)`<`[Purchase](https://developer.android.com/reference/com/android/billingclient/api/Purchase)`>` | ` `[getPurchasesList](https://developer.android.com/reference/com/android/billingclient/api/Purchase.PurchasesResult#getPurchasesList())`() ` Returns the list of[Purchase](https://developer.android.com/reference/com/android/billingclient/api/Purchase).                   |
| ` int`                                                                                                                                                                 | ` `[getResponseCode](https://developer.android.com/reference/com/android/billingclient/api/Purchase.PurchasesResult#getResponseCode())`() ` Returns the response code of In-app Billing API calls.                                                                             |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                                | | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                             | ` finalize() `                                                                             | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||

## Public constructors

### PurchasesResult

```
public PurchasesResult (BillingResult mBillingResult, 
                List<Purchase> purchasesList)
```

<br />

<br />

|                Parameters                ||
|------------------|------------------------|
| `mBillingResult` | `BillingResult` <br /> |
| `purchasesList`  | `List` <br />          |

## Public methods

### getBillingResult

```
public BillingResult getBillingResult ()
```

Returns the[BillingResult](https://developer.android.com/reference/com/android/billingclient/api/BillingResult)of the operation.

<br />

|                                                   Returns                                                    ||
|------------------------------------------------------------------------------------------------------|--------|
| [BillingResult](https://developer.android.com/reference/com/android/billingclient/api/BillingResult) | <br /> |

### getPurchasesList

```
public List<Purchase> getPurchasesList ()
```

Returns the list of[Purchase](https://developer.android.com/reference/com/android/billingclient/api/Purchase).

<br />

|                                                                                   Returns                                                                                   ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Purchase](https://developer.android.com/reference/com/android/billingclient/api/Purchase)`>` | <br /> |

### getResponseCode

```
public int getResponseCode ()
```

Returns the response code of In-app Billing API calls.

<br />

|                                                                                          Returns                                                                                          ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The[BillingClient.BillingResponseCode](https://developer.android.com/reference/com/android/billingclient/api/BillingClient.BillingResponseCode)corresponding to the result. <br /> |