# IapResult.Builder

### IapResult.Builder <a href="#id-cn-iapresult.builder-iapresult.builder" id="id-cn-iapresult.builder-iapresult.builder"></a>

`public final class IapResult.Builder extends Object java.lang.Object ↳ com.gaa.sdk.iap.IapResult.Builder` 是易於創建IapResult實例（instance）的builder。

### Public methods <a href="#id-cn-iapresult.builder-publicmethods" id="id-cn-iapresult.builder-publicmethods"></a>

***

#### setResponseCode <a href="#id-cn-iapresult.builder-setresponsecode" id="id-cn-iapresult.builder-setresponsecode"></a>

`IapResult.Builder setResponseCode(int responseCode)`

| **Parameters:**   |                            |
| ----------------- | -------------------------- |
| responseCode      | 是In-app Purchase API的回應代碼。 |
| **Returns:**      |                            |
| IapResult.Builder |                            |

#### setMessage <a href="#id-cn-iapresult.builder-setmessage" id="id-cn-iapresult.builder-setmessage"></a>

`IapResult.Builder setMessage(String message)`

| **Parameters:**   |                            |
| ----------------- | -------------------------- |
| message           | 是In-app Purchase API的回應資訊。 |
| **Returns:**      |                            |
| IapResult.Builder |                            |

#### build <a href="#id-cn-iapresult.builder-build" id="id-cn-iapresult.builder-build"></a>

`IapResult build()`生成IapResult的實例（instance）。

| **Returns:** |   |
| ------------ | - |
| IapResult    |   |

\
