public class Asset
In this section, you can find all the necessary endpoints for creating an asset and partaking in any operation regarding the asset resource.
Modifier and Type | Method and Description |
---|---|
void |
checkAccessForAsset(int id,
java.lang.String entryId,
InPlayerCallback<com.sdk.inplayer.model.assets.InPlayerItemAccess,com.sdk.inplayer.model.error.InPlayerException> callback)
Checks and retrieves the customer’s entitlement to an asset.
|
void |
checkAccessForAsset(int id,
InPlayerCallback<com.sdk.inplayer.model.assets.InPlayerItemAccess,com.sdk.inplayer.model.error.InPlayerException> callback)
Checks and retrieves the customer’s entitlement to an asset.
|
void |
getAsset(int id,
InPlayerCallback<com.sdk.inplayer.model.assets.InPlayerItem,com.sdk.inplayer.model.error.InPlayerException> callback)
Returns details about the item type, title, state, when and how it was purchased etc.
|
void |
getAssetAccessFees(int id,
InPlayerCallback<java.util.List,com.sdk.inplayer.model.error.InPlayerException> callback)
Deprecated.
|
void |
getAssetAccessFeesV2(int id,
java.lang.Integer voucherId,
InPlayerCallback<java.util.List,com.sdk.inplayer.model.error.InPlayerException> callback)
Lists the various fees for a specific asset v2.
|
void |
getAssetAccessFeesV2(int id,
InPlayerCallback<java.util.List,com.sdk.inplayer.model.error.InPlayerException> callback)
Lists the various fees for a specific asset v2.
|
void |
getExternalAsset(java.lang.String assetType,
java.lang.String externalId,
java.lang.String merchantUUID,
InPlayerCallback<com.sdk.inplayer.model.assets.InPlayerItem,com.sdk.inplayer.model.error.InPlayerException> callback)
Get an external assets info
|
public void getAsset(int id, @NotNull InPlayerCallback<com.sdk.inplayer.model.assets.InPlayerItem,com.sdk.inplayer.model.error.InPlayerException> callback)
Returns details about the item type, title, state, when and how it was purchased etc.
id
- Int Item IDcallback
- InPlayerCallbackpublic void getExternalAsset(@NotNull java.lang.String assetType, @NotNull java.lang.String externalId, @NotNull java.lang.String merchantUUID, @NotNull InPlayerCallback<com.sdk.inplayer.model.assets.InPlayerItem,com.sdk.inplayer.model.error.InPlayerException> callback)
Get an external assets info
assetType
- String The type ID of the assetexternalId
- String The ID of the external assetmerchantUUID
- String The merchant uuidcallback
- InPlayerCallback@Deprecated public void getAssetAccessFees(int id, @NotNull InPlayerCallback<java.util.List,com.sdk.inplayer.model.error.InPlayerException> callback)
Lists the various fees for a specific asset.
id
- Int Item IDcallback
- InPlayerCallbackpublic void getAssetAccessFeesV2(int id, @Nullable java.lang.Integer voucherId, @NotNull InPlayerCallback<java.util.List,com.sdk.inplayer.model.error.InPlayerException> callback)
Lists the various fees for a specific asset v2.
id
- Int Item IDvoucherId
- Int Vouchercallback
- InPlayerCallbackpublic void getAssetAccessFeesV2(int id, @NotNull InPlayerCallback<java.util.List,com.sdk.inplayer.model.error.InPlayerException> callback)
Lists the various fees for a specific asset v2.
id
- Int Item IDcallback
- InPlayerCallbackpublic void checkAccessForAsset(int id, @Nullable java.lang.String entryId, @NotNull InPlayerCallback<com.sdk.inplayer.model.assets.InPlayerItemAccess,com.sdk.inplayer.model.error.InPlayerException> callback)
Checks and retrieves the customer’s entitlement to an asset.
id
- Int Item IDentryId
- String Optional parameter specify the external video idcallback
- InPlayerCallbackpublic void checkAccessForAsset(int id, @NotNull InPlayerCallback<com.sdk.inplayer.model.assets.InPlayerItemAccess,com.sdk.inplayer.model.error.InPlayerException> callback)
Checks and retrieves the customer’s entitlement to an asset.
id
- Int Item IDcallback
- InPlayerCallback