JD2022-TU1/main/extern/UbiServices/custom/client-sdk/private/ubiservices/facade.swig

2842 lines
No EOL
123 KiB
Text

%module cpp // TODO: RENAME INTO "UbiServicesAPI"?
#if !defined(SWIG_SERVER) && (defined(SWIG4IOS) || defined(SWIG4ANDROID) ||defined(SWIG4WIN) || defined(SWIG4OSX))
#define US_ENABLE_MOBILE_FEATURES
#endif
%{
#include "ubiservices/core/configs/config.h"
#include "ubiservices/core/types/types.h"
#include "ubiservices/core/memory/containerAllocator.h"
#include "ubiservices/core/types/containers.h"
#include "ubiservices/core/types/string.h"
#include "ubiservices/core/types/guid.h"
#include "ubiservices/core/memory/smartPtr.h"
#include "ubiservices/core/firstPartyInit/firstPartyInit.h"
#include "ubiservices/core/types/typesId/applicationId.h"
#include "ubiservices/core/types/typesId/connectionId.h"
#include "ubiservices/services/entity/typesId/entityId.h"
#include "ubiservices/core/types/typesId/groupId.h"
#include "ubiservices/core/types/typesId/poolId.h"
#include "ubiservices/core/types/typesId/profileId.h"
#include "ubiservices/core/types/typesId/roamingProfileId.h"
#if defined(US_ENABLE_MOBILE_FEATURES)
#include "ubiservices/core/types/typesId/mobileUserId.h"
#endif
#include "ubiservices/core/types/typesId/sessionId.h"
#include "ubiservices/core/types/typesId/spaceId.h"
#include "ubiservices/core/types/typesId/storeAttributeId.h"
#include "ubiservices/core/types/typesId/storeItemInstanceId.h"
#include "ubiservices/core/types/typesId/storeListOfAttributesId.h"
#include "ubiservices/core/types/typesId/storeRuleId.h"
#include "ubiservices/core/types/typesId/subjectId.h"
#include "ubiservices/core/types/typesId/userId.h"
#include "ubiservices/core/types/time.h"
#include "ubiservices/core/types/dateTime.h"
#include "ubiservices/core/types/dateTimeHelper.h"
#include "ubiservices/core/types/optional.h"
#include "ubiservices/core/JSON/json.h"
#if !defined(US_SDK_SERVER)
#include "ubiservices/core/configs/profilePolicy.h"
#endif
#include "ubiservices/core/configs/onlineAccessContext.h"
#include "ubiservices/core/configs/environment.h"
#include "ubiservices/core/configs/titleConfig.h"
#include "ubiservices/core/configs/gameConfigConsole.h"
#if defined(US_ENABLE_MOBILE_FEATURES)
#include "ubiservices/core/configs/mobile/mobileProfilePolicy.h"
#endif
#include "ubiservices/core/configs/urlHelper.h"
#if !defined(US_SDK_SERVER)
#include "ubiservices/core/configs/gameConfigEvent.h"
#endif
#include "ubiservices/core/configs/gameConfig.h"
#if defined(SWIG4PSAPI)
#include "ubiservices/core/configs/psApi/firstPartyOnlineAPIConfig.h"
#endif
#if defined(US_MODULE_STORE)
#if defined(SWIG4WIN)
#include "ubiservices/services/primaryStore/primaryStoreItemTag.h"
#include "ubiservices/services/primaryStore/primaryStoreInventoryItemActivation.h"
#include "ubiservices/services/primaryStore/primaryStoreInventoryItemOwnership.h"
#endif // defined(SWIG4WIN)
#include "ubiservices/services/primaryStore/primaryStoreItemType.h"
#include "ubiservices/services/primaryStore/primaryStoreInventoryItem.h"
#endif // US_MODULE_STORE
#if !defined(US_SDK_SERVER)
#include "ubiservices/services/populations/dynamicPopulationCustomDataMultiValues.h"
#include "ubiservices/services/populations/dynamicPopulationCustomDataRange.h"
#include "ubiservices/services/populations/dynamicPopulationCustomDataSingleValue.h"
#include "ubiservices/services/populations/dynamicPopulationCustomParams.h"
#include "ubiservices/services/populations/relatedPopulationInfo.h"
#endif
#if defined(US_MODULE_CLUB)
#include "ubiservices/services/club/typesId/clubChallengeId.h"
#endif
#if defined(US_MODULE_STORE)
#include "ubiservices/services/secondaryStore/typesId/storeItemId.h"
#include "ubiservices/services/secondaryStore/typesId/storeOfferId.h"
#include "ubiservices/services/secondaryStore/typesId/storeTransactionId.h"
#endif
#if defined(US_MODULE_STORE) || defined(US_MODULE_SSI)
#include "ubiservices/services/secondaryStore/typesId/storeInventoryId.h"
#endif
#include "ubiservices/core/configs/threadingConfig.h"
#include "ubiservices/core/localization/countryName.h"
#include "ubiservices/core/profile/profileType.h"
#include "ubiservices/services/http/httpProxyConfig.h"
#include "ubiservices/services/http/httpConfig.h"
#include "ubiservices/services/http/httpHeader.h"
#include "ubiservices/services/http/httpMethod.h"
#include "ubiservices/services/http/httpMultipartData.h"
#include "ubiservices/services/http/httpMultipartStreamData.h"
#include "ubiservices/services/http/request/httpRequest.h"
#include "ubiservices/services/http/request/httpDelete.h"
#include "ubiservices/services/http/request/httpGet.h"
#include "ubiservices/services/http/request/httpHead.h"
#include "ubiservices/services/http/request/httpPost.h"
#include "ubiservices/services/http/request/httpPut.h"
#include "ubiservices/services/http/request/httpPatch.h"
#include "ubiservices/services/http/request/httpRetryConfig.h"
#include "ubiservices/services/http/httpStatistics.h"
#include "ubiservices/services/http/httpResponse.h"
#include "ubiservices/services/http/httpRequestSignType.h"
#include "ubiservices/services/http/httpClient.h"
#include "ubiservices/core/log/log.h"
#include "ubiservices/core/log/swig/unityLoggingHelper.h"
#include "ubiservices/core/log/eventLog.h"
#include "ubiservices/core/log/logDevice.h"
#include "ubiservices/core/log/outputFormat.h"
#include "ubiservices/core/log/devices/logDeviceConsole.h"
#include "ubiservices/core/log/devices/logDeviceDebugOutput.h"
#include "ubiservices/core/log/devices/logDeviceEal.h"
#include "ubiservices/core/configs/systemConfig.h"
#include "ubiservices/ubiservices.h"
#include "ubiservices/core/log/eventLogConstants.h"
#include "ubiservices/core/errors/errorDetails.h"
#include "ubiservices/core/tasks/asyncResultBase.h"
#include "ubiservices/core/tasks/asyncResult.h"
#include "ubiservices/services/authentication/credentialsType.h"
#include "ubiservices/services/authentication/credentialsExternalToken.h"
#if !defined(US_SDK_SERVER)
#include "ubiservices/services/authentication/playerCredentialsBase.h"
#include "ubiservices/services/authentication/playerCredentials.h"
#include "ubiservices/services/event/eventsParams.h"
#include "ubiservices/services/event/signalAttributes.h"
#include "ubiservices/services/event/sendSignalResult.h"
#endif
#if defined(US_MODULE_STORE)
#include "ubiservices/services/primaryStore/win32/primaryStoreParams.h"
#endif
#include "ubiservices/core/helpers/resultRange.h"
#include "ubiservices/core/helpers/assertionHelper.h"
#if defined(US_MODULE_APPLICATION)
#include "ubiservices/services/application/applicationInfo.h"
#include "ubiservices/services/application/applicationClient.h"
#endif //US_MODULE_APPLICATION
#include "ubiservices/services/authentication/sessionInfo.h"
#include "ubiservices/services/authentication/authenticationNotification.h"
#include "ubiservices/services/authentication/authenticationClient.h"
#if defined(US_MODULE_MODERATION)
#include "ubiservices/services/moderation/moderationSeverityTypeConstants.h"
#include "ubiservices/services/moderation/moderationInfo.h"
#include "ubiservices/services/moderation/moderationClient.h"
#endif //US_MODULE_MODERATION
#if defined(US_MODULE_CHALLENGE)
#include "ubiservices/services/challenge/challengeNotification.h"
#include "ubiservices/services/challenge/notificationChallengeProgressionBanked.h"
#include "ubiservices/services/challenge/notificationChallengeProgressionCompleted.h"
#endif //US_MODULE_CHALLENGE
#if defined(US_MODULE_NEWS)
#include "ubiservices/services/news/newsLink.h"
#include "ubiservices/services/news/newsInfo.h"
#include "ubiservices/services/news/newsClient.h"
#endif
#if defined(US_MODULE_UPLAY)
#include "ubiservices/services/uplay/uplayClient.h"
#endif
#if defined(US_MODULE_VOICECHAT)
#include "ubiservices/services/voicechat/voicechatClient.h"
#include "ubiservices/services/voicechat/voicechatInfo.h"
#include "ubiservices/services/voicechat/voicechatConfig.h"
#include "ubiservices/services/voicechat/voicechatActionType.h"
#include "ubiservices/services/voicechat/voicechatProvider.h"
#endif // US_MODULE_VOICECHAT
#include "ubiservices/services/event/types/types.h"
#include "ubiservices/services/event/types/eventInfoBase.h"
#if !defined(US_SDK_SERVER)
#include "ubiservices/localizationHelper.h"
#include "ubiservices/services/event/types/eventInfoContextStart.h"
#include "ubiservices/services/event/types/eventInfoContextStop.h"
#include "ubiservices/services/event/types/eventInfoCustom.h"
#endif
#include "ubiservices/services/event/types/eventInfoService.h"
#if !defined(US_SDK_SERVER)
#include "ubiservices/services/event/types/eventInfoGameAdStart.h"
#include "ubiservices/services/event/types/eventInfoGameAdStop.h"
#include "ubiservices/services/event/types/eventInfoGameConsentPopUp.h"
#include "ubiservices/services/event/types/eventInfoGameConsentPopUpDisplay.h"
#include "ubiservices/services/event/subtitlesActivation.h" // required before eventInfoGameLocalization.h
#include "ubiservices/services/event/types/eventInfoGameLocalization.h"
#if defined(US_ENABLE_MOBILE_FEATURES)
#include "ubiservices/services/event/types/eventInfoGameMobileCrossPromotion.h"
#endif //defined(US_ENABLE_MOBILE_FEATURES)
#include "ubiservices/services/event/types/eventInfoPlayerAchievement.h"
#include "ubiservices/services/event/types/eventInfoPlayerContentDownload.h"
#if defined(US_ENABLE_MOBILE_FEATURES)
#include "ubiservices/services/event/types/eventInfoGameMobileCustomerSupport.h"
#include "ubiservices/services/event/types/eventInfoPlayerMobileIAP.h"
#include "ubiservices/services/event/types/eventInfoPlayerMobileIAPSecondaryStore.h"
#include "ubiservices/services/event/types/eventInfoPlayerMobileMarketing.h"
#endif //defined(US_ENABLE_MOBILE_FEATURES)
#include "ubiservices/services/event/types/eventInfoPlayerPosition.h"
#include "ubiservices/services/event/types/eventInfoPlayerProgression.h"
#include "ubiservices/services/event/types/eventInfoPlayerChatService.h"
#endif
#include "ubiservices/services/event/pushEventResult.h"
#include "ubiservices/core/notifications/notificationSourceStatus.h"
#include "ubiservices/core/notifications/notificationSource.h"
#include "ubiservices/core/errors/errorCodes.h"
#include "ubiservices/services/event/eventNotification.h"
#include "ubiservices/services/event/eventClient.h"
#if defined(US_MODULE_CHALLENGE)
#include "ubiservices/services/challenge/challengeClient.h"
#include "ubiservices/services/challenge/challengeInfo.h"
#include "ubiservices/services/challenge/challengeProgression.h"
#include "ubiservices/services/challenge/challengeOperationType.h"
#endif // US_MODULE_CHALLENGE
#if defined(US_MODULE_MATCHMAKING)
#include "ubiservices/services/matchmaking/matchmakingAuthenticatedSlotStatus.h"
#include "ubiservices/services/matchmaking/matchmakingFailReasonContext.h"
#include "ubiservices/services/matchmaking/matchmakingGameModeStatus.h"
#include "ubiservices/services/matchmaking/matchmakingMatchStatus.h"
#include "ubiservices/services/matchmaking/matchmakingReservedSlotStatus.h"
#include "ubiservices/services/matchmaking/matchmakingTypes.h"
#include "ubiservices/services/matchmaking/matchmakingClientStateInfo.h"
#include "ubiservices/services/matchmaking/matchmakingMatchStateInfo.h"
#include "ubiservices/services/matchmaking/matchmakingClient.h"
#endif // US_MODULE_MATCHMAKING
#if defined(US_MODULE_BATTLEPASS)
#include "ubiservices/services/battlepass/typesId/seasonId.h"
#include "ubiservices/services/battlepass/battlepass.h"
#include "ubiservices/services/battlepass/battlepassSeason.h"
#include "ubiservices/services/battlepass/battlepassSeasonProgression.h"
#include "ubiservices/services/battlepass/battlepassInfo.h"
// seasonRewardRarity is needed by seasonReward
#include "ubiservices/services/battlepass/seasonRewardRarity.h"
#include "ubiservices/services/battlepass/seasonReward.h"
#include "ubiservices/services/battlepass/seasonTier.h"
#include "ubiservices/services/battlepass/seasonImages.h"
#include "ubiservices/services/battlepass/seasonInfo.h"
#include "ubiservices/services/battlepass/battlepassClient.h"
#include "ubiservices/services/battlepass/notificationTiersBankedEx.h"
#include "ubiservices/services/battlepass/notificationTiersBanked.h"
#include "ubiservices/services/battlepass/battlepassNotification.h"
#endif
#if defined(US_MODULE_BLOCKLIST)
#include "ubiservices/services/blocklist/blocklistProfile.h"
#include "ubiservices/services/blocklist/blocklistInfo.h"
#include "ubiservices/services/blocklist/blocklistClient.h"
#include "ubiservices/services/blocklist/blocklistNotification.h"
#include "ubiservices/services/blocklist/notificationBlocklistAdd.h"
#include "ubiservices/services/blocklist/notificationBlocklistAdded.h"
#include "ubiservices/services/blocklist/notificationBlocklistRemove.h"
#include "ubiservices/services/blocklist/notificationBlocklistRemoved.h"
#endif
#if defined(US_MODULE_CLUB)
#include "ubiservices/services/club/actionTypeConstants.h"
#include "ubiservices/services/club/clubNotification.h"
#include "ubiservices/services/club/notificationActionCompleted.h"
#include "ubiservices/services/club/notificationBadgeAcquired.h"
#include "ubiservices/services/club/notificationChallengeBanked.h"
#include "ubiservices/services/club/notificationChallengeParticipationStarted.h"
#include "ubiservices/services/club/notificationChallengeThresholdReached.h"
#include "ubiservices/services/club/notificationRewardPurchased.h"
#include "ubiservices/services/club/consumableInfo.h"
#include "ubiservices/services/club/actionsGroup.h"
#include "ubiservices/services/club/actionRewardTypes.h"
#include "ubiservices/services/club/xpInfo.h"
#include "ubiservices/services/club/unitInfo.h"
#include "ubiservices/services/club/conditionInfo.h"
#include "ubiservices/services/club/badgeInfo.h"
#include "ubiservices/services/club/challengeStatusProfile.h"
#include "ubiservices/services/club/challengeDefinitionProfile.h"
#include "ubiservices/services/club/challengePoolProfile.h"
#include "ubiservices/services/club/challengeStatusCommunity.h"
#include "ubiservices/services/club/challengeDefinitionCommunity.h"
#include "ubiservices/services/club/challengePoolCommunity.h"
#include "ubiservices/services/club/rewardInfo.h"
#include "ubiservices/services/club/clubChallengeTypes.h"
#if defined(US_TARGET_PS4) || defined(US_TARGET_XONE) || defined(US_TARGET_SWITCH) //TODO: Add extra platforms?
#include "ubiservices/services/club/clubDisplayContext.h"
#include "ubiservices/services/club/clubDisplayDebugInfo.h"
#include "ubiservices/services/club/clubDisplayMode.h"
#endif // #if defined(US_TARGET_PS4) || defined(US_TARGET_XONE) || defined(US_TARGET_SWITCH)
#include "ubiservices/services/club/clubClient.h"
#endif // US_MODULE_CLUB
#if defined(US_MODULE_FRIEND)
#include "ubiservices/services/friend/friendPlatform.h"
#include "ubiservices/services/friend/friendInfoClub.h"
#include "ubiservices/services/friend/friendInfoConsole.h"
#include "ubiservices/services/friend/friendInfo.h"
#include "ubiservices/services/friend/friendClient.h"
#endif //US_MODULE_FRIEND
#if defined(US_MODULE_GAMESPLAYED)
#include "ubiservices/services/gamesPlayed/gamePlayed.h"
#include "ubiservices/services/gamesPlayed/gamePlayedEx.h"
#include "ubiservices/services/gamesPlayed/gamesPlayedFilter.h"
#include "ubiservices/services/gamesPlayed/gamesPlayedClient.h"
#endif //US_MODULE_GAMESPLAYED
#if defined(US_MODULE_PERSONA)
#include "ubiservices/services/persona/personaInfo.h"
#include "ubiservices/services/persona/personaClient.h"
#endif
#if defined(US_MODULE_PLAYER_ONLINE_STATUS)
#include "ubiservices/services/playerOnlineStatus/playerOnlineStatus.h"
#include "ubiservices/services/playerOnlineStatus/playerOnlineStatusConnectionInfo.h"
#include "ubiservices/services/playerOnlineStatus/playerOnlineStatusInfo.h"
#include "ubiservices/services/playerOnlineStatus/playerOnlineStatusClient.h"
#endif
#if defined(US_MODULE_PLAYERREPORTS)
#include "ubiservices/services/playerReports/playerReportsCategory.h"
#include "ubiservices/services/playerReports/playerReportCreation.h"
#include "ubiservices/services/playerReports/playerReportInfo.h"
#include "ubiservices/services/playerReports/playerReportsClient.h"
#endif
#if defined(US_MODULE_PROFILE)
#if (defined(SWIG4WIN) || defined(SWIG4IOS) || defined(SWIG4TVOS) || defined(SWIG4ANDROID) || defined(SWIG4OSX)) && !defined(US_SDK_SERVER)
#include "ubiservices/services/profile/roamingProfileInfo.h"
#endif
#include "ubiservices/services/profile/profileInfo.h"
#include "ubiservices/services/profile/profileInfoExternal.h"
#include "ubiservices/services/profile/applicationUsedInfo.h"
#include "ubiservices/services/profile/profileClient.h"
#endif
#if defined(US_ENABLE_MOBILE_FEATURES)
#include "ubiservices/core/helpers/mobileHelper/mobileUserInfo.h"
#include "ubiservices/core/helpers/mobileHelper/mobileUsersStorageHelper.h"
#endif
#if defined(US_MODULE_UGC)
#include "ubiservices/services/userGeneratedContents/userGeneratedContentsClient.h"
#endif
#if defined(US_MODULE_STATS)
#include "ubiservices/services/stats/types.h"
#include "ubiservices/services/stats/statProfileFields.h"
#include "ubiservices/services/stats/statsInfoProfile.h"
#include "ubiservices/services/stats/statCommunityFields.h"
#include "ubiservices/services/stats/statsCommunity.h"
#include "ubiservices/services/stats/statsProfiles.h"
#include "ubiservices/services/stats/statCardCommunityFields.h"
#include "ubiservices/services/stats/statCardsCommunity.h"
#include "ubiservices/services/stats/statCardProfileFields.h"
#include "ubiservices/services/stats/statCardsProfiles.h"
#include "ubiservices/services/stats/statsClient.h"
#endif // US_MODULE_STATS
#if defined(US_MODULE_USER)
#include "ubiservices/services/user/userInfoError.h"
#include "ubiservices/services/user/legalOptins.h"
#include "ubiservices/services/user/userInfoCreation.h"
#include "ubiservices/services/user/userInfo.h"
#include "ubiservices/services/user/userLocalization.h"
#include "ubiservices/services/user/userClient.h"
#endif
#if defined(US_MODULE_CHALLENGE)
#include "ubiservices/services/challenge/typesId/challengeId.h"
#endif
#if defined(US_MODULE_MATCHMAKING)
#include "ubiservices/services/matchmaking/typesId/matchId.h"
#include "ubiservices/services/matchmaking/typesId/reservedSlotId.h"
#include "ubiservices/services/matchmaking/typesId/teamId.h"
#include "ubiservices/services/matchmaking/typesId/transactionId.h"
#endif
#if !defined(US_SDK_SERVER)
#include "ubiservices/services/populations/populationInfo.h"
#include "ubiservices/services/populations/populationClient.h"
#endif
#include "ubiservices/services/remoteLog/remoteLog.h"
#include "ubiservices/services/remoteLog/remoteLogClient.h"
#if defined(US_MODULE_LEADERBOARD)
#include "ubiservices/services/leaderboard/leaderboardInfo.h"
#include "ubiservices/services/leaderboard/leaderboardPrediction.h"
#include "ubiservices/services/leaderboard/leaderboardClient.h"
#endif // defined(US_MODULE_LEADERBOARD)
#if defined(US_MODULE_LOCALIZATION)
#include "ubiservices/services/localization/localizationAllMetadata.h"
#include "ubiservices/services/localization/localizationStringInfo.h"
#include "ubiservices/services/localization/localizationInfo.h"
#include "ubiservices/services/localization/localizationClient.h"
#endif //US_MODULE_LOCALIZATION
#include "ubiservices/core/tasks/asyncResultBatch.h"
#if !defined(US_SDK_SERVER)
#include "ubiservices/services/notification/connectionInfo.h"
#include "ubiservices/services/notification/connectionInfoOwn.h"
#include "ubiservices/services/notification/notificationCustom.h"
#include "ubiservices/services/notification/notificationUbiServices.h"
#include "ubiservices/services/notification/notificationOutgoing.h"
#include "ubiservices/services/notification/notificationClient.h"
#endif
#include "ubiservices/services/parameters/featureSwitchId.h"
#include "ubiservices/services/parameters/parametersNotification.h"
#include "ubiservices/services/parameters/parametersGroupInfo.h"
#include "ubiservices/services/parameters/parametersClient.h"
#include "ubiservices/services/parameters/parametersNotification.h"
#if defined(US_MODULE_STORE)
#include "ubiservices/services/secondaryStore/inventoryUpdatePrimaryStore.h"
#include "ubiservices/services/primaryStore/primaryStoreItemAvailability.h"
#include "ubiservices/services/primaryStore/primaryStoreItem.h"
#include "ubiservices/services/primaryStore/primaryStoreClient.h"
#endif //US_MODULE_STORE
#if defined(US_MODULE_ENTITY)
#include "ubiservices/services/entity/extendedStorageProvider.h"
#include "ubiservices/services/entity/entityProfile.h"
#include "ubiservices/services/entity/entitySpace.h"
#endif //US_MODULE_ENTITY
#include "ubiservices/services/http/httpStreamNotification.h"
#include "ubiservices/services/http/httpBuffer.h"
#include "ubiservices/services/http/httpStreamContext.h"
#include "ubiservices/services/http/request/httpStreamGet.h"
#include "ubiservices/services/http/request/httpStreamPut.h"
#include "ubiservices/services/http/request/httpStreamPatch.h"
#include "ubiservices/services/http/request/httpStreamPost.h"
#if defined(US_MODULE_ENTITY)
#include "ubiservices/services/entity/entityStreamContext.h"
#include "ubiservices/services/entity/entityCreation.h"
#include "ubiservices/services/entity/entityClient.h"
#endif //US_MODULE_ENTITY
#if defined(US_MODULE_RECOMMENDATIONS)
#include "ubiservices/services/recommendations/recommendation.h"
#include "ubiservices/services/recommendations/recommendationsClient.h"
#endif //US_MODULE_RECOMMENDATIONS
#if defined(US_MODULE_STORE)
#include "ubiservices/services/secondaryStoreInventoryRules/secondaryStoreInventoryRulesExecution.h"
#endif
#if defined(US_MODULE_STORE)
#include "ubiservices/services/secondaryStore/inventoryTransactionItem.h"
#include "ubiservices/services/secondaryStore/inventoryTransactionOffer.h"
#include "ubiservices/services/secondaryStore/inventoryTransactionAdditionalDetails.h"
#include "ubiservices/services/secondaryStore/inventoryTransaction.h"
#include "ubiservices/services/secondaryStore/searchFilterStoreItem.h"
#include "ubiservices/services/secondaryStore/storeItemsMapping.h"
#include "ubiservices/services/secondaryStore/offerPossibleItem.h"
#include "ubiservices/services/secondaryStore/offerDynamicItemsGroup.h"
#include "ubiservices/services/secondaryStore/offerElementReplacement.h"
#include "ubiservices/services/secondaryStore/offerElement.h"
#include "ubiservices/services/secondaryStore/secondaryStoreAsset.h"
#include "ubiservices/services/secondaryStore/secondaryStoreLocalization.h"
#include "ubiservices/services/secondaryStore/offerSpace.h"
#include "ubiservices/services/secondaryStore/offerReplacementTransaction.h"
#include "ubiservices/services/secondaryStore/storeItem.h"
#include "ubiservices/services/secondaryStore/transactionErrorInfo.h"
#include "ubiservices/services/secondaryStore/transactionInfo.h"
#include "ubiservices/services/secondaryStore/expirationDetail.h"
#include "ubiservices/services/secondaryStore/inventoryElement.h"
#include "ubiservices/services/secondaryStore/compressedDataAll.h"
#include "ubiservices/services/secondaryStore/secondaryStoreNotification.h"
#include "ubiservices/services/secondaryStore/secondaryStoreClient.h"
#endif //US_MODULE_STORE
#if defined(US_MODULE_SSI)
#include "ubiservices/services/secondaryStoreInstantiation/storeAttribute.h"
#include "ubiservices/services/secondaryStoreInstantiation/storeAttributeTypeConstants.h"
#include "ubiservices/services/secondaryStoreInstantiation/storeAttributeSpace.h"
#include "ubiservices/services/secondaryStoreInstantiation/storeItemInstance.h"
#include "ubiservices/services/secondaryStoreInstantiation/storeItemInstanceTransaction.h"
#include "ubiservices/services/secondaryStoreInstantiation/storeListOfAttributes.h"
#include "ubiservices/services/secondaryStoreInstantiation/storeRule.h"
#include "ubiservices/services/secondaryStoreInstantiation/storeInstancesTransaction.h"
#include "ubiservices/services/secondaryStoreInstantiation/secondaryStoreInstantiationNotification.h"
#include "ubiservices/services/secondaryStoreInstantiation/secondaryStoreInstantiationClient.h"
#endif
#include "ubiservices/facade.h"
#include "ubiservices/serverTimeHelper.h"
#include "ubiservices/core/helpers/platformHelper/platformHelper.h"
#include "ubiservices/core/helpers/platformHelper/platformState.h"
#include "ubiservices/loggingHelper.h"
#if !defined(US_SDK_SERVER)
#include "ubiservices/stateNotification.h"
#endif
#include <map>
#include <string>
#include <vector>
#if !defined(US_TARGET_PS4) && !defined(US_TARGET_SWITCH) && !defined(US_TARGET_STADIA)
#pragma warning(disable:4100) // 'self' : unreferenced formal parameter
#pragma warning(disable:4530) // C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
#endif
// Needed for passing the log's delegate callback from c# to c++
%}
#if defined(SWIG4XONE) || defined(SWIG4PS4) || defined(SWIG4SWITCH)
#define SWIG4CONSOLE
#endif
#if defined(US_MODULE_STORE) && (defined(SWIG4PS4) || defined(SWIG4XONE) || defined(SWIG4SWITCH) || defined(SWIG4STADIA) || defined(SWIG4WIN)
#define US_PRIMARY_STORE_ENABLED
#endif
#if defined(US_MODULE_STORE) && (defined(SWIG4ANDROID) || defined(SWIG4IOS))
#define US_PRIMARY_STORE_MOBILE_ENABLED
#endif
#if defined(US_MODULE_STORE)
#define US_SECONDARY_STORE_ENABLED
#endif
#define final
#if defined(SWIG_SERVER)
#define US_NS_SWIG ubiservices_server
#else
#define US_NS_SWIG ubiservices
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////
// Standard Headers from SWIG
//
// http://www.swig.org/Doc1.3/Library.html#Library_stl_cpp_library
// C++ class C++ Library file SWIG Interface library file
// std::deque deque std_deque.i
// std::list list std_list.i
// std::map map std_map.i
// std::pair utility std_pair.i
// std::set set std_set.i
// std::string string std_string.i
// std::vector vector std_vector.i
////////////////////////////////////////////////////////////////////////////////////////////////////
%include <windows.i>
%include "typemaps.i"
%include <std_common.i>
%include <std_string.i>
%include <std_wstring.i>
%include <stdint.i>
%include <std_map.i> // TEST
%include <std_pair.i> // For Uplay Client
%include <std_vector.i> // TEST
%include <cpointer.i> //TEST
//%include <std_char_traits.i> // INVALID
//%include <std_basic_string.i> // INVALID
%include "std/std_char_traits.i"
%include "std/std_basic_string.i"
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
// Warning 503: Can't wrap 'operator <<' unless renamed to a valid identifier.
%warnfilter(503) AsyncResultBase;
%warnfilter(503) EventInfoBase;
#if defined(US_MODULE_GAMESPLAYED)
%warnfilter(503) GamePlayed;
%warnfilter(503) GamePlayedEx;
#endif
#if defined(US_MODULE_LOCALIZATION)
%warnfilter(503) LocalizationAllMetadata;
%warnfilter(503) LocalizationInfo;
%warnfilter(503) LocalizationStringInfo;
#endif
%warnfilter(503) HttpResponse;
%warnfilter(503) HttpRequest;
#if !defined(SWIG_SERVER)
%warnfilter(503) PlayerCredentials;
#endif
#if defined(US_PRIMARY_STORE_ENABLED)
%warnfilter(503) PrimaryStoreInventoryItem;
#endif
%warnfilter(503) SessionInfo;
%warnfilter(503) Time;
%ignore US_NS_SWIG::BasicStringStream; // Useless in the public API
%ignore US_NS_SWIG::List; // Useless in the public API
%ignore US_NS_SWIG::MultiMap; // Useless in the public API
%ignore US_NS_SWIG::Queue; // Useless in the public API
%ignore US_NS_SWIG::Set; // Useless in the public API
%ignore US_NS_SWIG::SIZE_T_MAX; // Defined already by Unix Systems
#if !defined(SWIG_SERVER)
%ignore US_NS_SWIG::ConnectionInfo::operator==;
%ignore US_NS_SWIG::ConnectionInfo::operator<;
#endif
#if defined(US_MODULE_CLUB)
%ignore US_NS_SWIG::ConsumableInfo::operator=;
#endif
#if defined(US_PRIMARY_STORE_ENABLED)
// This methods are should not be available on Unity for cross compatibility
//TODO: check if it's needed in Unity PS4
#if !defined(SWIG4CONSOLE)
%ignore US_NS_SWIG::PrimaryStoreClient::requestItemsCatalog;
%ignore US_NS_SWIG::PrimaryStoreClient::requestItemsInventory;
#endif
%ignore US_NS_SWIG::PrimaryStoreInventoryItem::operator==;
%ignore US_NS_SWIG::PrimaryStoreInventoryItem::operator<;
%ignore US_NS_SWIG::PrimaryStoreItem::operator==;
%ignore US_NS_SWIG::PrimaryStoreItem::operator<;
#endif
#if defined(US_MODULE_ENTITY)
%ignore US_NS_SWIG::EntityProfile::operator=;
%ignore US_NS_SWIG::EntitySpace::operator=;
%ignore US_NS_SWIG::EntityProfilePrivate::extractData;
%ignore US_NS_SWIG::EntitySpacePrivate::extractData;
#endif
#if defined(US_MODULE_FRIEND)
%ignore US_NS_SWIG::FriendInfo::operator==;
%ignore US_NS_SWIG::FriendInfoClub::operator==;
%ignore US_NS_SWIG::FriendInfoConsole::operator==;
#endif
#if defined(US_MODULE_NEWS)
%ignore US_NS_SWIG::NewsLink::parseJson; // Useless on the public API
#endif
#if defined(US_MODULE_PROFILE)
%ignore US_NS_SWIG::ProfileInfo::operator=;
%ignore US_NS_SWIG::ProfileInfo::operator==;
#endif
#if !defined(US_MODULE_USER)
%ignore US_NS_SWIG::UserClient::triggerPasswordReset; // TODO? (Android VS Windows)
#endif
#if !defined(US_MODULE_CHALLENGE)
%ignore US_NS_SWIG::Facade::getChallengeClient();
#endif
%ignore US_NS_SWIG::Facade::getChallengeClient() const; // ignored all the time to avoid a swig warning about overloaded method.
#if !defined(US_MODULE_VOICECHAT)
%ignore US_NS_SWIG::Facade::getVoicechatClient();
#endif
#if !defined(US_MODULE_MATCHMAKING)
%ignore US_NS_SWIG::Facade::getMatchmakingClient();
#endif
%ignore US_NS_SWIG::Facade::getMatchmakingClient() const; // ignored all the time to avoid a swig warning about overloaded method.
#if !defined(SWIG_SERVER)
#if defined(US_MODULE_CLUB)
// This methods are should not be available on Unity for cross compatibility
//TODO: check if it's needed in Unity PS4
#if !defined(SWIG4CONSOLE)
%ignore US_NS_SWIG::ClubClient::closeBlockedClubApplication;
#endif
#if !defined(SWIG4CONSOLE) && !defined(SWIG4STADIA)
%ignore US_NS_SWIG::ClubClient::launchClubApplication;
#endif // !defined(SWIG4CONSOLE) || defined(SWIG4STADIA)
#endif // US_MODULE_CLUB
#if defined(SWIG4CONSOLE)
%ignore US_NS_SWIG::PlatformHelper::createUplayAccountForDevelopment;
#endif
#endif // SWIG_SERVER
%ignore US_NS_SWIG::HttpHeader::begin() const;
%ignore US_NS_SWIG::HttpHeader::end() const;
%ignore US_NS_SWIG::HttpResponse::HttpResponse(const uint32 statusCode, const HttpHeader& responseHeaders, const SmartPtr<HttpEntity>& entity, const uint32 bodySize);
%ignore US_NS_SWIG::HttpStatistics::HttpStatistics(const TrafficStatistics& trafficStats);
%ignore US_NS_SWIG::HttpClient::getHttpSslPoolsUsage() const;
%ignore US_NS_SWIG::CertificatesInfo;
%ignore US_NS_SWIG::Facade::getAuthenticationClient() const;
%ignore US_NS_SWIG::Facade::getEventClient() const;
%ignore US_NS_SWIG::Facade::getParametersClient() const;
#if !defined(SWIG_SERVER)
%ignore US_NS_SWIG::Facade::getWebsocketClient(); // Skipped
#endif
#if !defined(US_MODULE_APPLICATION)
%ignore US_NS_SWIG::Facade::getApplicationClient() const;
%ignore US_NS_SWIG::Facade::getApplicationClient();
#else
%ignore US_NS_SWIG::Facade::getApplicationClient() const; // to avoid a warning about overloaded method (const and no const)
#endif
#if !defined(US_MODULE_BATTLEPASS)
%ignore US_NS_SWIG::Facade::getBattlepassClient() const;
%ignore US_NS_SWIG::Facade::getBattlepassClient();
#else
%ignore US_NS_SWIG::Facade::getBattlepassClient() const; // to avoid a warning about overloaded method (const and no const)
#endif
#if !defined(US_MODULE_BLOCKLIST)
%ignore US_NS_SWIG::Facade::getBlocklistClient() const;
%ignore US_NS_SWIG::Facade::getBlocklistClient();
#else
%ignore US_NS_SWIG::Facade::getBlocklistClient() const; // to avoid a warning about overloaded method (const and no const)
#endif
#if !defined(US_MODULE_CLUB)
%ignore US_NS_SWIG::Facade::getClubClient() const;
%ignore US_NS_SWIG::Facade::getClubClient();
#endif
#if !defined(US_MODULE_ENTITY)
%ignore US_NS_SWIG::Facade::getEntityClient() const;
%ignore US_NS_SWIG::Facade::getEntityClient();
#endif
#if !defined(US_MODULE_FRIEND)
%ignore US_NS_SWIG::Facade::getFriendClient() const;
%ignore US_NS_SWIG::Facade::getFriendClient();
#endif
#if !defined(US_MODULE_GAMESPLAYED)
%ignore US_NS_SWIG::Facade::getGamesPlayedClient() const;
%ignore US_NS_SWIG::Facade::getGamesPlayedClient();
#else
%ignore US_NS_SWIG::Facade::getGamesPlayedClient() const; // to avoid a warning about overloaded method (const and no const)
#endif
#if !defined(US_MODULE_LEADERBOARD)
%ignore US_NS_SWIG::Facade::getLeaderboardClient() const;
%ignore US_NS_SWIG::Facade::getLeaderboardClient();
#endif //!defined(US_MODULE_LEADERBOARD)
#if !defined(US_MODULE_LOCALIZATION)
%ignore US_NS_SWIG::Facade::getLocalizationClient();
#endif //!defined(US_MODULE_LOCALIZATION)
#if !defined(US_MODULE_MODERATION)
%ignore US_NS_SWIG::Facade::getModerationClient() const;
%ignore US_NS_SWIG::Facade::getModerationClient();
%ignore US_NS_SWIG::ModerationClient::requestModeration;
#else
%ignore US_NS_SWIG::Facade::getModerationClient() const; // to avoid a warning about overloaded method (const and no const)
#endif //US_MODULE_MODERATION
#if !defined(US_MODULE_PERSONA)
%ignore US_NS_SWIG::Facade::getPersonaClient() const;
%ignore US_NS_SWIG::Facade::getPersonaClient();
#else
%ignore US_NS_SWIG::Facade::getPersonaClient() const; // to avoid a warning about overloaded method (const and no const)
#endif
#if defined(US_MODULE_PLAYERREPORTS)
%ignore US_NS_SWIG::Facade::getPlayerReportsClient() const;
%ignore US_NS_SWIG::Facade::getPlayerReportsClient();
#else
%ignore US_NS_SWIG::Facade::getPlayerReportsClient() const; // to avoid a warning about overloaded method (const and no const)
#endif
#if !defined(US_MODULE_PROFILE)
%ignore US_NS_SWIG::Facade::getProfileClient() const;
%ignore US_NS_SWIG::Facade::getProfileClient();
%ignore US_NS_SWIG::ProfileClient::requestUserInfo;
%ignore US_NS_SWIG::ProfileClient::requestUserLocalization;
%ignore US_NS_SWIG::ProfileClient::requestUserLegalOptinsStatus;
%ignore US_NS_SWIG::ProfileClient::requestProfilesFromNamesOnPlatform;
%ignore US_NS_SWIG::ProfileClient::requestProfiles;
%ignore US_NS_SWIG::ProfileClient::requestUplayProfiles;
%ignore US_NS_SWIG::ProfileClient::requestProfileInfoExternal;
%ignore US_NS_SWIG::ProfileClient::requestApplicationsUsedForAllApplications;
%ignore US_NS_SWIG::ProfileClient::requestApplicationsUsed;
%ignore US_NS_SWIG::ProfileClient::requestRoamingProfiles;
#endif
#if !defined(US_MODULE_STATS)
%ignore US_NS_SWIG::Facade::getStatsClient() const;
%ignore US_NS_SWIG::Facade::getStatsClient();
#endif
#if !defined(US_PRIMARY_STORE_ENABLED) && !defined(US_PRIMARY_STORE_MOBILE_ENABLED)
%ignore US_NS_SWIG::Facade::getPrimaryStoreClient() const;
%ignore US_NS_SWIG::Facade::getPrimaryStoreClient();
#endif
#if !defined(US_MODULE_RECOMMENDATIONS)
%ignore US_NS_SWIG::Facade::getRecommendationsClient() const;
%ignore US_NS_SWIG::Facade::getRecommendationsClient();
#else
%ignore US_NS_SWIG::Facade::getRecommendationsClient() const; // to avoid a warning about overloaded method (const and no const)
#endif
#if !defined(US_SECONDARY_STORE_ENABLED)
%ignore US_NS_SWIG::Facade::getSecondaryStoreClient() const;
%ignore US_NS_SWIG::Facade::getSecondaryStoreClient();
#endif
#if !defined(US_MODULE_UGC)
%ignore US_NS_SWIG::Facade::getUserGeneratedContentsClient() const;
%ignore US_NS_SWIG::Facade::getUserGeneratedContentsClient();
#else
%ignore US_NS_SWIG::Facade::getUserGeneratedContentsClient() const; // to avoid a warning about overloaded method (const and no const)
#endif
#if !defined(US_MODULE_USER)
%ignore US_NS_SWIG::Facade::getUserClient() const;
%ignore US_NS_SWIG::Facade::getUserClient();
#endif
#if !defined(US_MODULE_SSI)
%ignore US_NS_SWIG::Facade::getSecondaryStoreInstantiationClient() const;
%ignore US_NS_SWIG::Facade::getSecondaryStoreInstantiationClient();
#endif
%ignore US_NS_SWIG::Date::operator==;
%ignore US_NS_SWIG::Time::operator==;
%ignore US_NS_SWIG::Time::operator!=;
%ignore US_NS_SWIG::Time::operator<;
%ignore US_NS_SWIG::Time::operator<=;
%ignore US_NS_SWIG::Time::operator>;
%ignore US_NS_SWIG::Time::operator>=;
%ignore US_NS_SWIG::DateTime::DateTime(const tm& source);
%ignore US_NS_SWIG::DateTime::operator=;
%ignore US_NS_SWIG::DateTime::operator==;
%ignore US_NS_SWIG::DateTime::operator!=;
%ignore US_NS_SWIG::DateTime::operator<;
%ignore US_NS_SWIG::DateTime::operator>;
%ignore US_NS_SWIG::DateTime::operator<=;
%ignore US_NS_SWIG::DateTime::operator>=;
%ignore US_NS_SWIG::Json::operator=;
%ignore US_NS_SWIG::Json::operator[](const String& keyName) const;
%ignore US_NS_SWIG::Json::operator[](const char* keyName) const;
%ignore US_NS_SWIG::Guid::operator const String&() const;
%ignore US_NS_SWIG::Guid::operator==;
%ignore US_NS_SWIG::Guid::operator!=;
%ignore US_NS_SWIG::Guid::operator<;
%ignore US_NS_SWIG::HttpHeader::operator[](const String& keyName);
%ignore US_NS_SWIG::HttpHeader::operator[](const String& keyName) const;
%ignore US_NS_SWIG::HttpHeader::operator==;
%ignore US_NS_SWIG::HttpResponse::operator=;
%ignore US_NS_SWIG::HttpRequest::operator=;
%ignore US_NS_SWIG::HttpStatistics::operator=;
%ignore US_NS_SWIG::String::operator=;
%ignore US_NS_SWIG::String::operator==;
%ignore US_NS_SWIG::String::operator!=;
%ignore US_NS_SWIG::String::operator+=;
%ignore US_NS_SWIG::String::operator<;
%ignore US_NS_SWIG::String::operator<=;
%ignore US_NS_SWIG::String::operator>;
%ignore US_NS_SWIG::String::operator>=;
%ignore US_NS_SWIG::String::formatText;
%ignore US_NS_SWIG::String::splitText;
%ignore US_NS_SWIG::String::splitTextContent;
%ignore US_NS_SWIG::operator+;
%ignore US_NS_SWIG::operator==;
%ignore US_NS_SWIG::operator!=;
%ignore US_NS_SWIG::operator<<;
%ignore US_NS_SWIG::CaseInsensitiveStringComp;
%ignore US_NS_SWIG::USOptional;
// Note: %ignore statement must be first (before %template instruction)
%define TEMPLATE_OPTIONAL(suffix, T)
%ignore US_NS_SWIG::Optional<T>::m_magicNumber;
%ignore US_NS_SWIG::Optional<T>::operator=;
%ignore US_NS_SWIG::Optional<T>::operator==;
%ignore US_NS_SWIG::Optional<T>::operator!=;
%ignore US_NS_SWIG::Optional<T>::value();
%template(Optional_ ## suffix) US_NS_SWIG::Optional<T>;
%enddef
////////////////////////////////////////////////////////////////////////////////////////////////////
// Copy constructors
////////////////////////////////////////////////////////////////////////////////////////////////////
#if defined(US_MODULE_LOCALIZATION)
%copyctor LocalizationAllMetadata;
%copyctor LocalizationStringInfo;
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////
// UbiServices Containers
////////////////////////////////////////////////////////////////////////////////////////////////////
#define _DEBUG // TODO
#if defined(SWIG4WIN)
#define _WIN32
#define US_TARGET_WINDOWS
#elif defined(SWIG4ANDROID)
#define ANDROID
#define US_TARGET_ANDROID
#elif defined(SWIG4IOS) || defined(SWIG4TVOS)
#define __APPLE__
#define US_TARGET_IOS
#elif defined(SWIG4OSX)
#define _OSX
#define US_TARGET_OSX
#elif defined(SWIG4LINUX)
#define __unix__
#elif defined(SWIG4PS4)
#define __ORBIS__
#define US_TARGET_PS4
#elif defined(SWIG4XONE)
#define _XBOX_ONE
#define US_TARGET_XONE
#elif defined(SWIG4SWITCH)
#define NN_NINTENDO_SDK
#define US_TARGET_SWITCH
#elif defined(SWIG4STADIA)
#define __ggp__
#define US_TARGET_STADIA
#endif
#define US_LOG_ENABLED //needed for the c# for logginHelper
#define US_PRAGMA_PUSH_WARNING_IGNORE(...)
#define US_PRAGMA_POP_WARNING
%typemap(cscode) US_NS_SWIG::String %{
public static implicit operator String(string s)
{
return new String(s);
}
public static implicit operator string(UbiServices.String s)
{
return s.getUtf8();
}
public override bool Equals(object obj)
{
UbiServices.String other = obj as UbiServices.String;
if(other == null)
{
return false;
}
return getUtf8() == other.getUtf8();
}
public override int GetHashCode()
{
return getUtf8().GetHashCode();
}
public static bool operator ==(UbiServices.String left, UbiServices.String right)
{
if(System.Object.ReferenceEquals(left, right))
{
return true;
}
if(((object)left == null) || ((object)right == null))
{
return false;
}
return left.Equals(right);
}
public static bool operator!=(UbiServices.String left, UbiServices.String right)
{
return !(left == right);
}
%}
//Adding Implicit String and Comperator operator
%define TYPEMAP_OPERATOR(classT)
%typemap(cscode) US_NS_SWIG:: ## classT %{
public static implicit operator string(## classT s)
{
return s.getTextUtf8();
}
public override bool Equals(object obj)
{
classT other = obj as classT ##;
if(other == null)
{
return false;
}
return getTextUtf8() == other.getTextUtf8();
}
public override int GetHashCode()
{
return getTextUtf8().GetHashCode();
}
public static bool operator ==(classT left, classT right)
{
if(System.Object.ReferenceEquals(left, right))
{
return true;
}
if(((object)left == null) || ((object)right == null))
{
return false;
}
return left.Equals(right);
}
public static bool operator!=(classT left, classT right)
{
return !(left == right);
}
%}
%enddef
TYPEMAP_OPERATOR(ApplicationId);
#if defined(US_MODULE_ENTITY)
TYPEMAP_OPERATOR(EntityId);
#endif
#if defined(US_MODULE_CHALLENGE)
TYPEMAP_OPERATOR(ChallengeId);
#endif
#if !defined(SWIG_SERVER)
TYPEMAP_OPERATOR(ClubChallengeId);
TYPEMAP_OPERATOR(ConnectionId);
TYPEMAP_OPERATOR(PoolId);
#endif
TYPEMAP_OPERATOR(GroupId);
TYPEMAP_OPERATOR(ProfileId);
TYPEMAP_OPERATOR(SessionId);
TYPEMAP_OPERATOR(SpaceId);
#if defined(US_MODULE_STORE)
TYPEMAP_OPERATOR(StoreItemId);
TYPEMAP_OPERATOR(StoreOfferId);
TYPEMAP_OPERATOR(StoreTransactionId);
#endif
#if !defined(SWIG_SERVER)
TYPEMAP_OPERATOR(StoreItemInstanceId);
TYPEMAP_OPERATOR(SubjectId);
#endif
TYPEMAP_OPERATOR(UserId);
#if !defined(SWIG_SERVER)
TYPEMAP_OPERATOR(ProgressionId);
#endif
namespace US_NS_SWIG
{
class RootObject
{
};
class RefCountedObject
{
};
}
// Swigging modules
#if !defined(SWIG_SERVER)
%include "ubiservices/core/configs/_generated/config_module.h"
#endif
%include "ubiservices/core/configs/config.h"
%include "ubiservices/core/types/types.h"
%warnfilter(325) rebind;
%include "ubiservices/core/memory/containerAllocator.h"
%include "ubiservices/core/types/containers.h"
%define TEMPLATE_CONTAINER(suffix, T)
%ignore US_NS_SWIG::ContainerAllocator<T>::operator==;
%ignore US_NS_SWIG::ContainerAllocator<T>::operator!=;
%template(ContainerAllocator_ ## suffix) US_NS_SWIG::ContainerAllocator<T >;
%enddef
%define TEMPLATE_STRING(suffix, T)
TEMPLATE_CONTAINER(suffix, T);
%template(std_char_traits_ ## suffix) std::char_traits<T>;
%template(std_BasicString_ ## suffix) std::basic_string<T, std::char_traits<T>, US_NS_SWIG::ContainerAllocator<T> >;
%template(BasicString_ ## suffix) US_NS_SWIG::BasicString<T>;
%enddef
TEMPLATE_STRING(char, char);
TEMPLATE_STRING(wchar, US_NS_SWIG::wchar);
%define TEMPLATE_VECTOR(suffix, T)
%template(std_vector_ ## suffix) std::vector<T>;
%template(Vector_ ## suffix) US_NS_SWIG::Vector<T>;
%enddef
%define TEMPLATE_VECTOR_FULL(suffix, T)
TEMPLATE_CONTAINER(suffix, T);
TEMPLATE_VECTOR(suffix, T);
%enddef
%define TEMPLATE_VECTOR_ENUM(suffix, T)
%template(std_vector_ ## suffix) std::vector<T>;
%enddef
// = EXPERIMENTAL ==============================================================
//%template(std_vector_test) std::vector<char>; // TEST
//%template(std_vector_char) std::vector<char, US_NS_SWIG::ContainerAllocator<char> >;
//%template(std_vector_NewsLink) std::vector<US_NS_SWIG::NewsLink, US_NS_SWIG::ContainerAllocator<US_NS_SWIG::NewsLink> >;
// =============================================================================
TEMPLATE_VECTOR(char, char);
TEMPLATE_VECTOR(float, float);
TEMPLATE_VECTOR(uint8, US_NS_SWIG::uint8);
TEMPLATE_VECTOR_FULL(String, US_NS_SWIG::String);
TEMPLATE_VECTOR_FULL(Json, US_NS_SWIG::Json);
#if !defined(SWIG_SERVER)
TEMPLATE_VECTOR_FULL(EventTypeInfo, US_NS_SWIG::EventTypeInfo);
#endif
#if defined(US_MODULE_NEWS)
TEMPLATE_VECTOR_FULL(NewsLink, US_NS_SWIG::NewsLink);
TEMPLATE_VECTOR_FULL(NewsInfo, US_NS_SWIG::NewsInfo);
#endif
%define TEMPLATE_PAIR(suffixFull, K, T)
%template(std_pair_ ## suffixFull) std::pair<K, T>;
%enddef
%define TEMPLATE_VECTOR_PAIR(suffixFull, K, T)
%template(std_vector_pair ## suffix) std::vector<std::pair<K, T> >;
%template(Vector_Pair_ ## suffixFull) US_NS_SWIG::Vector<std::pair<K, T> >;
%enddef
#if defined(US_MODULE_UPLAY)
TEMPLATE_PAIR(String_String, US_NS_SWIG::String, US_NS_SWIG::String);
TEMPLATE_VECTOR_PAIR(String_String, US_NS_SWIG::String, US_NS_SWIG::String);
#endif
TEMPLATE_VECTOR_FULL(HttpMultipartData, US_NS_SWIG::HttpMultipartData);
TEMPLATE_VECTOR_FULL(HttpMultipartStreamData, US_NS_SWIG::HttpMultipartStreamData);
#if defined(US_MODULE_CLUB)
TEMPLATE_VECTOR_FULL(XpInfo, US_NS_SWIG::XpInfo);
TEMPLATE_VECTOR_FULL(UnitInfo, US_NS_SWIG::UnitInfo);
TEMPLATE_VECTOR_FULL(ActionRequirement, US_NS_SWIG::ActionRequirement);
TEMPLATE_VECTOR_FULL(BadgeInfo, US_NS_SWIG::BadgeInfo);
TEMPLATE_VECTOR_FULL(ClubChallengeId, US_NS_SWIG::ClubChallengeId);
TEMPLATE_VECTOR_FULL(ClubChallengeProfileReward, US_NS_SWIG::ClubChallengeProfileReward);
TEMPLATE_VECTOR_FULL(ClubChallengeProfileThreshold, US_NS_SWIG::ClubChallengeProfileThreshold);
TEMPLATE_VECTOR_FULL(ClubChallengeCommunityReward, US_NS_SWIG::ClubChallengeCommunityReward);
TEMPLATE_VECTOR_FULL(ClubChallengeCommunityThreshold, US_NS_SWIG::ClubChallengeCommunityThreshold);
TEMPLATE_VECTOR_FULL(ChallengeDefinitionProfile, US_NS_SWIG::ChallengeDefinitionProfile);
TEMPLATE_VECTOR_FULL(ChallengePoolProfile, US_NS_SWIG::ChallengePoolProfile);
TEMPLATE_VECTOR_FULL(ChallengeStatusProfile, US_NS_SWIG::ChallengeStatusProfile);
TEMPLATE_VECTOR_FULL(ChallengeDefinitionCommunity, US_NS_SWIG::ChallengeDefinitionCommunity);
TEMPLATE_VECTOR_FULL(ChallengePoolCommunity, US_NS_SWIG::ChallengePoolCommunity);
TEMPLATE_VECTOR_FULL(ChallengeStatusCommunity, US_NS_SWIG::ChallengeStatusCommunity);
TEMPLATE_VECTOR_FULL(ConditionInfo, US_NS_SWIG::ConditionInfo);
TEMPLATE_VECTOR_FULL(RewardInfo, US_NS_SWIG::RewardInfo);
TEMPLATE_VECTOR_FULL(ClubImageInfo, US_NS_SWIG::ClubImageInfo);
TEMPLATE_VECTOR_FULL(ClubTagInfo, US_NS_SWIG::ClubTagInfo);
TEMPLATE_VECTOR_FULL(ClubGroupInfo, US_NS_SWIG::ClubGroupInfo);
TEMPLATE_VECTOR_FULL(RequirementInfo, US_NS_SWIG::RequirementInfo);
TEMPLATE_VECTOR_FULL(RequiredActionsInfo, US_NS_SWIG::RequiredActionsInfo);
TEMPLATE_VECTOR_FULL(RequiredRewardsInfo, US_NS_SWIG::RequiredRewardsInfo);
#endif // US_MODULE_CLUB
#if defined(US_MODULE_BATTLEPASS)
TEMPLATE_VECTOR_FULL(BattlepassSeason_Reward, US_NS_SWIG::BattlepassSeason::Reward);
TEMPLATE_VECTOR_FULL(BattlepassSeason_Tier, US_NS_SWIG::BattlepassSeason::Tier);
TEMPLATE_VECTOR_FULL(SeasonInfo, US_NS_SWIG::SeasonInfo);
TEMPLATE_VECTOR_FULL(SeasonReward, US_NS_SWIG::SeasonReward);
TEMPLATE_VECTOR_FULL(SeasonTier, US_NS_SWIG::SeasonTier);
TEMPLATE_VECTOR_FULL(NotificationTiersBankedTiers, US_NS_SWIG::NotificationTiersBankedTiers);
TEMPLATE_VECTOR_FULL(NotificationTiersBankedRewards, US_NS_SWIG::NotificationTiersBankedRewards);
TEMPLATE_VECTOR_FULL(NotificationTiersBankedTiersEx, US_NS_SWIG::NotificationTiersBankedTiersEx);
#endif // US_MODULE_BATTLEPASS
#if defined(US_MODULE_BLOCKLIST)
TEMPLATE_VECTOR_FULL(BlocklistProfile, US_NS_SWIG::BlocklistProfile);
TEMPLATE_VECTOR_FULL(NotificationBlocklistAdd, US_NS_SWIG::NotificationBlocklistAdd);
TEMPLATE_VECTOR_FULL(NotificationBlocklistAdded, US_NS_SWIG::NotificationBlocklistAdded);
TEMPLATE_VECTOR_FULL(NotificationBlocklistRemove, US_NS_SWIG::NotificationBlocklistRemove);
TEMPLATE_VECTOR_FULL(NotificationBlocklistRemoved, US_NS_SWIG::NotificationBlocklistRemoved);
#endif // US_MODULE_BLOCKLIST
#if defined(US_MODULE_STATS)
TEMPLATE_VECTOR_FULL(StatCardProfileFields, US_NS_SWIG::StatCardProfileFields);
TEMPLATE_VECTOR_FULL(StatCardProfileFieldPastPeriod, US_NS_SWIG::StatCardProfileFieldPastPeriod);
TEMPLATE_VECTOR_FULL(StatCardCommunityFields, US_NS_SWIG::StatCardCommunityFields);
TEMPLATE_VECTOR(int32, US_NS_SWIG::int32);
#endif // US_MODULE_STATS
#if defined(US_MODULE_CHALLENGE)
TEMPLATE_VECTOR_FULL(ChallengeId, US_NS_SWIG::ChallengeId);
TEMPLATE_VECTOR_FULL(ChallengeInfo, US_NS_SWIG::ChallengeInfo);
TEMPLATE_VECTOR_FULL(ChallengeProgression, US_NS_SWIG::ChallengeProgression);
TEMPLATE_VECTOR_FULL(ChallengeInfoItem, US_NS_SWIG::ChallengeInfoItem);
#endif //US_MODULE_CHALLENGE
#if defined(US_MODULE_VOICECHAT)
TEMPLATE_VECTOR_FULL(VoicechatVivoxInfo, US_NS_SWIG::VoicechatVivoxInfo);
TEMPLATE_VECTOR_FULL(VoicechatVivoxConfig, US_NS_SWIG::VoicechatVivoxConfig);
#endif //US_MODULE_VOICECHAT
TEMPLATE_VECTOR_FULL(ApplicationId, US_NS_SWIG::ApplicationId);
#if defined(US_MODULE_MODERATION)
TEMPLATE_VECTOR_FULL(ModerationReason, US_NS_SWIG::ModerationReason);
#endif //US_MODULE_MODERATION
#if !defined(SWIG_SERVER)
TEMPLATE_VECTOR_FULL(ProfileId, US_NS_SWIG::ProfileId);
#endif
#if defined(US_MODULE_MATCHMAKING)
TEMPLATE_VECTOR_FULL(MatchId, US_NS_SWIG::MatchId);
TEMPLATE_VECTOR_FULL(ReservedSlotId, US_NS_SWIG::ReservedSlotId);
TEMPLATE_VECTOR_FULL(TeamId, US_NS_SWIG::TeamId);
TEMPLATE_VECTOR_FULL(TransactionId, US_NS_SWIG::TransactionId);
#endif //US_MODULE_MATCHMAKING
#if !defined(SWIG_SERVER)
TEMPLATE_VECTOR_FULL(PopulationInfo, US_NS_SWIG::PopulationInfo);
TEMPLATE_VECTOR_FULL(ConnectionInfo, US_NS_SWIG::ConnectionInfo);
#endif
#if defined(US_MODULE_ENTITY)
TEMPLATE_VECTOR_FULL(EntityId, US_NS_SWIG::EntityId);
TEMPLATE_VECTOR_FULL(EntityProfile, US_NS_SWIG::EntityProfile);
TEMPLATE_VECTOR_FULL(EntitySpace, US_NS_SWIG::EntitySpace);
#endif
#if defined(US_MODULE_FRIEND)
TEMPLATE_VECTOR_FULL(FriendInfo, US_NS_SWIG::FriendInfo);
#endif
#if defined(US_MODULE_GAMESPLAYED)
TEMPLATE_VECTOR_FULL(GamePlayedApplicationEx, US_NS_SWIG::GamePlayedApplicationEx);
TEMPLATE_VECTOR_FULL(GamePlayedEx, US_NS_SWIG::GamePlayedEx);
TEMPLATE_VECTOR_FULL(GamePlayedApplication, US_NS_SWIG::GamePlayedApplication);
TEMPLATE_VECTOR_FULL(GamePlayed, US_NS_SWIG::GamePlayed);
#endif
#if defined(US_MODULE_PERSONA)
TEMPLATE_VECTOR_FULL(PersonaInfo, US_NS_SWIG::PersonaInfo);
#endif // US_MODULE_PERSONA
#if defined(US_MODULE_PLAYERREPORTS)
TEMPLATE_VECTOR_FULL(PlayerReportsCategory, US_NS_SWIG::PlayerReportsCategory);
TEMPLATE_VECTOR_FULL(CategoryLimit, US_NS_SWIG::CategoryLimit);
#endif
#if defined(US_MODULE_PROFILE)
#if (defined(SWIG4WIN) || defined(SWIG4IOS) || defined(SWIG4TVOS) || defined(SWIG4ANDROID) || defined(SWIG4OSX)) && !defined(US_SDK_SERVER)
TEMPLATE_VECTOR_FULL(RoamingProfileInfo, US_NS_SWIG::RoamingProfileInfo);
#endif
TEMPLATE_VECTOR_FULL(ProfileInfo, US_NS_SWIG::ProfileInfo);
TEMPLATE_VECTOR_FULL(ApplicationUsedInfo, US_NS_SWIG::ApplicationUsedInfo);
#endif
#if defined(US_ENABLE_MOBILE_FEATURES)
TEMPLATE_VECTOR_FULL(MobileUserInfo, US_NS_SWIG::MobileUserInfo);
#endif
#if defined(US_MODULE_LEADERBOARD)
TEMPLATE_VECTOR_FULL(LeaderboardInfo, US_NS_SWIG::LeaderboardInfo);
#endif //US_MODULE_LEADERBOARD
TEMPLATE_VECTOR_FULL(SpaceId, US_NS_SWIG::SpaceId);
#if defined(US_MODULE_STORE)
TEMPLATE_VECTOR_FULL(OfferPossibleItem, US_NS_SWIG::OfferPossibleItem);
TEMPLATE_VECTOR_FULL(OfferDynamicItemsGroup, US_NS_SWIG::OfferDynamicItemsGroup);
TEMPLATE_VECTOR_FULL(OfferElementReplacement, US_NS_SWIG::OfferElementReplacement);
TEMPLATE_VECTOR_FULL(OfferElement, US_NS_SWIG::OfferElement);
TEMPLATE_VECTOR_FULL(InventoryElement, US_NS_SWIG::InventoryElement);
TEMPLATE_VECTOR_FULL(InventoryTransaction, US_NS_SWIG::InventoryTransaction);
TEMPLATE_VECTOR_FULL(AdditionalDetailsElement, US_NS_SWIG::AdditionalDetailsElement);
TEMPLATE_VECTOR_FULL(ExpirationDetail, US_NS_SWIG::ExpirationDetail);
TEMPLATE_VECTOR_FULL(SecondaryStoreAsset, US_NS_SWIG::SecondaryStoreAsset);
TEMPLATE_VECTOR_FULL(SecondaryStoreLocalization, US_NS_SWIG::SecondaryStoreLocalization);
TEMPLATE_VECTOR_FULL(StoreItem, US_NS_SWIG::StoreItem);
TEMPLATE_VECTOR_FULL(StoreItemId, US_NS_SWIG::StoreItemId);
TEMPLATE_VECTOR_FULL(StoreOfferId, US_NS_SWIG::StoreOfferId);
TEMPLATE_VECTOR_FULL(StoreItemsMapping, US_NS_SWIG::StoreItemsMapping);
TEMPLATE_VECTOR_FULL(OfferSpace, US_NS_SWIG::OfferSpace);
TEMPLATE_VECTOR_FULL(TransactionInfo, US_NS_SWIG::TransactionInfo);
TEMPLATE_VECTOR_FULL(TransactionErrorInfo, US_NS_SWIG::TransactionErrorInfo);
TEMPLATE_VECTOR_FULL(TransactionSyncResults, US_NS_SWIG::TransactionSyncResults);
TEMPLATE_VECTOR_FULL(TransactionSyncAdditionalDetails, US_NS_SWIG::TransactionSyncAdditionalDetails);
#endif // US_MODULE_STORE
#if defined(US_PRIMARY_STORE_ENABLED)
TEMPLATE_VECTOR_FULL(PrimaryStoreItem, US_NS_SWIG::PrimaryStoreItem)
TEMPLATE_VECTOR_FULL(PrimaryStoreInventoryItem, US_NS_SWIG::PrimaryStoreInventoryItem);
TEMPLATE_VECTOR_FULL(PrimaryStoreItemAvailability, US_NS_SWIG::PrimaryStoreItemAvailability);
#endif // US_PRIMARY_STORE_ENABLED
#if defined(US_MODULE_USER)
TEMPLATE_VECTOR_FULL(UserLocalization, US_NS_SWIG::UserLocalization);
TEMPLATE_VECTOR_FULL(UserInfoError, US_NS_SWIG::UserInfoError);
#endif // US_MODULE_USER
#if defined(US_MODULE_SSI)
TEMPLATE_VECTOR_FULL(StoreAttributeBoolean, US_NS_SWIG::StoreAttributeBoolean);
TEMPLATE_VECTOR_FULL(StoreAttributeFloat, US_NS_SWIG::StoreAttributeFloat);
TEMPLATE_VECTOR_FULL(StoreAttributeId, US_NS_SWIG::StoreAttributeId);
TEMPLATE_VECTOR_FULL(StoreAttributeInteger, US_NS_SWIG::StoreAttributeInteger);
TEMPLATE_VECTOR_FULL(StoreAttributePickFromList, US_NS_SWIG::StoreAttributePickFromList);
TEMPLATE_VECTOR_FULL(StoreAttributeStatic, US_NS_SWIG::StoreAttributeStatic);
TEMPLATE_VECTOR_FULL(StoreItemInstanceId, US_NS_SWIG::StoreItemInstanceId);
TEMPLATE_VECTOR_FULL(StoreListOfAttributesId, US_NS_SWIG::StoreListOfAttributesId);
TEMPLATE_VECTOR_FULL(StoreItemInstance, US_NS_SWIG::StoreItemInstance);
TEMPLATE_VECTOR_FULL(StoreItemInstanceTransaction, US_NS_SWIG::StoreItemInstanceTransaction);
TEMPLATE_VECTOR_FULL(StoreListOfAttributes, US_NS_SWIG::StoreListOfAttributes);
TEMPLATE_VECTOR_FULL(StoreRule, US_NS_SWIG::StoreRule);
TEMPLATE_VECTOR_FULL(StoreInstancesTransaction, US_NS_SWIG::StoreInstancesTransaction);
#endif // US_MODULE_SSI
TEMPLATE_VECTOR_FULL(UserId, US_NS_SWIG::UserId);
TEMPLATE_VECTOR_FULL(Vector_uint8, US_NS_SWIG::Vector<uint8>)
%define TEMPLATE_MAP(suffixFull, K, T)
%template(std_map_ ## suffixFull) std::map<K, T>;
%template(Map_ ## suffixFull) US_NS_SWIG::Map<K, T>;
%enddef
%define TEMPLATE_MAP_FULL(suffixFull, suffixT, K, T)
TEMPLATE_CONTAINER(suffixT, T);
TEMPLATE_MAP(suffixFull, K, T);
%enddef
#if defined(US_MODULE_LOCALIZATION)
TEMPLATE_VECTOR_FULL(LocalizationStringInfo, US_NS_SWIG::LocalizationStringInfo);
#endif
#if defined(US_MODULE_STATS)
TEMPLATE_MAP_FULL(String_StatProfileFields, StatProfileFields, US_NS_SWIG::String, US_NS_SWIG::StatProfileFields);
TEMPLATE_MAP_FULL(ProfileId_StatsInfoProfile, StatsInfoProfile, US_NS_SWIG::ProfileId, US_NS_SWIG::StatsInfoProfile);
TEMPLATE_MAP_FULL(String_StatCommunityFields, StatCommunityFields, US_NS_SWIG::String, US_NS_SWIG::StatCommunityFields);
TEMPLATE_VECTOR_FULL(Vector_StatCardProfileFields, US_NS_SWIG::Vector<US_NS_SWIG::StatCardProfileFields>);
TEMPLATE_MAP(ProfileId_Vector_StatCardProfileFields, US_NS_SWIG::ProfileId, US_NS_SWIG::Vector<US_NS_SWIG::StatCardProfileFields>);
#endif // US_MODULE_STATS
#if defined(US_MODULE_CHALLENGE)
TEMPLATE_MAP_FULL(String_ChallengeInfoStatThreshold, ChallengeInfoStatThreshold, US_NS_SWIG::String, US_NS_SWIG::ChallengeInfoStatThreshold);
TEMPLATE_MAP_FULL(String_ChallengeProgressionStatValue, ChallengeProgressionStatValue, US_NS_SWIG::String, US_NS_SWIG::ChallengeProgressionStatValue);
#endif //US_MODULE_CHALLENGE
TEMPLATE_MAP(String_String, US_NS_SWIG::String, US_NS_SWIG::String);
#if defined(US_MODULE_PROFILE)
TEMPLATE_MAP(String_ProfileInfo, US_NS_SWIG::String, US_NS_SWIG::ProfileInfo);
TEMPLATE_MAP(UserId_ProfileInfo, US_NS_SWIG::UserId, US_NS_SWIG::ProfileInfo);
TEMPLATE_MAP(ProfileId_ProfileInfo, US_NS_SWIG::ProfileId, US_NS_SWIG::ProfileInfo);
#endif
#if !defined(SWIG_SERVER)
TEMPLATE_VECTOR_FULL(Vector_ConnectionInfo, US_NS_SWIG::Vector<US_NS_SWIG::ConnectionInfo>);
TEMPLATE_MAP(ProfileId_Vector_ConnectionInfo, US_NS_SWIG::ProfileId, US_NS_SWIG::Vector<US_NS_SWIG::ConnectionInfo>);
#endif
TEMPLATE_MAP_FULL(String_ParametersGroupInfo, ParametersGroupInfo, US_NS_SWIG::String, US_NS_SWIG::ParametersGroupInfo);
#if defined(US_MODULE_USER)
TEMPLATE_MAP_FULL(UserId_UserInfo, UserInfo, US_NS_SWIG::UserId, US_NS_SWIG::UserInfo);
#endif // US_MODULE_USER
#if defined(US_MODULE_SSI)
TEMPLATE_MAP(StoreItemInstanceId_Int32, US_NS_SWIG::StoreItemInstanceId, US_NS_SWIG::int32);
#endif //US_MODULE_SSI
#if defined(US_MODULE_CLUB)
TEMPLATE_MAP(String_BadgeInfo, US_NS_SWIG::String, US_NS_SWIG::BadgeInfo);
#endif
#if defined(US_MODULE_RECOMMENDATIONS)
TEMPLATE_VECTOR_FULL(Recommendation, US_NS_SWIG::Recommendation);
TEMPLATE_VECTOR_FULL(Vector_Recommendation, US_NS_SWIG::Vector<US_NS_SWIG::Recommendation>);
TEMPLATE_MAP(String_Vector_Recommendation, US_NS_SWIG::String, US_NS_SWIG::Vector<US_NS_SWIG::Recommendation>);
#endif // US_MODULE_RECOMMENDATIONS
#if defined(US_MODULE_STORE)
TEMPLATE_MAP_FULL(StoreItemId_Int32, Int32, US_NS_SWIG::StoreItemId, US_NS_SWIG::int32);
#endif // US_MODULE_STORE
%warnfilter(516) String; // wchar_t methods ignored
%include "ubiservices/core/types/string.h"
%template(std_map_String_String_CaseInsensitiveStringComp) std::map<US_NS_SWIG::String, US_NS_SWIG::String, US_NS_SWIG::CaseInsensitiveStringComp>;
%template(StringKeyMap_String) US_NS_SWIG::StringKeyMap<US_NS_SWIG::String>;
// Using US_NS inside of %extend instead of US_NS_SWIG because we want to use the #ifdef inside config.h(c++) and not the one declared at the top of this document
%define EXTEND_GUID_CTR(classT)
%extend US_NS_SWIG:: ## classT
{
classT ## (const char* guidText)
{
US_NS:: ## classT ## * instance = new US_NS:: ## classT ## (guidText);
return instance;
}
}
%enddef
%include "ubiservices/core/types/guid.h"
EXTEND_GUID_CTR(Guid);
// Using US_NS inside of %extend instead of US_NS_SWIG because we want to use the #ifdef inside config.h(c++) and not the one declared at the top of this document
%extend US_NS_SWIG::Guid
{
String getText() const
{
return static_cast<US_NS::String>(*$self);
}
const char* getTextUtf8() const
{
return static_cast<US_NS::String>(*$self).getUtf8();
}
}
%include "ubiservices/core/memory/smartPtr.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
//
////////////////////////////////////////////////////////////////////////////////////////////////////
//==================================================================================================
%include "ubiservices/core/types/typesId/applicationId.h"
%include "ubiservices/core/types/typesId/groupId.h"
#if defined(US_MODULE_CLUB)
%include "ubiservices/services/club/typesId/clubChallengeId.h"
%include "ubiservices/core/types/typesId/poolId.h"
#endif
#if defined(US_MODULE_BATTLEPASS)
%include "ubiservices/services/battlepass/typesId/seasonId.h"
#endif
#if defined(US_MODULE_ENTITY)
%include "ubiservices/services/entity/typesId/entityId.h"
#endif
#if defined(US_MODULE_CHALLENGE)
%include "ubiservices/services/challenge/typesId/challengeId.h"
#endif
#if defined(US_MODULE_MATCHMAKING)
%include "ubiservices/services/matchmaking/typesId/matchId.h"
%include "ubiservices/services/matchmaking/typesId/reservedSlotId.h"
%include "ubiservices/services/matchmaking/typesId/teamId.h"
%include "ubiservices/services/matchmaking/typesId/transactionId.h"
#endif
#if !defined(SWIG_SERVER)
%include "ubiservices/core/types/typesId/connectionId.h"
#endif
%include "ubiservices/core/types/typesId/profileId.h"
%include "ubiservices/core/types/typesId/roamingProfileId.h"
#if defined(US_ENABLE_MOBILE_FEATURES)
%include "ubiservices/core/types/typesId/mobileUserId.h"
#endif
%include "ubiservices/core/types/typesId/sessionId.h"
%include "ubiservices/core/types/typesId/spaceId.h"
#if defined(US_MODULE_SSI)
%include "ubiservices/core/types/typesId/storeAttributeId.h"
%include "ubiservices/core/types/typesId/storeItemInstanceId.h"
%include "ubiservices/core/types/typesId/storeListOfAttributesId.h"
%include "ubiservices/core/types/typesId/storeRuleId.h"
#endif
#if !defined(SWIG_SERVER)
%include "ubiservices/core/types/typesId/subjectId.h"
#endif
%include "ubiservices/core/types/typesId/userId.h"
%include "ubiservices/core/types/time.h"
%include "ubiservices/core/types/dateTime.h"
%include "ubiservices/core/types/dateTimeHelper.h"
#if defined(US_MODULE_STORE)
%include "ubiservices/services/secondaryStore/typesId/storeItemId.h"
%include "ubiservices/services/secondaryStore/typesId/storeOfferId.h"
%include "ubiservices/services/secondaryStore/typesId/storeTransactionId.h"
#endif
#if defined(US_MODULE_STORE) || defined(US_MODULE_SSI)
%include "ubiservices/services/secondaryStore/typesId/storeInventoryId.h"
#endif
EXTEND_GUID_CTR(ApplicationId);
EXTEND_GUID_CTR(GroupId);
#if defined(US_MODULE_CLUB)
EXTEND_GUID_CTR(ClubChallengeId);
EXTEND_GUID_CTR(PoolId);
#endif
#if defined(US_MODULE_BATTLEPASS)
EXTEND_GUID_CTR(SeasonId);
#endif
#if defined(US_MODULE_CHALLENGE)
EXTEND_GUID_CTR(ChallengeId);
#endif
#if defined(US_MODULE_ENTITY)
EXTEND_GUID_CTR(EntityId);
#endif
#if defined(US_MODULE_MATCHMAKING)
EXTEND_GUID_CTR(MatchId);
EXTEND_GUID_CTR(ReservedSlotId);
EXTEND_GUID_CTR(TeamId);
EXTEND_GUID_CTR(TransactionId);
#endif
#if !defined(SWIG_SERVER)
EXTEND_GUID_CTR(ConnectionId);
#endif
EXTEND_GUID_CTR(ProfileId);
EXTEND_GUID_CTR(RoamingProfileId);
#if defined(US_ENABLE_MOBILE_FEATURES)
EXTEND_GUID_CTR(MobileUserId)
#endif
EXTEND_GUID_CTR(SessionId);
EXTEND_GUID_CTR(SpaceId);
#if defined(US_MODULE_SSI)
EXTEND_GUID_CTR(StoreAttributeId);
#endif
#if !defined(SWIG_SERVER)
EXTEND_GUID_CTR(StoreItemInstanceId);
EXTEND_GUID_CTR(StoreListOfAttributesId);
EXTEND_GUID_CTR(SubjectId);
#endif
EXTEND_GUID_CTR(UserId);
#if defined(US_MODULE_STORE)
EXTEND_GUID_CTR(StoreItemId);
EXTEND_GUID_CTR(StoreOfferId);
EXTEND_GUID_CTR(StoreTransactionId);
#endif
#if defined(US_MODULE_STORE) || defined(US_MODULE_SSI)
EXTEND_GUID_CTR(StoreInventoryId);
#endif
//==================================================================================================
%apply bool& INOUT { bool& value };
%apply double& INOUT { double& value };
%apply int& INOUT { int& value };
%apply unsigned int& INOUT { unsigned int& value };
%apply long long& INOUT {long long& value};
%include "ubiservices/core/JSON/json.h"
%include "ubiservices/core/configs/onlineAccessContext.h"
%include "ubiservices/core/configs/environment.h"
%include "ubiservices/core/configs/urlHelper.h"
#if defined(SWIG4PSAPI)
%include "ubiservices/core/firstPartyInit/psApi/firstPartyInit.h"
#elif defined(SWIG4PS4)
%include "ubiservices/core/firstPartyInit/ps4/firstPartyInit.h"
#elif defined(SWIG4SWITCH)
%include "ubiservices/core/firstPartyInit/nnx/firstPartyInit.h"
#elif defined(SWIG4STADIA)
%include "ubiservices/core/firstPartyInit/stadia/firstPartyInit.h"
#elif defined(SWIG4WIN)
%include "ubiservices/core/firstPartyInit/win32/firstPartyInit.h"
#endif
%include "ubiservices/services/event/types/types.h"
#if !defined(SWIG_SERVER)
%include "ubiservices/services/event/types/eventTypeInfo.h"
#endif
#if defined(US_ENABLE_MOBILE_FEATURES)
%include "ubiservices/core/configs/mobile/mobileProfilePolicy.h"
#endif
#if defined(SWIG4PSAPI)
%include "ubiservices/core/configs/psApi/gameConfigConsole.h"
#elif defined(SWIG4PS4)
%include "ubiservices/core/configs/ps4/gameConfigConsole.h"
#elif defined(SWIG4XONE)
%include "ubiservices/core/configs/xone/gameConfigConsole.h"
#elif defined(SWIG4SWITCH)
%include "ubiservices/core/configs/nnx/gameConfigConsole.h"
#elif defined(SWIG4WIN)
%include "ubiservices/core/configs/win32/uplayPCPolicy.h"
%include "ubiservices/core/configs/win32/gameConfigConsole.h"
#elif defined(US_ENABLE_MOBILE_FEATURES)
%include "ubiservices/core/configs/mobile/gameConfigConsole.h"
#else
%include "ubiservices/core/configs/gameConfigConsole.h"
#endif
#if defined(SWIG4PSAPI)
%include "ubiservices/core/configs/psApi/titleConfig.h"
#elif defined(SWIG4PS4)
%include "ubiservices/core/configs/ps4/titleConfig.h"
#elif defined(SWIG4SWITCH)
%include "ubiservices/core/configs/nnx/titleConfig.h"
#endif
#if !defined(SWIG_SERVER)
%include "ubiservices/core/configs/gameConfigEvent.h"
%include "ubiservices/core/configs/profilePolicy.h"
#endif
%include "ubiservices/core/configs/gameConfig.h"
#if defined(SWIG4PSAPI)
%include "ubiservices/core/configs/psApi/firstPartyOnlineAPIConfig.h"
#endif
%include "ubiservices/core/configs/threadingConfig.h"
%include "ubiservices/core/profile/profileType.h"
%include "ubiservices/services/http/httpProxyConfig.h"
%include "ubiservices/services/http/generic/httpConfig.h"
%include "ubiservices/services/http/httpHeader.h"
%include "ubiservices/services/http/httpMethod.h"
%include "ubiservices/services/http/httpMultipartData.h"
%include "ubiservices/services/http/httpMultipartStreamData.h"
%include "ubiservices/services/http/request/httpRequest.h"
%include "ubiservices/services/http/request/httpDelete.h"
%include "ubiservices/services/http/request/httpGet.h"
%include "ubiservices/services/http/request/httpHead.h"
%include "ubiservices/services/http/request/httpPost.h"
%include "ubiservices/services/http/request/httpPut.h"
%include "ubiservices/services/http/request/httpPatch.h"
%include "ubiservices/services/http/request/httpRetryConfig.h"
%include "ubiservices/services/http/httpStatistics.h"
%include "ubiservices/services/http/httpResponse.h"
%include "ubiservices/core/configs/systemConfig.h"
%include "ubiservices/ubiservices.h"
%include "ubiservices/core/log/eventLogConstants.h"
%include "ubiservices/core/log/log.h"
// Duplicated code on purpose. The only difference is the missing EntryPoint for Linux.
// On Linux you must not specify any EntryPoint.
%define UNITY_LOGGING_HELPER_CSCODE(DllImportStatement)
%typemap(cscode) US_NS_SWIG::UnityLoggingHelper %{
DllImportStatement
private static extern void UnityLoggingHelper_setDebugFunction(System.IntPtr jarg1);
public delegate void CallbackDelegate(string str);
/// <summary>
/// The CallbackDelegate Function requires AOT.MonoPInvokeCallBack attribute.
/// </summary>
public static bool setupLogs(CallbackDelegate callback, out string error)
{
error = "";
object[] attributes = callback.Method.GetCustomAttributes(false);
if(attributes.Length == 0)
{
error = "Callback Method requires AOT.MonoPInvokeCallback Attribute";
return false;
}
bool hasAttribute = false;
foreach(object attribute in attributes)
{
if(attribute.ToString() == "AOT.MonoPInvokeCallbackAttribute")
{
hasAttribute = true;
break;
}
}
if(!hasAttribute)
{
error = "Callback Method requires AOT.MonoPInvokeCallback Attribute";
return false;
}
System.IntPtr intptr_delegate = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(callback);
UnityLoggingHelper_setDebugFunction(intptr_delegate);
return true;
}
%}
%enddef
#if defined(SWIG4LINUX)
UNITY_LOGGING_HELPER_CSCODE([global::System.Runtime.InteropServices.DllImport("ubiservices")])
#elif defined(SWIG4OSX) || defined(SWIG4TVOS)
// The CSharp_ part is removed on this platform
UNITY_LOGGING_HELPER_CSCODE([global::System.Runtime.InteropServices.DllImport("ubiservices", EntryPoint = "UnityLoggingHelper_setDebugFunction")])
#else
UNITY_LOGGING_HELPER_CSCODE([global::System.Runtime.InteropServices.DllImport("ubiservices", EntryPoint = "CSharp_UnityLoggingHelper_setDebugFunction")])
#endif
%include "ubiservices/core/log/swig/unityLoggingHelper.h"
%include "ubiservices/core/log/eventLog.h"
%include "ubiservices/core/log/logDevice.h"
%include "ubiservices/core/log/outputFormat.h"
%include "ubiservices/core/log/devices/logDeviceConsole.h"
%include "ubiservices/core/log/devices/logDeviceDebugOutput.h"
%include "ubiservices/core/log/devices/logDeviceEal.h"
%include "ubiservices/core/types/optional.h"
#if defined(US_PRIMARY_STORE_ENABLED)
#if defined(SWIG4WIN)
%include "ubiservices/services/primaryStore/primaryStoreInventoryItemActivation.h"
%include "ubiservices/services/primaryStore/primaryStoreInventoryItemOwnership.h"
#endif
%include "ubiservices/services/primaryStore/primaryStoreItemType.h"
%include "ubiservices/services/primaryStore/primaryStoreInventoryItem.h"
#endif
#if !defined(SWIG_SERVER)
%warnfilter(451) DynamicPopulationUSSDKCustomParams;
%include "ubiservices/services/populations/dynamicPopulationCustomParams.h"
#endif
%warnfilter(451) ErrorDetails; // Setting a const char * variable may leak memory.
%include "ubiservices/core/errors/errorDetails.h"
%include "ubiservices/core/tasks/asyncResultBase.h"
%include "ubiservices/core/tasks/asyncResult.h"
%template(AsyncResult_char) US_NS_SWIG::AsyncResult<char>; // TEST TYPE
%template(AsyncResult_Empty) US_NS_SWIG::AsyncResult<US_NS_SWIG::Empty>;
%template(AsyncResult_String) US_NS_SWIG::AsyncResult<US_NS_SWIG::String>;
%template(AsyncResult_uint32) US_NS_SWIG::AsyncResult<US_NS_SWIG::uint32>;
%template(AsyncResult_bool) US_NS_SWIG::AsyncResult<bool>;
%template(AsyncResult_HttpResponse) US_NS_SWIG::AsyncResult<US_NS_SWIG::HttpResponse>;
%include "ubiservices/services/http/httpRequestSignType.h"
%include "ubiservices/services/http/httpClient.h"
%template(AsyncResult_Vector_uint8) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::uint8> >;
%template(AsyncResult_Vector_String) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::String> >;
#if defined(US_MODULE_CLUB)
%template(AsyncResult_ActionsGroup) US_NS_SWIG::AsyncResult<US_NS_SWIG::ActionsGroup>;
%template(AsyncResult_Vector_BadgeInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::BadgeInfo> >;
%template(AsyncResult_Vector_ChallengeDefinitionProfile) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::ChallengeDefinitionProfile> >;
%template(AsyncResult_Vector_ChallengePoolProfile) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::ChallengePoolProfile> >;
%template(AsyncResult_Vector_ChallengeStatusProfile) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::ChallengeStatusProfile> >;
%template(AsyncResult_Vector_ChallengeDefinitionCommunity) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::ChallengeDefinitionCommunity> >;
%template(AsyncResult_Vector_ChallengePoolCommunity) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::ChallengePoolCommunity> >;
%template(AsyncResult_Vector_ChallengeStatusCommunity) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::ChallengeStatusCommunity> >;
%template(AsyncResult_Vector_RewardInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::RewardInfo> >;
#endif
#if defined(US_MODULE_APPLICATION)
%template(AsyncResult_ApplicationInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::ApplicationInfo>;
#endif
#if defined(US_MODULE_BATTLEPASS)
%template(AsyncResult_Battlepass) US_NS_SWIG::AsyncResult<US_NS_SWIG::Battlepass>;
%template(AsyncResult_BattlepassInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::BattlepassInfo>;
%template(AsyncResult_BattlepassSeason) US_NS_SWIG::AsyncResult<US_NS_SWIG::BattlepassSeason>;
%template(AsyncResult_BattlepassSeasonProgression) US_NS_SWIG::AsyncResult<US_NS_SWIG::BattlepassSeasonProgression>;
%template(AsyncResult_SeasonInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::SeasonInfo>;
%template(AsyncResult_Vector_SeasonInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::SeasonInfo> >;
#endif
#if defined(US_MODULE_BLOCKLIST)
TEMPLATE_OPTIONAL(GroupId, US_NS_SWIG::GroupId);
%template(AsyncResult_BlocklistInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::BlocklistInfo>;
%template(AsyncResult_GroupId) US_NS_SWIG::AsyncResult<US_NS_SWIG::GroupId>;
%template(AsyncResult_Optional_GroupId) US_NS_SWIG::AsyncResult<US_NS_SWIG::Optional<US_NS_SWIG::GroupId>>;
%template(AsyncResult_Vector_ProfileId) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::ProfileId>>;
#endif
#if defined(US_MODULE_USER)
%template(AsyncResult_UserInfoCreation) US_NS_SWIG::AsyncResult<US_NS_SWIG::UserInfoCreation>;
%template(AsyncResult_UserLocalization) US_NS_SWIG::AsyncResult<US_NS_SWIG::UserLocalization>;
%template(AsyncResult_LegalOptIns) US_NS_SWIG::AsyncResult<US_NS_SWIG::LegalOptIns>;
%template(AsyncResult_Vector_UserInfoError) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::UserInfoError> >;
%template(AsyncResult_Map_UserId_UserInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Map<US_NS_SWIG::UserId, US_NS_SWIG::UserInfo> >;
#endif
#if defined(US_MODULE_CHALLENGE)
%template(AsyncResult_Vector_ChallengeInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::ChallengeInfo> >;
%template(AsyncResult_Vector_ChallengeProgression) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::ChallengeProgression> >;
#endif //US_MODULE_CHALLENGE
#if defined(US_MODULE_VOICECHAT)
%template(AsyncResult_VoicechatVivoxInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::VoicechatVivoxInfo>;
%template(AsyncResult_VoicechatVivoxConfig) US_NS_SWIG::AsyncResult<US_NS_SWIG::VoicechatVivoxConfig>;
#endif //US_MODULE_VOICECHAT
#if defined(US_MODULE_FRIEND)
%template(AsyncResult_Vector_FriendInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::FriendInfo> >;
#endif
#if defined(US_MODULE_GAMESPLAYED)
%template(AsyncResult_Vector_GamePlayedEx) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::GamePlayedEx> >;
%template(AsyncResult_Vector_GamePlayed) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::GamePlayed> >;
#endif
#if defined(US_MODULE_MATCHMAKING)
%template(AsyncResult_MatchmakingClientStateInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::MatchmakingClientStateInfo >;
%template(AsyncResult_MatchmakingMatchStateInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::MatchmakingMatchStateInfo >;
#endif
#if defined(US_MODULE_NEWS)
%template(AsyncResult_Vector_NewsInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::NewsInfo> >;
#endif
#if defined(US_MODULE_PERSONA)
%template(AsyncResult_PersonaInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::PersonaInfo>;
%template(AsyncResult_Vector_PersonaInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::PersonaInfo> >;
#endif
#if defined(US_MODULE_PLAYERREPORTS)
%template(AsyncResult_PlayerReportInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::PlayerReportInfo>;
%template(AsyncResult_Vector_PlayerReportsCategory) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::PlayerReportsCategory> >;
#endif
#if defined(US_MODULE_PROFILE)
#if (defined(SWIG4WIN) || defined(SWIG4IOS) || defined(SWIG4TVOS) || defined(SWIG4ANDROID) || defined(SWIG4OSX)) && !defined(US_SDK_SERVER)
%template(AsyncResult_Vector_RoamingProfileInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::RoamingProfileInfo> >;
#endif
%template(AsyncResult_Map_String_ProfileInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Map<US_NS_SWIG::String, US_NS_SWIG::ProfileInfo> >;
%template(AsyncResult_Map_ProfileId_ProfileInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Map<US_NS_SWIG::ProfileId, US_NS_SWIG::ProfileInfo> >;
%template(AsyncResult_Map_UserId_ProfileInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Map<US_NS_SWIG::UserId, US_NS_SWIG::ProfileInfo> >;
%template(AsyncResult_ProfileInfoExternal) US_NS_SWIG::AsyncResult<US_NS_SWIG::ProfileInfoExternal>;
%template(AsyncResult_Vector_ApplicationUsedInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::ApplicationUsedInfo> >;
#endif
#if defined(US_ENABLE_MOBILE_FEATURES)
%template(AsyncResult_Vector_MobileUserInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::MobileUserInfo> >;
%template(AsyncResult_MobileUserInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::MobileUserInfo>;
#endif
#if defined(US_MODULE_STATS)
%template(AsyncResult_StatCardsCommunity) US_NS_SWIG::AsyncResult<US_NS_SWIG::StatCardsCommunity>;
%template(AsyncResult_StatCardsProfiles) US_NS_SWIG::AsyncResult<US_NS_SWIG::StatCardsProfiles>;
%template(AsyncResult_StatsCommunity) US_NS_SWIG::AsyncResult<US_NS_SWIG::StatsCommunity>;
%template(AsyncResult_StatsProfiles) US_NS_SWIG::AsyncResult<US_NS_SWIG::StatsProfiles>;
%template(AsyncResult_StatsInfoProfile) US_NS_SWIG::AsyncResult<US_NS_SWIG::StatsInfoProfile>;
#endif // US_MODULE_STATS
#if !defined(SWIG_SERVER)
%template(AsyncResult_Map_ProfileId_Vector_ConnectionInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Map<US_NS_SWIG::ProfileId, US_NS_SWIG::Vector<US_NS_SWIG::ConnectionInfo> > >;
#endif
%template(AsyncResult_Map_String_ParametersGroupInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Map<US_NS_SWIG::String, US_NS_SWIG::ParametersGroupInfo> >;
#if !defined(SWIG_SERVER)
%template(AsyncResult_Vector_PopulationInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::PopulationInfo> >;
#endif
#if defined(US_MODULE_ENTITY)
%template(AsyncResult_EntityProfile) US_NS_SWIG::AsyncResult<US_NS_SWIG::EntityProfile>;
%template(AsyncResult_EntitySpace) US_NS_SWIG::AsyncResult<US_NS_SWIG::EntitySpace>;
%template(AsyncResult_Vector_EntityProfile) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::EntityProfile> >;
%template(AsyncResult_Vector_EntitySpace) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::EntitySpace> >;
#endif
#if defined(US_MODULE_LEADERBOARD)
%template(AsyncResult_LeaderboardInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::LeaderboardInfo>;
%template(AsyncResult_LeaderboardPrediction) US_NS_SWIG::AsyncResult<US_NS_SWIG::LeaderboardPrediction>;
#endif // US_MODULE_LEADERBOARD
#if defined(US_MODULE_LOCALIZATION)
%template(AsyncResult_LocalizationAllMetadata) US_NS_SWIG::AsyncResult<US_NS_SWIG::LocalizationAllMetadata>;
%template(AsyncResult_LocalizationInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::LocalizationInfo>;
%template(AsyncResult_Vector_LocalizationStringInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::LocalizationStringInfo> >;
#endif
#if defined(US_MODULE_RECOMMENDATIONS)
%template(AsyncResult_Map_String_Vector_Recommendation) US_NS_SWIG::AsyncResult<US_NS_SWIG::Map<US_NS_SWIG::String, US_NS_SWIG::Vector<US_NS_SWIG::Recommendation> > >;
#endif
#if defined(US_MODULE_STORE)
%template(AsyncResult_Vector_StoreItemsMapping) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::StoreItemsMapping> >;
#endif
%include "ubiservices/core/tasks/asyncResultBatch.h"
%define TEMPLATE_ASYNCRESULTBATCH_KEY_EMPTY(label, T)
%template(std_map_ ## label ## _AsyncResult_Empty) std::map<T, US_NS_SWIG::AsyncResult<US_NS_SWIG::Empty> >;
%template(Map_ ## label ## _AsyncResult_Empty) US_NS_SWIG::Map<T, US_NS_SWIG::AsyncResult<US_NS_SWIG::Empty> >;
%template(AsyncResult_Map_ ## label ## _AsyncResult_Empty) US_NS_SWIG::AsyncResult<US_NS_SWIG::Map<T, US_NS_SWIG::AsyncResult<US_NS_SWIG::Empty> > >;
%template(AsyncResultBatch_ ## label ## _Empty) US_NS_SWIG::AsyncResultBatch<T, US_NS_SWIG::Empty>;
%enddef
TEMPLATE_CONTAINER(AsyncResult_Empty, US_NS_SWIG::AsyncResult<US_NS_SWIG::Empty>);
#if !defined(SWIG_SERVER)
TEMPLATE_ASYNCRESULTBATCH_KEY_EMPTY(ConnectionInfo, US_NS_SWIG::ConnectionInfo);
TEMPLATE_ASYNCRESULTBATCH_KEY_EMPTY(ProfileId, US_NS_SWIG::ProfileId);
TEMPLATE_ASYNCRESULTBATCH_KEY_EMPTY(Facade, US_NS_SWIG::Facade*);
#endif
#if defined(US_MODULE_MODERATION)
%template(AsyncResult_ModerationInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::ModerationInfo>;
#endif
#if defined(US_MODULE_SSI)
%template(AsyncResult_StoreAttributeSpace) US_NS_SWIG::AsyncResult<US_NS_SWIG::StoreAttributeSpace>;
%template(AsyncResult_Vector_StoreItemInstance) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::StoreItemInstance> >;
%template(AsyncResult_Vector_StoreInstancesTransaction) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::StoreInstancesTransaction> >;
%template(AsyncResult_Vector_StoreListOfAttributes) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::StoreListOfAttributes> >;
%template(AsyncResult_Vector_StoreRule) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::StoreRule> >;
%template(AsyncResult_CompressedRulesAll) US_NS_SWIG::AsyncResult<US_NS_SWIG::CompressedRulesAll>;
#endif //US_MODULE_SSI
#if defined(US_PRIMARY_STORE_ENABLED)
%template(AsyncResult_Vector_PrimaryStoreItem) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::PrimaryStoreItem> >;
%template(AsyncResult_Vector_PrimaryStoreInventoryItem) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::PrimaryStoreInventoryItem> >;
#endif
#if defined(US_PRIMARY_STORE_MOBILE_ENABLED) || (defined(US_PRIMARY_STORE_ENABLED)&&(defined(SWIG4WIN)||defined(SWIG4OSX)))
%template(AsyncResult_InventoryUpdatePrimaryStore) US_NS_SWIG::AsyncResult<US_NS_SWIG::InventoryUpdatePrimaryStore>;
#endif
#if defined(US_MODULE_STORE)
%template(AsyncResult_Vector_StoreItem) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::StoreItem> >;
%template(AsyncResult_Vector_OfferSpace) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::OfferSpace> >;
%template(AsyncResult_CompressedOffersAll) US_NS_SWIG::AsyncResult<US_NS_SWIG::CompressedOffersAll>;
%template(AsyncResult_Vector_InventoryElement) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::InventoryElement> >;
%template(AsyncResult_TransactionInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::TransactionInfo>;
%template(AsyncResult_CompressedDataAll) US_NS_SWIG::AsyncResult<US_NS_SWIG::CompressedDataAll>;
%template(AsyncResult_CompressedAttributesAll) US_NS_SWIG::AsyncResult<US_NS_SWIG::CompressedAttributesAll>;
#endif
#if !defined(SWIG_SERVER) || defined(US_MODULE_USER) || defined(US_MODULE_PROFILE)
%include "ubiservices/services/authentication/credentialsType.h"
%include "ubiservices/services/authentication/credentialsExternalToken.h"
#endif
#if !defined(SWIG_SERVER)
%include "ubiservices/services/authentication/playerCredentialsBase.h"
// PS4, Xone and Switch use the index of the player to create Session
#if defined(SWIG4CONSOLE)
%include "ubiservices/services/authentication/swig/swig4console/playerCredentials.h"
#elif defined(SWIG4STADIA)
%include "ubiservices/services/authentication/stadia/playerCredentials.h"
#else
%typemap(cscode) US_NS_SWIG::UnityLoggingHelper %{
/// <summary>
/// [...]
/// </summary>
public static bool injectActivity()
{
using(UnityEngine.AndroidJavaClass UnityPlayerClass = new UnityEngine.AndroidJavaClass("com.unity3d.player.UnityPlayer"))
{
using(UnityEngine.AndroidJavaObject activity = UnityPlayerClass.GetStatic<UnityEngine.AndroidJavaObject>("currentActivity"))
{
UnityEngine.AndroidJavaClass UbimobileToolkitClass = new UnityEngine.AndroidJavaClass("com.ubisoft.bridge.JavaInterface");
int resultDummy = UbimobileToolkitClass.CallStatic<int>("injectActivityJava", activity);
return resultDummy == 555;
}
}
return false;
}
%}
#if defined(SWIG4WIN)
%include "ubiservices/services/authentication/win32/playerCredentials.h"
%include "ubiservices/services/authentication/win32/playerCredentialsSilent.h"
%include "ubiservices/services/authentication/win32/playerCredentialsMobile.h"
#elif defined(SWIG4OSX)
%include "ubiservices/services/authentication/osx/playerCredentials.h"
%include "ubiservices/services/authentication/osx/playerCredentialsSilent.h"
%include "ubiservices/services/authentication/osx/playerCredentialsMobile.h"
#elif defined(SWIG4ANDROID)
%include "ubiservices/services/authentication/android/playerCredentials.h"
%include "ubiservices/services/authentication/android/playerCredentialsSilent.h"
%include "ubiservices/services/authentication/android/playerCredentialsMobile.h"
#elif defined(SWIG4IOS) || defined(SWIG4TVOS)
%include "ubiservices/services/authentication/ios/playerCredentials.h"
%include "ubiservices/services/authentication/ios/playerCredentialsSilent.h"
%include "ubiservices/services/authentication/ios/playerCredentialsMobile.h"
#endif
#endif
#endif //SWIG_SERVER
#if !defined(SWIG_SERVER)
%include "ubiservices/services/event/eventsParams.h"
%include "ubiservices/services/event/signalAttributes.h"
%include "ubiservices/services/event/sendSignalResult.h"
#endif
#if defined(US_MODULE_STORE)
%include "ubiservices/services/primaryStore/win32/primaryStoreParams.h"
#endif
%include "ubiservices/core/notifications/notificationSourceStatus.h"
%include "ubiservices/core/notifications/notificationSource.h"
%define TEMPLATE_NOTIF(suffix, T)
%ignore US_NS_SWIG::ListenerHandler<T>::operator Handle() const;
%extend US_NS_SWIG::ListenerHandler<T>
{
US_NS_SWIG::ListenerHandler<T>::Handle getHandle() const
{
return static_cast<US_NS_SWIG::ListenerHandler<T>::Handle>(*$self);
}
}
%template(ListenerHandler_ ## suffix) US_NS_SWIG::ListenerHandler<T>;
%template(NotificationSource_ ## suffix) US_NS_SWIG::NotificationSource<T>;
%ignore US_NS_SWIG::SmartPtr<US_NS_SWIG::NotificationSource<T>>::operator =;
%ignore US_NS_SWIG::SmartPtr<US_NS_SWIG::NotificationSource<T>>::operator ==;
%ignore US_NS_SWIG::SmartPtr<US_NS_SWIG::NotificationSource<T>>::operator !=;
%ignore US_NS_SWIG::SmartPtr<US_NS_SWIG::NotificationSource<T>>::operator <;
%ignore US_NS_SWIG::SmartPtr<US_NS_SWIG::NotificationSource<T>>::operator >;
%ignore US_NS_SWIG::SmartPtr<US_NS_SWIG::NotificationSource<T>>::operator *;
%ignore US_NS_SWIG::SmartPtr<US_NS_SWIG::NotificationSource<T>>::operator ->;
%ignore US_NS_SWIG::SmartPtr<US_NS_SWIG::NotificationSource<T>>::operator !;
%ignore US_NS_SWIG::SmartPtr<US_NS_SWIG::NotificationSource<T>>::getPtr();
%template(SmartPtr_NotificationSource_ ## suffix) US_NS_SWIG::SmartPtr<US_NS_SWIG::NotificationSource<T>>;
%enddef
#if defined(US_MODULE_CLUB) || defined(US_MODULE_CHALLENGE) || defined(US_MODULE_BATTLEPASS) || defined(US_MODULE_STORE)
TEMPLATE_OPTIONAL(Guid, US_NS_SWIG::Guid); // ChallengeInfo + BattlepassSeason
#endif
TEMPLATE_OPTIONAL(SpaceId, US_NS_SWIG::SpaceId);
TEMPLATE_OPTIONAL(DateTime, US_NS_SWIG::DateTime);
TEMPLATE_OPTIONAL(ApplicationId, US_NS_SWIG::ApplicationId);
TEMPLATE_OPTIONAL(ProfileId, US_NS_SWIG::ProfileId);
TEMPLATE_OPTIONAL(String, US_NS_SWIG::String);
#if defined(US_MODULE_STORE)
TEMPLATE_OPTIONAL(StoreItemId, US_NS_SWIG::StoreItemId);
#endif
%include "ubiservices/core/helpers/resultRange.h"
%include "ubiservices/core/helpers/assertionHelper.h"
#if defined(US_MODULE_APPLICATION)
%include "ubiservices/services/application/applicationInfo.h"
%include "ubiservices/services/application/applicationClient.h"
TEMPLATE_VECTOR_FULL(ApplicationInfo, US_NS_SWIG::ApplicationInfo);
#endif //US_MODULE_APPLICATION
%include "ubiservices/services/authentication/sessionInfo.h"
%extend US_NS_SWIG::SessionInfo
{
const char* getTicketUtf8() const
{
return $self->getTicket().getUtf8();
}
}
#if defined(US_MODULE_MODERATION)
%include "ubiservices/services/moderation/moderationSeverityTypeConstants.h"
%include "ubiservices/services/moderation/moderationInfo.h"
%include "ubiservices/services/moderation/moderationClient.h"
#endif
#if defined(US_MODULE_CHALLENGE)
%include "ubiservices/services/challenge/challengeNotification.h"
%include "ubiservices/services/challenge/notificationChallengeProgressionBanked.h"
%include "ubiservices/services/challenge/notificationChallengeProgressionCompleted.h"
%include "ubiservices/services/challenge/challengeOperationType.h"
TEMPLATE_NOTIF(ChallengeNotification, US_NS_SWIG::ChallengeNotification);
#endif // US_MODULE_CHALLENGE
%include "ubiservices/services/authentication/authenticationNotification.h"
TEMPLATE_NOTIF(AuthenticationNotification, US_NS_SWIG::AuthenticationNotification);
%include "ubiservices/services/authentication/authenticationClient.h"
#if !defined(SWIG_SERVER)
%include "ubiservices/localizationHelper.h"
#endif
#if defined(US_MODULE_NEWS)
%include "ubiservices/core/localization/countryName.h"
%include "ubiservices/services/news/newsLink.h"
%include "ubiservices/services/news/newsInfo.h"
%include "ubiservices/services/news/newsClient.h"
#endif
#if defined(US_MODULE_UPLAY)
%include "ubiservices/services/uplay/uplayClient.h"
#endif
%include "ubiservices/services/event/types/types.h"
%include "ubiservices/services/event/types/eventInfoBase.h"
#if !defined(SWIG_SERVER)
%include "ubiservices/services/event/types/eventInfoContextStart.h"
%include "ubiservices/services/event/types/eventInfoContextStop.h"
%include "ubiservices/services/event/types/eventInfoCustom.h"
#endif
%include "ubiservices/services/event/types/eventInfoService.h"
#if !defined(SWIG_SERVER)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// TODO: REMOVE THIS IN 2021 (SDK-1168)
// The additional constructors which use Optional_int32 were mainly added in order to not break the Unity Android API.
// But they were added on all the platforms in order to keep API consistency between all the platforms. In 2021, we'll keep only one.
//
//
%typemap(cscode) US_NS_SWIG::EventInfoGameConsentPopUp %{
public EventInfoGameConsentPopUp(Optional_int32 age, Optional_Bool analyticsOptIn, Optional_Bool marketingOptIn, String customDataJson) : this(ubiservicesPINVOKE.new_EventInfoGameConsentPopUp__SWIG_0(Optional_int32.getCPtr(age), Optional_Bool.getCPtr(analyticsOptIn), Optional_Bool.getCPtr(marketingOptIn), String.getCPtr(customDataJson)), true) {
if (ubiservicesPINVOKE.SWIGPendingException.Pending) throw ubiservicesPINVOKE.SWIGPendingException.Retrieve();
}
public EventInfoGameConsentPopUp(Optional_int32 age, Optional_Bool analyticsOptIn, Optional_Bool marketingOptIn) : this(ubiservicesPINVOKE.new_EventInfoGameConsentPopUp__SWIG_1(Optional_int32.getCPtr(age), Optional_Bool.getCPtr(analyticsOptIn), Optional_Bool.getCPtr(marketingOptIn)), true) {
if (ubiservicesPINVOKE.SWIGPendingException.Pending) throw ubiservicesPINVOKE.SWIGPendingException.Retrieve();
}
%}
%typemap(cscode) US_NS_SWIG::EventInfoGameAdStop %{
public EventInfoGameAdStop(String adType, bool adLimitReached, Optional_Bool isLoaded, String adProvider, Optional_int32 adViewingDurationInSeconds, String customDataJson) : this(ubiservicesPINVOKE.new_EventInfoGameAdStop__SWIG_0(String.getCPtr(adType), adLimitReached, Optional_Bool.getCPtr(isLoaded), String.getCPtr(adProvider), Optional_int32.getCPtr(adViewingDurationInSeconds), String.getCPtr(customDataJson)), true) {
if (ubiservicesPINVOKE.SWIGPendingException.Pending) throw ubiservicesPINVOKE.SWIGPendingException.Retrieve();
}
public EventInfoGameAdStop(String adType, bool adLimitReached, Optional_Bool isLoaded, String adProvider, Optional_int32 adViewingDurationInSeconds) : this(ubiservicesPINVOKE.new_EventInfoGameAdStop__SWIG_1(String.getCPtr(adType), adLimitReached, Optional_Bool.getCPtr(isLoaded), String.getCPtr(adProvider), Optional_int32.getCPtr(adViewingDurationInSeconds)), true) {
if (ubiservicesPINVOKE.SWIGPendingException.Pending) throw ubiservicesPINVOKE.SWIGPendingException.Retrieve();
}
%}
////////////////////////////////////////////////////////////////////////////////////////////////////
#if defined(US_MODULE_VOICECHAT)
%include "ubiservices/services/voicechat/voicechatActionType.h"
%include "ubiservices/services/voicechat/voicechatProvider.h"
%include "ubiservices/services/voicechat/voicechatClient.h"
%include "ubiservices/services/voicechat/voicechatInfo.h"
%include "ubiservices/services/voicechat/voicechatConfig.h"
#endif //US_MODULE_VOICECHAT
%include "ubiservices/services/event/types/eventInfoGameAdStart.h"
%include "ubiservices/services/event/types/eventInfoGameAdStop.h"
%include "ubiservices/services/event/types/eventInfoGameConsentPopUp.h"
%include "ubiservices/services/event/types/eventInfoGameConsentPopUpDisplay.h"
%include "ubiservices/services/event/subtitlesActivation.h" // required before eventInfoGameLocalization.h
%include "ubiservices/services/event/types/eventInfoGameLocalization.h"
#if defined(US_ENABLE_MOBILE_FEATURES)
%include "ubiservices/services/event/types/eventInfoGameMobileCrossPromotion.h"
#endif //defined(US_ENABLE_MOBILE_FEATURES)
%include "ubiservices/services/event/types/eventInfoPlayerAchievement.h"
%include "ubiservices/services/event/types/eventInfoPlayerContentDownload.h"
#if defined(US_ENABLE_MOBILE_FEATURES)
%include "ubiservices/services/event/types/eventInfoGameMobileCustomerSupport.h"
%include "ubiservices/services/event/types/eventInfoPlayerMobileIAP.h"
%include "ubiservices/services/event/types/eventInfoPlayerMobileIAPSecondaryStore.h"
%include "ubiservices/services/event/types/eventInfoPlayerMobileMarketing.h"
#endif //defined(US_ENABLE_MOBILE_FEATURES)
%include "ubiservices/services/event/types/eventInfoPlayerPosition.h"
%include "ubiservices/services/event/types/eventInfoPlayerProgression.h"
%include "ubiservices/services/event/types/eventInfoPlayerChatService.h"
#endif
%include "ubiservices/services/event/pushEventResult.h"
%include "ubiservices/core/errors/errorCodes.h"
%include "ubiservices/services/event/eventNotification.h"
TEMPLATE_NOTIF(EventNotification, US_NS_SWIG::EventNotification);
%include "ubiservices/services/event/eventClient.h"
TEMPLATE_OPTIONAL(VectorString, US_NS_SWIG::Vector<US_NS_SWIG::String>); // TODO: REVIEW naming?
TEMPLATE_OPTIONAL(int32, US_NS_SWIG::int32);
TEMPLATE_OPTIONAL(uint32, US_NS_SWIG::uint32);
TEMPLATE_OPTIONAL(Json, US_NS_SWIG::Json);
TEMPLATE_OPTIONAL(double, double);
TEMPLATE_OPTIONAL(Bool, bool);
TEMPLATE_OPTIONAL(UserId, US_NS_SWIG::UserId);
#if defined(US_MODULE_BATTLEPASS)
%include "ubiservices/services/battlepass/battlepass.h"
%include "ubiservices/services/battlepass/battlepassSeason.h"
%include "ubiservices/services/battlepass/battlepassSeasonProgression.h"
%include "ubiservices/services/battlepass/battlepassInfo.h"
// seasonRewardRarity is needed by seasonReward
%include "ubiservices/services/battlepass/seasonRewardRarity.h"
%include "ubiservices/services/battlepass/seasonReward.h"
%include "ubiservices/services/battlepass/seasonTier.h"
%include "ubiservices/services/battlepass/seasonImages.h"
%include "ubiservices/services/battlepass/seasonInfo.h"
%include "ubiservices/services/battlepass/battlepassClient.h"
%include "ubiservices/services/battlepass/notificationTiersBankedEx.h"
%include "ubiservices/services/battlepass/notificationTiersBanked.h"
%include "ubiservices/services/battlepass/battlepassNotification.h"
TEMPLATE_NOTIF(BattlepassNotification, US_NS_SWIG::BattlepassNotification);
#endif
#if defined(US_MODULE_BLOCKLIST)
%include "ubiservices/services/blocklist/blocklistProfile.h"
%include "ubiservices/services/blocklist/blocklistInfo.h"
%include "ubiservices/services/blocklist/blocklistClient.h"
%include "ubiservices/services/blocklist/blocklistNotification.h"
%include "ubiservices/services/blocklist/notificationBlocklistAdd.h"
%include "ubiservices/services/blocklist/notificationBlocklistAdded.h"
%include "ubiservices/services/blocklist/notificationBlocklistRemove.h"
%include "ubiservices/services/blocklist/notificationBlocklistRemoved.h"
TEMPLATE_NOTIF(BlocklistNotification, US_NS_SWIG::BlocklistNotification);
#endif
#if defined(US_MODULE_CLUB)
TEMPLATE_OPTIONAL(ConsumableInfo, US_NS_SWIG::ConsumableInfo);
TEMPLATE_OPTIONAL(RequiredActionsInfo, US_NS_SWIG::RequiredActionsInfo);
TEMPLATE_OPTIONAL(RequiredSpacesInfo, US_NS_SWIG::RequiredSpacesInfo);
// Club Notifications
%include "ubiservices/services/club/clubNotification.h"
TEMPLATE_NOTIF(ClubNotification, US_NS_SWIG::ClubNotification);
%include "ubiservices/services/club/actionTypeConstants.h"
%include "ubiservices/services/club/notificationActionCompleted.h"
%include "ubiservices/services/club/notificationBadgeAcquired.h"
%include "ubiservices/services/club/notificationChallengeBanked.h"
%include "ubiservices/services/club/notificationChallengeParticipationStarted.h"
%include "ubiservices/services/club/notificationChallengeThresholdReached.h"
%include "ubiservices/services/club/notificationRewardPurchased.h"
%include "ubiservices/services/club/consumableInfo.h"
// TODO: http://www.swig.org/Doc1.3/SWIGPlus.html#SWIGPlus_nested_classes
#pragma SWIG nowarn=SWIGWARN_PARSE_NESTED_CLASS // Suppress SWIG warning
%include "ubiservices/services/club/actionRewardTypes.h"
%include "ubiservices/services/club/xpInfo.h"
%include "ubiservices/services/club/unitInfo.h"
%include "ubiservices/services/club/conditionInfo.h"
%include "ubiservices/services/club/actionsGroup.h"
%include "ubiservices/services/club/badgeInfo.h"
%include "ubiservices/services/club/rewardInfo.h"
%include "ubiservices/services/club/clubChallengeTypes.h"
%include "ubiservices/services/club/challengeDefinitionProfile.h"
%include "ubiservices/services/club/challengePoolProfile.h"
%include "ubiservices/services/club/challengeStatusProfile.h"
%include "ubiservices/services/club/challengeDefinitionCommunity.h"
%include "ubiservices/services/club/challengePoolCommunity.h"
%include "ubiservices/services/club/challengeStatusCommunity.h"
%include "ubiservices/services/club/clubDisplayContext.h"
#if defined(SWIG4CONSOLE) || defined(SWIG4STADIA)
%include "ubiservices/services/club/clubDisplayContext.h"
%include "ubiservices/services/club/clubDisplayDebugInfo.h"
%include "ubiservices/services/club/clubDisplayMode.h"
#endif
%include "ubiservices/services/club/clubClient.h"
#endif //US_MODULE_CLUB
#if defined(US_MODULE_PERSONA)
%include "ubiservices/services/persona/personaInfo.h"
%include "ubiservices/services/persona/personaClient.h"
#endif
#if defined(US_MODULE_PLAYERREPORTS)
%include "ubiservices/services/playerReports/playerReportsCategory.h"
%include "ubiservices/services/playerReports/playerReportCreation.h"
%include "ubiservices/services/playerReports/playerReportInfo.h"
%include "ubiservices/services/playerReports/playerReportsClient.h"
#endif
#if defined(US_MODULE_PROFILE)
#if (defined(SWIG4WIN) || defined(SWIG4IOS) || defined(SWIG4TVOS) || defined(SWIG4ANDROID) || defined(SWIG4OSX)) && !defined(US_SDK_SERVER)
%include "ubiservices/services/profile/roamingProfileInfo.h"
#endif
%include "ubiservices/services/profile/profileInfo.h"
%include "ubiservices/services/profile/profileInfoExternal.h"
%include "ubiservices/services/profile/applicationUsedInfo.h"
%include "ubiservices/services/profile/profileClient.h"
#endif
#if defined(US_ENABLE_MOBILE_FEATURES)
%include "ubiservices/core/helpers/mobileHelper/mobileUserInfo.h"
%include "ubiservices/core/helpers/mobileHelper/mobileUsersStorageHelper.h"
#endif
#if defined(US_MODULE_RECOMMENDATIONS)
%include "ubiservices/services/recommendations/recommendation.h"
%include "ubiservices/services/recommendations/recommendationsClient.h"
#endif // US_MODULE_RECOMMENDATIONS
TEMPLATE_OPTIONAL(int, int); // PrimaryStoreInventoryItem
#if defined(US_MODULE_STORE)
TEMPLATE_OPTIONAL(StoreOfferId, US_NS_SWIG::StoreOfferId);
TEMPLATE_OPTIONAL(StoreTransactionId, US_NS_SWIG::StoreTransactionId);
#endif
#if defined(US_MODULE_STORE) || defined(US_MODULE_SSI)
TEMPLATE_OPTIONAL(StoreInventoryId, US_NS_SWIG::StoreInventoryId);
#endif
#if defined(US_MODULE_USER)
%include "ubiservices/services/user/UserInfoError.h"
%include "ubiservices/services/user/legalOptins.h"
%include "ubiservices/services/user/userInfoCreation.h"
%include "ubiservices/services/user/userInfo.h"
%include "ubiservices/services/user/userLocalization.h"
%include "ubiservices/services/user/userClient.h"
#endif
#if defined(US_MODULE_CHALLENGE)
TEMPLATE_OPTIONAL(float, float); // ChallengeInfo
%include "ubiservices/services/challenge/challengeClient.h"
%include "ubiservices/services/challenge/challengeInfo.h"
%include "ubiservices/services/challenge/challengeProgression.h"
TEMPLATE_OPTIONAL(Vector_ChallengeId, US_NS_SWIG::Vector<US_NS_SWIG::ChallengeId>);
TEMPLATE_OPTIONAL(Vector_ChallengeInfoItem, US_NS_SWIG::Vector<US_NS_SWIG::ChallengeInfoItem>);
TEMPLATE_OPTIONAL(StatusChallengeProgression, US_NS_SWIG::StatusChallengeProgression);
#endif //US_MODULE_CHALLENGE
#if defined(US_MODULE_MATCHMAKING)
TEMPLATE_MAP_FULL(String_Json, Json, US_NS_SWIG::String, US_NS_SWIG::Json)
%include "ubiservices/services/matchmaking/matchmakingAuthenticatedSlotStatus.h"
%include "ubiservices/services/matchmaking/matchmakingFailReasonContext.h"
%include "ubiservices/services/matchmaking/matchmakingGameModeStatus.h"
%include "ubiservices/services/matchmaking/matchmakingMatchStatus.h"
%include "ubiservices/services/matchmaking/matchmakingReservedSlotStatus.h"
%include "ubiservices/services/matchmaking/matchmakingTypes.h"
%include "ubiservices/services/matchmaking/matchmakingClientStateInfo.h"
%include "ubiservices/services/matchmaking/matchmakingMatchStateInfo.h"
%include "ubiservices/services/matchmaking/matchmakingClient.h"
namespace US_NS_SWIG
{
struct GameModeInfo
{
MatchmakingGameModeStatus m_status;
};
}
%{
namespace US_NS
{
typedef US_NS::MatchmakingClient::GameModeInfo GameModeInfo;
}
%}
TEMPLATE_MAP_FULL(String_GameModeInfo, GameModeInfo, US_NS_SWIG::String, US_NS_SWIG::MatchmakingClient::GameModeInfo)
TEMPLATE_OPTIONAL(MatchmakingGameModeStatus, US_NS_SWIG::MatchmakingGameModeStatus);
TEMPLATE_OPTIONAL(MatchmakingAuthenticatedSlotStatus, US_NS_SWIG::MatchmakingAuthenticatedSlotStatus);
TEMPLATE_OPTIONAL(MatchmakingReservedSlotStatus, US_NS_SWIG::MatchmakingReservedSlotStatus);
TEMPLATE_VECTOR_FULL(MatchmakingReservedRosterSlot, US_NS_SWIG::MatchmakingReservedRosterSlot);
TEMPLATE_VECTOR_FULL(MatchmakingAuthenticatedRosterSlot, US_NS_SWIG::MatchmakingAuthenticatedRosterSlot);
TEMPLATE_VECTOR_FULL(MatchmakingRosterSlot, US_NS_SWIG::MatchmakingRosterSlot);
TEMPLATE_VECTOR_FULL(MatchmakingMatch, US_NS_SWIG::MatchmakingMatch);
TEMPLATE_VECTOR_FULL(MatchmakingHost, US_NS_SWIG::MatchmakingHost);
TEMPLATE_OPTIONAL(MatchmakingMatchDetails, US_NS_SWIG::MatchmakingMatchDetails);
TEMPLATE_OPTIONAL(MatchmakingClientStateInfo, US_NS_SWIG::MatchmakingClientStateInfo);
TEMPLATE_OPTIONAL(MatchmakingMatchStateInfo, US_NS_SWIG::MatchmakingMatchStateInfo);
TEMPLATE_OPTIONAL(MatchmakingFailReason, US_NS_SWIG::MatchmakingFailReason);
TEMPLATE_OPTIONAL(ReservedSlotId, US_NS_SWIG::ReservedSlotId);
#endif //US_MODULE_MATCHMAKING
#if defined(US_MODULE_STATS)
%include "ubiservices/services/stats/types.h"
%include "ubiservices/services/stats/statProfileFields.h"
%include "ubiservices/services/stats/statsInfoProfile.h"
%include "ubiservices/services/stats/statCommunityFields.h"
%include "ubiservices/services/stats/statsCommunity.h"
%include "ubiservices/services/stats/statsProfiles.h"
%include "ubiservices/services/stats/statCardCommunityFields.h"
%include "ubiservices/services/stats/statCardsCommunity.h"
%include "ubiservices/services/stats/statCardProfileFields.h"
%include "ubiservices/services/stats/statCardsProfiles.h"
%include "ubiservices/services/stats/statsClient.h"
TEMPLATE_OPTIONAL(Vector_StatCardProfileFieldPastPeriod, US_NS_SWIG::Vector<US_NS_SWIG::StatCardProfileFieldPastPeriod>);
#endif // US_MODULE_STATS
#if !defined(SWIG_SERVER)
%include "ubiservices/services/populations/relatedPopulationInfo.h"
%include "ubiservices/services/populations/populationInfo.h"
%include "ubiservices/services/populations/populationClient.h"
#endif
%include "ubiservices/services/remoteLog/remoteLog.h"
namespace US_NS_SWIG
{
struct Level
{
enum Enum
{
None = 1, //!< No logging
Debug, //!< Debug logs
Info, //!< Informative logs
Warning, //!< Warning logs
Error //!< Error logs
};
};
}
// The code inside %{%} gets copy-pasted as is to facade_wrap.cxx
// Using US_NS inside of %extend instead of US_NS_SWIG because we want to use the #ifdef inside config.h(c++) and not the one declared at the top of this document
%include "ubiservices/services/remoteLog/remoteLogClient.h"
%{
namespace US_NS
{
// SWIG thinks that Inner is a global class, so we need to trick the C++
// compiler into understanding this so called global type.
typedef US_NS::RemoteLogClient::Level Level;
}
%}
TEMPLATE_MAP_FULL(String_RemoteLogClientLevel, RemoteLogClientLevel, US_NS_SWIG::String, US_NS_SWIG::RemoteLogClient::Level);
#if defined(US_MODULE_FRIEND)
%include "ubiservices/services/friend/friendPlatform.h"
%include "ubiservices/services/friend/friendInfoClub.h"
#if defined(SWIG4CONSOLE) || defined(SWIG4STADIA)
%include "ubiservices/services/friend/swig/swig4console/friendInfoConsole.h"
#elif defined(SWIG4WIN)
%include "ubiservices/services/friend/win32/friendInfoConsole.h"
#elif defined(SWIG4ANDROID)
%include "ubiservices/services/friend/android/friendInfoConsole.h"
#elif defined(SWIG4IOS) || defined(SWIG4TVOS)
%include "ubiservices/services/friend/ios/friendInfoConsole.h"
#else
%include "ubiservices/services/friend/osx/friendInfoConsole.h"
#endif
%include "ubiservices/services/friend/friendInfo.h"
%include "ubiservices/services/friend/friendClient.h"
%include "ubiservices/services/friend/friendNotification.h"
TEMPLATE_NOTIF(FriendNotification, US_NS_SWIG::FriendNotification);
#endif //US_MODULE_FRIEND
#if defined(US_MODULE_GAMESPLAYED)
%include "ubiservices/services/gamesPlayed/gamePlayed.h"
%include "ubiservices/services/gamesPlayed/gamePlayedEx.h"
%include "ubiservices/services/gamesPlayed/gamesPlayedFilter.h"
%include "ubiservices/services/gamesPlayed/gamesPlayedClient.h"
#endif //US_MODULE_GAMESPLAYED
#if defined(US_MODULE_LEADERBOARD)
// Redefine nested class in global scope in order for SWIG to generate
// a proxy class. Only SWIG parses this definition.
namespace US_NS_SWIG
{
struct Standing
{
ProfileId m_profileId; //!< Profile Id associated with the rank.
uint32 m_rank; //!< Absolute rank in the leaderboard.
String m_value; //!< Stats value.
};
}
// The code inside %{%} gets copy-pasted as is to facade_wrap.cxx
// Using US_NS inside of %extend instead of US_NS_SWIG because we want to use the #ifdef inside config.h(c++) and not the one declared at the top of this document
%include "ubiservices/services/leaderboard/leaderboardInfo.h"
%{
namespace US_NS
{
// SWIG thinks that Inner is a global class, so we need to trick the C++
// compiler into understanding this so called global type.
typedef US_NS::LeaderboardInfo::Standing Standing;
}
%}
TEMPLATE_VECTOR_FULL(Standing, US_NS_SWIG::LeaderboardInfo::Standing);
%include "ubiservices/services/leaderboard/leaderboardPrediction.h"
%include "ubiservices/services/leaderboard/leaderboardClient.h"
#endif // US_MODULE_LEADERBOARD
#if defined(US_MODULE_LOCALIZATION)
%include "ubiservices/services/localization/localizationAllMetadata.h"
%include "ubiservices/services/localization/localizationStringInfo.h"
%include "ubiservices/services/localization/localizationInfo.h"
%include "ubiservices/services/localization/localizationClient.h"
#endif //US_MODULE_LOCALIZATION
#if !defined(SWIG_SERVER)
%include "ubiservices/services/notification/connectionInfo.h"
%include "ubiservices/services/notification/connectionInfoOwn.h"
%include "ubiservices/services/notification/notificationCustom.h"
%include "ubiservices/services/notification/notificationUbiServices.h"
%include "ubiservices/services/notification/notificationOutgoing.h"
TEMPLATE_NOTIF(NotificationUbiServices, US_NS_SWIG::NotificationUbiServices);
TEMPLATE_NOTIF(NotificationCustom, US_NS_SWIG::NotificationCustom);
%include "ubiservices/services/notification/notificationClient.h"
#endif
%include "ubiservices/services/parameters/featureSwitchId.h"
TEMPLATE_NOTIF(ParametersNotification, US_NS_SWIG::ParametersNotification);
%include "ubiservices/services/parameters/parametersNotification.h"
%include "ubiservices/services/parameters/parametersGroupInfo.h"
%include "ubiservices/services/parameters/parametersClient.h"
%include "ubiservices/services/parameters/parametersNotification.h"
#if defined(US_MODULE_ENTITY)
%include "ubiservices/services/entity/extendedStorageProvider.h"
%include "ubiservices/services/entity/entityProfile.h"
%include "ubiservices/services/entity/entitySpace.h"
#endif //US_MODULE_ENTITY
#if defined(US_PRIMARY_STORE_ENABLED)
#if defined(SWIG4WIN)
%include "ubiservices/services/primaryStore/primaryStoreItemTag.h"
TEMPLATE_VECTOR_ENUM(PrimaryStoreItemTag, US_NS_SWIG::PrimaryStoreItemTag);
#endif
%include "ubiservices/services/primaryStore/primaryStoreItemAvailability.h"
%include "ubiservices/services/primaryStore/primaryStoreItem.h"
#endif
#if defined(US_PRIMARY_STORE_ENABLED) || defined(US_PRIMARY_STORE_MOBILE_ENABLED)
%include "ubiservices/services/secondaryStore/expirationDetail.h" // Required before inventoryElement.h
%include "ubiservices/services/secondaryStore/inventoryElement.h" // Required before transactionInfo.h
%include "ubiservices/services/secondaryStore/transactionInfo.h"
%include "ubiservices/services/secondaryStore/compressedDataAll.h"
%include "ubiservices/services/secondaryStore/transactionErrorInfo.h"
%include "ubiservices/services/secondaryStore/inventoryUpdatePrimaryStore.h"
%include "ubiservices/services/primaryStore/primaryStoreClient.h"
#endif
%include "ubiservices/services/http/httpStreamNotification.h"
%include "ubiservices/services/http/httpBuffer.h"
%include "ubiservices/services/http/httpStreamContext.h"
%include "ubiservices/services/http/request/httpStreamGet.h"
%include "ubiservices/services/http/request/httpStreamPut.h"
%include "ubiservices/services/http/request/httpStreamPatch.h"
%include "ubiservices/services/http/request/httpStreamPost.h"
//////////// Secondary Store - Begin
#if defined(US_MODULE_STORE)
// The code inside %{%} gets copy-pasted as is to facade_wrap.cxx
// Using US_NS inside of %extend instead of US_NS_SWIG because we want to use the #ifdef inside config.h(c++) and not the one declared at the top of this document
%include "ubiservices/services/secondaryStore/offerPossibleItem.h"
%{
namespace US_NS
{
// SWIG thinks that Inner is a global class, so we need to trick the C++
// compiler into understanding this so called global type.
typedef US_NS::OfferPossibleItem::DefaultDraw DefaultDraw;
}
%}
TEMPLATE_OPTIONAL(DefaultDraw, US_NS_SWIG::OfferPossibleItem::DefaultDraw);
%include "ubiservices/services/secondaryStore/inventoryTransactionItem.h"
%include "ubiservices/services/secondaryStore/inventoryTransactionOffer.h"
%include "ubiservices/services/secondaryStore/inventoryTransactionAdditionalDetails.h"
%include "ubiservices/services/secondaryStore/inventoryTransaction.h"
%include "ubiservices/services/secondaryStore/searchFilterStoreItem.h"
%include "ubiservices/services/secondaryStore/storeItemsMapping.h"
%include "ubiservices/services/secondaryStore/secondaryStoreAsset.h"
%include "ubiservices/services/secondaryStore/secondaryStoreLocalization.h"
%include "ubiservices/services/secondaryStore/offerDynamicItemsGroup.h"
%include "ubiservices/services/secondaryStore/offerElementReplacement.h"
%include "ubiservices/services/secondaryStore/offerElement.h"
%include "ubiservices/services/secondaryStore/offerReplacementTransaction.h"
%include "ubiservices/services/secondaryStore/offerSpace.h"
%include "ubiservices/services/secondaryStore/storeItem.h"
%include "ubiservices/services/secondaryStore/expirationDetail.h" // Required before inventoryElement.h
%include "ubiservices/services/secondaryStore/inventoryElement.h" // Required before transactionInfo.h
%include "ubiservices/services/secondaryStore/transactionInfo.h"
%include "ubiservices/services/secondaryStore/compressedDataAll.h"
%include "ubiservices/services/secondaryStore/transactionErrorInfo.h"
%include "ubiservices/services/secondaryStore/inventoryUpdatePrimaryStore.h"
%include "ubiservices/services/secondaryStoreInventoryRules/secondaryStoreInventoryRulesExecution.h"
TEMPLATE_VECTOR_FULL(SecondaryStoreInventoryRulesExecutedRule, US_NS::SecondaryStoreInventoryRulesExecutedRule);
TEMPLATE_OPTIONAL(SecondaryStoreInventoryRulesFailedExecution, US_NS::SecondaryStoreInventoryRulesFailedExecution);
TEMPLATE_VECTOR_FULL(SecondaryStoreInventoryRulesItemModified, US_NS::SecondaryStoreInventoryRulesItemModified);
%include "ubiservices/services/secondaryStore/secondaryStoreNotification.h"
TEMPLATE_NOTIF(SecondaryStoreNotification, US_NS_SWIG::SecondaryStoreNotification);
TEMPLATE_VECTOR_FULL(InventoryTransactionItem, US_NS_SWIG::InventoryTransactionItem);
TEMPLATE_VECTOR_FULL(InventoryTransactionAdditionalDetails, US_NS_SWIG::InventoryTransactionAdditionalDetails);
TEMPLATE_OPTIONAL(InventoryTransactionOffer, US_NS_SWIG::InventoryTransactionOffer);
%template(AsyncResult_Vector_InventoryTransaction) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::InventoryTransaction>>;
namespace US_NS_SWIG
{
struct FieldsRequested
{
enum Enum
{
All, // All fields (compressedItems,lastModified,...)
Metadata, // Metadata fields only (lastModified,sha256,md5)
ENUM_END,
ENUM_COUNT = ENUM_END
};
};
}
// The code inside %{%} gets copy-pasted as is to facade_wrap.cxx
// Using US_NS inside of %extend instead of US_NS_SWIG because we want to use the #ifdef inside config.h(c++) and not the one declared at the top of this document
%include "ubiservices/services/secondaryStore/secondaryStoreClient.h"
%{
namespace US_NS
{
// SWIG thinks that Inner is a global class, so we need to trick the C++
// compiler into understanding this so called global type.
typedef US_NS::SecondaryStoreClient::FieldsRequested FieldsRequested;
}
%}
#endif // US_MODULE_STORE
//////////// Secondary Store - End
#if defined(US_MODULE_ENTITY)
// EntityStreamContext.cs(44,40,44,55): warning CS0108:
// 'EntityStreamContext.popNotification()' hides inherited member 'HttpStreamContext.popNotification()'.
// Use the new keyword if hiding was intended.
%ignore US_NS_SWIG::EntityStreamContext::popNotification;
%include "ubiservices/services/entity/entityStreamContext.h"
%extend US_NS_SWIG::EntityStreamContext
{
EntityStreamNotification::Code popNotificationStream()
{
return $self->popNotification();
}
}
// Using US_NS inside of %extend instead of US_NS_SWIG because we want to use the #ifdef inside config.h(c++) and not the one declared at the top of this document
%include "ubiservices/services/entity/entityCreation.h"
%extend US_NS_SWIG::EntityCreation
{
EntityCreation(const char* type, const char* name, const const char* jsonData, const Vector<String>& tags = Vector<String>(), const SpaceId& spaceId = SpaceId())
{
US_NS::EntityCreation* instance = new US_NS::EntityCreation(type, name, jsonData, tags, spaceId);
return instance;
}
}
%include "ubiservices/services/entity/entityClient.h"
#endif
#if defined(US_MODULE_STORE)
// Redefine nested class in global scope in order for SWIG to generate
// a proxy class. Only SWIG parses this definition.
namespace US_NS_SWIG
{
struct DefaultDraw
{
Vector<String> m_tags;
uint32 m_maximumQuantity;
uint32 m_minimumQuantity;
};
}
#endif //US_MODULE_STORE
#if defined(US_MODULE_SSI)
TEMPLATE_OPTIONAL(StoreItemInstanceId, US_NS_SWIG::StoreItemInstanceId);
%include "ubiservices/services/secondaryStoreInstantiation/storeAttribute.h"
%include "ubiservices/services/secondaryStoreInstantiation/storeAttributeTypeConstants.h"
%include "ubiservices/services/secondaryStoreInstantiation/storeAttributeSpace.h"
%include "ubiservices/services/secondaryStoreInstantiation/storeItemInstance.h"
%include "ubiservices/services/secondaryStoreInstantiation/storeItemInstanceTransaction.h"
%include "ubiservices/services/secondaryStoreInstantiation/storeListOfAttributes.h"
%include "ubiservices/services/secondaryStoreInstantiation/storeRule.h"
%include "ubiservices/services/secondaryStoreInstantiation/storeInstancesTransaction.h"
%include "ubiservices/services/secondaryStoreInstantiation/secondaryStoreInstantiationNotification.h"
TEMPLATE_NOTIF(SecondaryStoreInstantiationNotification, US_NS_SWIG::SecondaryStoreInstantiationNotification);
%include "ubiservices/services/secondaryStoreInstantiation/secondaryStoreInstantiationClient.h"
#endif
%include "ubiservices/serverTimeHelper.h"
%include "ubiservices/core/helpers/platformHelper/platformHelper.h"
%include "ubiservices/core/helpers/platformHelper/platformState.h"
%include "ubiservices/loggingHelper.h"
#if defined(SWIG4XONE)
%include "ubiservices/core/helpers/platformHelper/xone/platformHelper.h"
#elif defined(SWIG4PSAPI)
%include "ubiservices/core/helpers/platformHelper/psApi/platformHelper.h"
#elif defined(SWIG4PS4)
%include "ubiservices/core/helpers/platformHelper/ps4/platformHelper.h"
#elif defined(SWIG4SWITCH)
%include "ubiservices/core/helpers/platformHelper/nnx/platformHelper.h"
#elif defined(SWIG4STADIA)
%include "ubiservices/core/helpers/platformHelper/stadia/platformHelper.h"
#elif defined(SWIG4WIN)
%include "ubiservices/core/helpers/platformHelper/win32/platformHelper.h"
#elif defined(SWIG4OSX)
%include "ubiservices/core/helpers/platformHelper/osx/platformHelper.h"
#elif defined(SWIG4ANDROID)
%include "ubiservices/core/helpers/platformHelper/android/platformHelper.h"
#elif defined(SWIG4IOS) || defined(SWIG4TVOS)
%include "ubiservices/core/helpers/platformHelper/ios/platformHelper.h"
#elif defined(SWIG4LINUX)
%include "ubiservices/core/helpers/platformHelper/linux/platformHelper.h"
#endif
#if !defined(SWIG_SERVER)
%include "ubiservices/stateNotification.h"
#endif
//////////// Player Online Status - Begin
#if defined(US_MODULE_PLAYER_ONLINE_STATUS)
%include "ubiservices/services/playerOnlineStatus/playerOnlineStatus.h"
%include "ubiservices/services/playerOnlineStatus/playerOnlineStatusConnectionInfo.h"
%include "ubiservices/services/playerOnlineStatus/playerOnlineStatusInfo.h"
%include "ubiservices/services/playerOnlineStatus/playerOnlineStatusClient.h"
TEMPLATE_VECTOR_FULL(PlayerOnlineStatusConnectionInfo, US_NS_SWIG::PlayerOnlineStatusConnectionInfo);
TEMPLATE_MAP_FULL(UserId_PlayerOnlineStatusInfo, PlayerOnlineStatusInfo, US_NS_SWIG::UserId, US_NS_SWIG::PlayerOnlineStatusInfo);
%template(AsyncResult_PlayerOnlineStatusInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::PlayerOnlineStatusInfo>;
%template(AsyncResult_Map_UserId_PlayerOnlineStatusInfo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Map<US_NS_SWIG::UserId, US_NS_SWIG::PlayerOnlineStatusInfo> >;
#else
%ignore US_NS_SWIG::Facade::getPlayerOnlineStatusClient(); // ignored if module is not defined
#endif
%ignore US_NS_SWIG::Facade::getPlayerOnlineStatusClient() const; // always ignored to avoid a warning about overloaded method (const and no const)
//////////// Player Online Status - End
//////////// User Generated Contents UGC - Begin
#if defined(US_MODULE_UGC)
%include "ubiservices/services/userGeneratedContents/ugcContentId.h"
%include "ubiservices/services/userGeneratedContents/ugcCategory.h"
%include "ubiservices/services/userGeneratedContents/ugcTypeId.h"
%include "ubiservices/services/userGeneratedContents/ugcConfigs.h"
%include "ubiservices/services/userGeneratedContents/ugcRatings.h"
%include "ubiservices/services/userGeneratedContents/ugcFavorites.h"
%include "ubiservices/services/userGeneratedContents/ugcSortingBy.h"
%include "ubiservices/services/userGeneratedContents/ugcThumbnail.h"
%include "ubiservices/services/userGeneratedContents/ugcStorageInfoOwn.h"
%include "ubiservices/services/userGeneratedContents/ugcVisibility.h"
%include "ubiservices/services/userGeneratedContents/ugcPhotoMimeType.h"
%include "ubiservices/services/userGeneratedContents/ugcExternalVideo.h"
%include "ubiservices/services/userGeneratedContents/ugcPhoto.h"
%include "ubiservices/services/userGeneratedContents/ugcPhotoCreationParams.h"
%include "ubiservices/services/userGeneratedContents/ugcPhotoCreation.h"
%include "ubiservices/services/userGeneratedContents/ugcPhotoOwn.h"
%include "ubiservices/services/userGeneratedContents/ugcPhotoUpdateParams.h"
%include "ubiservices/services/userGeneratedContents/userGeneratedContentsClient.h"
EXTEND_GUID_CTR(UgcContentId);
TEMPLATE_VECTOR_FULL(UgcTypeId, US_NS_SWIG::UgcTypeId);
TEMPLATE_VECTOR_FULL(UgcContentId, US_NS_SWIG::UgcContentId);
TEMPLATE_VECTOR_FULL(UgcCategoryIds, US_NS_SWIG::UgcCategoryIds);
TEMPLATE_VECTOR_FULL(UgcExternalVideo, US_NS_SWIG::UgcExternalVideo);
TEMPLATE_VECTOR_FULL(UgcPhoto, US_NS_SWIG::UgcPhoto);
TEMPLATE_VECTOR_FULL(UgcPhotoOwn, US_NS_SWIG::UgcPhotoOwn);
TEMPLATE_MAP_FULL(UgcContentId_UgcRatingValue, UgcRatingValue, US_NS_SWIG::UgcContentId, US_NS_SWIG::UgcRatingValue);
TEMPLATE_MAP_FULL(UgcCategoryId_UgcSubCategory, UgcSubCategory, US_NS_SWIG::UgcCategoryId, US_NS_SWIG::UgcSubCategory);
TEMPLATE_MAP_FULL(UgcCategoryId_UgcMainCategory, UgcMainCategory, US_NS_SWIG::UgcCategoryId, US_NS_SWIG::UgcMainCategory);
TEMPLATE_MAP_FULL(UgcTypeId_UgcMapCategories, UgcMapCategories, US_NS_SWIG::UgcTypeId, US_NS_SWIG::UgcMapCategories);
%template(AsyncResult_Vector_UgcExternalVideo) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::UgcExternalVideo>>;
%template(AsyncResult_Map_UgcContentId_UgcRatingValue) US_NS_SWIG::AsyncResult<US_NS_SWIG::Map<US_NS_SWIG::UgcContentId, US_NS_SWIG::UgcRatingValue>>;
%template(AsyncResult_Vector_UgcContentId) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::UgcContentId>>;
%template(AsyncResult_UgcConfigs) US_NS_SWIG::AsyncResult<US_NS_SWIG::UgcConfigs>;
%template(AsyncResult_Vector_UgcPhoto) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::UgcPhoto>>;
%template(AsyncResult_UgcPhotoCreation) US_NS_SWIG::AsyncResult<US_NS_SWIG::UgcPhotoCreation>;
%template(AsyncResult_Vector_UgcPhotoOwn) US_NS_SWIG::AsyncResult<US_NS_SWIG::Vector<US_NS_SWIG::UgcPhotoOwn>>;
%template(AsyncResult_UgcPhotoOwn) US_NS_SWIG::AsyncResult<US_NS_SWIG::UgcPhotoOwn>;
// Notes:
// c++ enum class were a problem when used in vectors or map. In C# only the enum type exists, so swig converts the enum class to enum.
// But because of the use in vectors and maps it leaded to an issue when building the dll.
// The solution used here was to modify the definition of UgcTypeId and UgcRatingValue depending on compilation target (US_UNITY3D).
// Also UgcConfigs was originally a map containing a map. It still is, but devided in two typedef, one for each map. Otherwise there were swig parsing issues.
#endif
//////////// User Generated Contents UGC - End
//////////// Facade - Begin (needs to be last to be included, because of all the "ignores" that need to be declared before)
%typemap(cscode) US_NS_SWIG::Facade %{
public System.IntPtr getPointerForRDV()
{
return swigCPtr.Handle;
}
%}
%include "ubiservices/facade.h"
//////////// Facade - End
%{
#if !defined(US_TARGET_PS4) && !defined(US_TARGET_SWITCH) && !defined(US_TARGET_STADIA)
#pragma warning(default:4100) // 'self' : unreferenced formal parameter
#endif
%}
%init %{
#if !defined(US_TARGET_PS4) && !defined(US_TARGET_SWITCH) && !defined(US_TARGET_STADIA)
#pragma warning(default:4530) // C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
#endif
%}