Public Member Functions | |
| DEFINE_ONLINE_DELEGATE_FOUR_PARAM (OnConsumeEntitlementComplete, bool, const FUniqueNetId &, const TSharedPtr< FOnlineEntitlement > &, const FOnlineError &) | |
| DEFINE_ONLINE_DELEGATE_FOUR_PARAM (OnGetCurrentUserEntitlementHistoryComplete, int32, bool, const TArray< FAccelByteModelsBaseUserEntitlementHistory > &, const FOnlineError &) | |
| DEFINE_ONLINE_PLAYER_DELEGATE_FOUR_PARAM (MAX_LOCAL_PLAYERS, OnQueryPlatformSubscriptionComplete, bool, const FUniqueNetId &, const TArray< FAccelByteModelsThirdPartySubscriptionTransactionInfo > &, const FOnlineError &) | |
| DEFINE_ONLINE_PLAYER_DELEGATE_THREE_PARAM (MAX_LOCAL_PLAYERS, OnSyncMetaQuestIAPComplete, const FUniqueNetId &, const TArray< TSharedRef< FPurchaseReceipt > > &, const FOnlineError &) | |
| DEFINE_ONLINE_PLAYER_DELEGATE_TWO_PARAM (MAX_LOCAL_PLAYERS, OnEntitlementUpdatedNotification, const FUniqueNetId &, const FAccelByteModelsEntitlementUpdatedNotification &) | |
| DEFINE_ONLINE_DELEGATE_FOUR_PARAM (OnGetUserEntitlementHistoryComplete, int32, bool, const TArray< FAccelByteModelsUserEntitlementHistory > &, const FOnlineError &) | |
| virtual TSharedPtr< FOnlineEntitlement > | GetEntitlement (const FUniqueNetId &UserId, const FUniqueEntitlementId &EntitlementId) override |
| virtual TSharedPtr< FOnlineEntitlement > | GetItemEntitlement (const FUniqueNetId &UserId, const FString &ItemId) override |
| virtual void | GetAllEntitlements (const FUniqueNetId &UserId, const FString &Namespace, TArray< TSharedRef< FOnlineEntitlement > > &OutUserEntitlements) override |
| virtual bool | QueryEntitlements (const FUniqueNetId &UserId, const FString &Namespace, const FPagedQuery &Page=FPagedQuery{}) override |
| void | ConsumeEntitlement (const FUniqueNetId &UserId, const FUniqueEntitlementId &EntitlementId, int32 UseCount, TArray< FString > Options={}, const FString &RequestId={}) |
| void | SyncPlatformPurchase (int32 LocalUserNum, FAccelByteModelsEntitlementSyncBase EntitlementSyncBase, const FOnRequestCompleted &CompletionDelegate=FOnRequestCompleted()) |
| void | SyncPlatformPurchase (int32 LocalUserNum, const TSharedRef< FPurchaseReceipt > &Receipt, const FOnRequestCompleted &CompletionDelegate=FOnRequestCompleted()) |
| void | SyncPlatformPurchase (const FUniqueNetId &InLocalUserId, const FOnRequestCompleted &CompletionDelegate) |
| Synchronize MetaQuest Consumable Entitlement/IAP. | |
| void | SyncPlatformPurchase (int32 LocalUserNum, const FAccelByteModelsPlatformSyncMobileGoogle &Request, const FOnRequestCompleted &CompletionDelegate=FOnRequestCompleted()) |
| void | SyncDLC (const FUniqueNetId &InLocalUserId, const FOnRequestCompleted &CompletionDelegate) |
| void | SyncMetaSubscription (const FUniqueNetId &InLocalUserId, const FAccelByteModelsSyncOculusSubscriptionRequest &SyncRequest, const FOnSyncMetaSubscriptionCompleteDelegate &CompletionDelegate) |
| void | GetCurrentUserEntitlementHistory (const FUniqueNetId &UserId, const FUniqueEntitlementId &EntitlementId) |
| void | GetCurrentUserEntitlementHistory (const FUniqueNetId &UserId, const EAccelByteEntitlementClass &EntitlementClass=EAccelByteEntitlementClass::NONE, FDateTime StartDate=0, FDateTime EndDate=0, const FPagedQuery &Page=FPagedQuery{}) |
| void | GetCurrentUserEntitlementHistory (const FUniqueNetId &UserId, bool bForceUpdate=true, const FUniqueEntitlementId &EntitlementId=TEXT(""), const EAccelByteEntitlementClass &EntitlementClass=EAccelByteEntitlementClass::NONE, FDateTime StartDate=0, FDateTime EndDate=0, const FPagedQuery &Page=FPagedQuery{}) |
| void | GetCurrentUserEntitlementHistory (int32 LocalUserNum, const FUniqueEntitlementId &EntitlementId) |
| void | GetCurrentUserEntitlementHistory (int32 LocalUserNum, const EAccelByteEntitlementClass &EntitlementClass=EAccelByteEntitlementClass::NONE, FDateTime StartDate=0, FDateTime EndDate=0, const FPagedQuery &Page=FPagedQuery{}) |
| void | GetCurrentUserEntitlementHistory (int32 LocalUserNum, bool bForceUpdate=true, const FUniqueEntitlementId &EntitlementId=TEXT(""), const EAccelByteEntitlementClass &EntitlementClass=EAccelByteEntitlementClass::NONE, FDateTime StartDate=0, FDateTime EndDate=0, const FPagedQuery &Page=FPagedQuery{}) |
| void | GetUserEntitlementHistory (int32 LocalUserNum, const FUniqueEntitlementId &EntitlementId, bool bForceUpdate=true) |
| void | GetUserEntitlementHistory (const FUniqueNetId &UserId, const FUniqueEntitlementId &EntitlementId, bool bForceUpdate=true) |
| virtual bool | GetCachedCurrentUserEntitlementHistory (const FUniqueNetIdAccelByteUserRef &InUserId, const FUniqueEntitlementId &InEntitlementId, TArray< FAccelByteModelsBaseUserEntitlementHistory > &OutEntitlementHistory) |
| virtual bool | DeleteCachedCurrentUserEntitlementHistory (const FUniqueNetIdAccelByteUserRef &InUserId, const FUniqueEntitlementId &InEntitlementId) |
| virtual bool | GetCachedUserEntitlementHistory (const FUniqueNetIdAccelByteUserRef &InUserId, const FUniqueEntitlementId &InEntitlementId, TArray< FAccelByteModelsUserEntitlementHistory > &OutEntitlementHistory) |
| virtual bool | DeleteCachedUserEntitlementHistory (const FUniqueNetIdAccelByteUserRef &InUserId, const FUniqueEntitlementId &InEntitlementId) |
| void | QueryPlatformSubscription (const int32 &InLocalUserNum, const FOnlineQuerySubscriptionRequestAccelByte &QueryRequest) |
| bool | SyncSteamAbnormalIAPTransaction (FUniqueNetId const &LocalUserId, FOnSyncSteamAbnormalIAPTransactionComplete const &CompletionDelegate) |
| Attempt to sync abnormal Steam transactions. Only to be used when Steam sync mode is set to TRANSACTION in the admin portal. | |
Static Public Member Functions | |
| static bool | GetFromSubsystem (const IOnlineSubsystem *Subsystem, TSharedPtr< FOnlineEntitlementsAccelByte, ESPMode::ThreadSafe > &OutInterfaceInstance) |
| static bool | GetFromWorld (const UWorld *World, TSharedPtr< FOnlineEntitlementsAccelByte, ESPMode::ThreadSafe > &OutInterfaceInstance) |
Protected Member Functions | |
| void | OnEntitlementUpdatedNotificationReceived (const FAccelByteModelsEntitlementUpdatedNotification &Response, int32 InLocalUserNum) |
Protected Attributes | |
| FOnlineSubsystemAccelByteWPtr | AccelByteSubsystem |
| TMap< int32, FDelegateHandle > | OnEntitlementUpdatedNotificationReceivedDelegateHandleMap |
| void FOnlineEntitlementsAccelByte::ConsumeEntitlement | ( | const FUniqueNetId & | UserId, |
| const FUniqueEntitlementId & | EntitlementId, | ||
| int32 | UseCount, | ||
| TArray< FString > | Options = {}, | ||
| const FString & | RequestId = {} ) |
Consume a user entitlement. Trigger FOnConsumeEntitlementComplete on complete
| UserId | Id of the entilement owner |
| EntitlementId | The id of the entitlement. |
| UseCount | Number of consumed entitlement. |
| Options | Options of consumed entitlements. |
| RequestId | Request id(Optional), A unique tracking ID provided by the developer, can just left it empty if they don't want to track When a request id is submitted, it will return original successful response |
|
virtual |
This function removes a cache of data that was generated by the 'GetCurrentUserEntitlementHistory' function
| InUserId | The entitlement owner user id. |
| InEntitlementId | The id of the entitlement. |
|
virtual |
This function removes a cache of data that was generated by the 'GetUserEntitlementHistory' function
| InUserId | The entitlement owner user id. |
| InEntitlementId | The id of the entitlement. |
|
virtual |
This function returns a cache of data that was generated by the 'GetCurrentUserEntitlementHistory' function
| InUserId | The entitlement owner user id. |
| InEntitlementId | The id of the entitlement. |
| OutEntitlementHistory | List of User Inventory Items found. It also returns a value that associated with the entitlement. |
|
virtual |
This function returns a cache of data that was generated by the 'GetUserEntitlementHistory' function
| InUserId | The entitlement owner user id. |
| InEntitlementId | The id of the entitlement. |
| OutEntitlementHistory | List of user entilement history found. It also returns a value that associated with the entitlement. |
| void FOnlineEntitlementsAccelByte::GetCurrentUserEntitlementHistory | ( | const FUniqueNetId & | UserId, |
| bool | bForceUpdate = true, | ||
| const FUniqueEntitlementId & | EntitlementId = TEXT(""), | ||
| const EAccelByteEntitlementClass & | EntitlementClass = EAccelByteEntitlementClass::NONE, | ||
| FDateTime | StartDate = 0, | ||
| FDateTime | EndDate = 0, | ||
| const FPagedQuery & | Page = FPagedQuery{} ) |
Get user entitlement history. Trigger FOnGetUserEntitlementHistoryComplete on complete Note: This endpoint supports only for player/user.
| UserId | User id of the entitlement owner. |
| bForceUpdate | (Optional) Set it to 'True' to get the history from backend. |
| EntitlementId | (Optional) If bForceUpdate = false, set entitlement id to get history from cache. |
| EntitlementClass | (Optional) The entitlement class or type to get. |
| StartDate | (Optional) Defines the preferred starting date or time to query user entitlement history. |
| EndDate | (Optional) Defines the preferred ending date or time to query user entitlement history. |
| Page | (Optional) Number of content per page to retrieve and page to retrieve. Default value start (offset) : 0, count (limit) : 100. |
| void FOnlineEntitlementsAccelByte::GetCurrentUserEntitlementHistory | ( | const FUniqueNetId & | UserId, |
| const EAccelByteEntitlementClass & | EntitlementClass = EAccelByteEntitlementClass::NONE, | ||
| FDateTime | StartDate = 0, | ||
| FDateTime | EndDate = 0, | ||
| const FPagedQuery & | Page = FPagedQuery{} ) |
Get user entitlement history. Trigger FOnGetUserEntitlementHistoryComplete on complete Note: This endpoint supports only for player/user.
| UserId | User id of the entitlement owner. |
| EntitlementClass | (Optional) The entitlement class or type to get. |
| StartDate | (Optional) Defines the preferred starting date or time to query user entitlement history. |
| EndDate | (Optional) Defines the preferred ending date or time to query user entitlement history. |
| Page | (Optional) Number of content per page to retrieve and page to retrieve. Default value start (offset) : 0, count (limit) : 100. |
| void FOnlineEntitlementsAccelByte::GetCurrentUserEntitlementHistory | ( | const FUniqueNetId & | UserId, |
| const FUniqueEntitlementId & | EntitlementId ) |
Get user entitlement history inside the cache. Trigger FOnGetUserEntitlementHistoryComplete on complete Note: This endpoint supports only for player/user.
| UserId | User id of the entitlement owner. |
| EntitlementId | The id of the entitlement. |
| void FOnlineEntitlementsAccelByte::GetCurrentUserEntitlementHistory | ( | int32 | LocalUserNum, |
| bool | bForceUpdate = true, | ||
| const FUniqueEntitlementId & | EntitlementId = TEXT(""), | ||
| const EAccelByteEntitlementClass & | EntitlementClass = EAccelByteEntitlementClass::NONE, | ||
| FDateTime | StartDate = 0, | ||
| FDateTime | EndDate = 0, | ||
| const FPagedQuery & | Page = FPagedQuery{} ) |
Get user entitlement history. Trigger FOnGetUserEntitlementHistoryComplete on complete Note: This endpoint supports only for player/user.
| LocalUserNum | Index of user as the owner of the entitlement. |
| bForceUpdate | (Optional) Set it to 'True' to get the history from backend. |
| EntitlementId | (Optional) If bForceUpdate = false, set entitlement id to get history from cache. |
| EntitlementClass | (Optional) The entitlement class or type to get. |
| StartDate | (Optional) Defines the preferred starting date or time to query user entitlement history. |
| EndDate | (Optional) Defines the preferred ending date or time to query user entitlement history. |
| Page | (Optional) Number of content per page to retrieve and page to retrieve. Default value start (offset) : 0, count (limit) : 100. |
| void FOnlineEntitlementsAccelByte::GetCurrentUserEntitlementHistory | ( | int32 | LocalUserNum, |
| const EAccelByteEntitlementClass & | EntitlementClass = EAccelByteEntitlementClass::NONE, | ||
| FDateTime | StartDate = 0, | ||
| FDateTime | EndDate = 0, | ||
| const FPagedQuery & | Page = FPagedQuery{} ) |
Get user entitlement history. Trigger FOnGetUserEntitlementHistoryComplete on complete Note: This endpoint supports only for player/user.
| LocalUserNum | Index of user as the owner of the entitlement. |
| EntitlementClass | (Optional) The entitlement class or type to get. |
| StartDate | (Optional) Defines the preferred starting date or time to query user entitlement history. |
| EndDate | (Optional) Defines the preferred ending date or time to query user entitlement history. |
| Page | (Optional) Number of content per page to retrieve and page to retrieve. Default value start (offset) : 0, count (limit) : 100. |
| void FOnlineEntitlementsAccelByte::GetCurrentUserEntitlementHistory | ( | int32 | LocalUserNum, |
| const FUniqueEntitlementId & | EntitlementId ) |
Get user entitlement history inside the cache. Trigger FOnGetUserEntitlementHistoryComplete on complete Note: This endpoint supports only for player/user.
| LocalUserNum | Index of user as the owner of the entitlement. |
| EntitlementId | The id of the entitlement. |
|
static |
Convenience method to get an instance of this interface from the subsystem passed in.
| Subsystem | Subsystem instance that we wish to get this interface from |
| OutInterfaceInstance | Instance of the interface that we got from the subsystem, or nullptr if not found |
|
static |
Convenience method to get an instance of this interface from the subsystem associated with the world passed in.
| World | World instance that we wish to get the interface from |
| OutInterfaceInstance | Instance of the interface that we got from the subsystem, or nullptr if not found |
| void FOnlineEntitlementsAccelByte::GetUserEntitlementHistory | ( | const FUniqueNetId & | UserId, |
| const FUniqueEntitlementId & | EntitlementId, | ||
| bool | bForceUpdate = true ) |
Get user entitlement history. Trigger FOnGetUserEntitlementHistoryComplete on complete Note: This endpoint supports only for dedicated server.
| UserId | Id of the entilement owner |
| EntitlementId | The id of the entitlement. |
| bForceUpdate | (Optional) Set it to 'True' to get the history from backend. |
| void FOnlineEntitlementsAccelByte::GetUserEntitlementHistory | ( | int32 | LocalUserNum, |
| const FUniqueEntitlementId & | EntitlementId, | ||
| bool | bForceUpdate = true ) |
Get user entitlement history. Trigger FOnGetUserEntitlementHistoryComplete on complete Note: This endpoint supports only for dedicated server.
| LocalUserNum | Index of user as the owner of the entitlement. |
| EntitlementId | The id of the entitlement. |
| bForceUpdate | (Optional) Set it to 'True' to get the history from backend. |
| void FOnlineEntitlementsAccelByte::SyncPlatformPurchase | ( | const FUniqueNetId & | InLocalUserId, |
| const FOnRequestCompleted & | CompletionDelegate ) |
Synchronize MetaQuest Consumable Entitlement/IAP.
| InLocalUserId | User ID of the entitlement owner. |
| CompletionDelegate | Delegate will be triggered after the request completed |
| bool FOnlineEntitlementsAccelByte::SyncSteamAbnormalIAPTransaction | ( | FUniqueNetId const & | LocalUserId, |
| FOnSyncSteamAbnormalIAPTransactionComplete const & | CompletionDelegate ) |
Attempt to sync abnormal Steam transactions. Only to be used when Steam sync mode is set to TRANSACTION in the admin portal.
| LocalUserId | ID of the local user that the transaction sync is performed for |
| CompletionDelegate | Delegate triggered when the sync operation has completed |
|
protected |
Instance of the subsystem that created this interface