ZEPETO.Inventory
13 分
型 説明 inventorylistresponse /#inventorylistresponse inventorylistresponse クラスは、api 呼び出しの結果と、商品インベントリ情報のリストを提供します。 inventoryrecord /#inventoryrecord インベントリ内の商品の情報。 inventoryresponse /#inventoryresponse inventoryresponse クラスは、api 呼び出しの結果と、取得したインベントリ商品の情報を提供します。 inventoryservice /#inventoryservice inventoryservice は、プレイヤーの world 内商品インベントリに関連する操作を管理します。 checkinventoryrequest /#checkinventoryrequest ユーザーのインベントリに特定の商品が存在するかどうかを確認するためのクラス。 checkinventoryresponse /#checkinventoryresponse インベントリ内に商品が存在するかどうかの確認に対するレスポンスを表すクラス。 inventoryerror /#inventoryerror インベントリ関連のリクエストが失敗した理由を示すエラーコード。 inventorylistresponse class · extends productbaseresponse inventorylistresponse クラスは、api 呼び出しの結果と、商品インベントリ情報のリストを提供します。 プロパティ 名前 型 説明 products inventoryrecord\[] /#inventoryrecord 商品インベントリ情報のリスト。 inventoryrecord class インベントリ内の商品の情報。 プロパティ 名前 型 説明 productid string 商品の id。 quantity bigint 商品の数量。 createdat date 商品がインベントリに追加された日時。 updatedat date 商品情報が最後に更新された日時。 inventoryresponse class · extends productbaseresponse inventoryresponse クラスは、api 呼び出しの結果と、取得したインベントリ商品の情報を提供します。 プロパティ 名前 型 説明 product inventoryrecord /#inventoryrecord インベントリ内の商品の情報。 inventoryservice class inventoryservice は、プレイヤーの world 内商品インベントリに関連する操作を管理します。 メソッド getlistasync static getlistasync() → baserequest\<inventorylistresponse> プレイヤーのインベントリ商品情報のリストを非同期で取得するメソッドです。 戻り値 baserequest\<inventorylistresponse> — baserequest オブジェクト。非同期処理が完了すると、 responsedata プロパティから inventorylistresponse オブジェクトにアクセスできます。 getasync static getasync(productid string) → baserequest\<inventoryresponse> 指定された商品 id に基づいて、プレイヤーのインベントリ商品情報を非同期で取得するメソッドです。 パラメーター 型 説明 productid string 取得する商品の id。 戻り値 baserequest\<inventoryresponse> — baserequest オブジェクト。非同期処理が完了すると、 responsedata プロパティから inventoryresponse オブジェクトにアクセスできます。 hasasync static hasasync(productid string) → checkinventoryrequest プレイヤーのインベントリに商品が存在するかどうかを非同期で確認するメソッドです。 パラメーター 型 説明 productid string 確認する商品の id。 戻り値 checkinventoryrequest /#checkinventoryrequest — checkinventoryrequest オブジェクト。非同期処理が完了すると、 responsedata プロパティから checkinventoryresponse オブジェクトにアクセスできます。 checkinventoryrequest class · extends baseapirequest ユーザーのインベントリに特定の商品が存在するかどうかを確認するためのクラス。 プロパティ 名前 型 説明 responsedata checkinventoryresponse /#checkinventoryresponse checkinventoryresponse のレスポンスデータ。 checkinventoryresponse class · extends productbaseresponse インベントリ内に商品が存在するかどうかの確認に対するレスポンスを表すクラス。 プロパティ 名前 型 説明 isexist boolean 特定の商品がユーザーのインベントリに存在するかどうかを示すブール値。 inventoryerror enum インベントリ関連のリクエストが失敗した理由を示すエラーコード。 名前 値 説明 unknown 1 エラー 不明なエラー。 networkerror 0 エラー 接続の切断や不安定な接続など、ネットワークに関連するエラー。