connected-spaces-platform.unity.core 4.10.0-prerelease3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/NativePluginBuildProcessor.asmdef +16 -0
- package/Editor/NativePluginBuildProcessor.asmdef.meta +7 -0
- package/Editor/NativePluginBuildProcessor.cs +41 -0
- package/Editor/NativePluginBuildProcessor.cs.meta +11 -0
- package/Editor.meta +7 -0
- package/Source/CSPFoundation.cs +417 -0
- package/Source/CSPFoundation.cs.meta +11 -0
- package/Source/ClientUserAgent.cs +292 -0
- package/Source/ClientUserAgent.cs.meta +11 -0
- package/Source/Common/Array.cs +201 -0
- package/Source/Common/Array.cs.meta +11 -0
- package/Source/Common/CancellationToken.cs +175 -0
- package/Source/Common/CancellationToken.cs.meta +11 -0
- package/Source/Common/FileExtensions.cs +15317 -0
- package/Source/Common/FileExtensions.cs.meta +11 -0
- package/Source/Common/List.cs +275 -0
- package/Source/Common/List.cs.meta +11 -0
- package/Source/Common/Map.cs +283 -0
- package/Source/Common/Map.cs.meta +11 -0
- package/Source/Common/MimeTypeHelper.cs +210 -0
- package/Source/Common/MimeTypeHelper.cs.meta +11 -0
- package/Source/Common/MimeTypes.cs +10565 -0
- package/Source/Common/MimeTypes.cs.meta +11 -0
- package/Source/Common/Variant.cs +573 -0
- package/Source/Common/Variant.cs.meta +11 -0
- package/Source/Common/VariantType.cs +28 -0
- package/Source/Common/VariantType.cs.meta +11 -0
- package/Source/Common/Vector3.cs +268 -0
- package/Source/Common/Vector3.cs.meta +11 -0
- package/Source/Common/Vector4.cs +328 -0
- package/Source/Common/Vector4.cs.meta +11 -0
- package/Source/Common.meta +7 -0
- package/Source/ConnectedSpacesPlatform.Unity.Core.asmdef +14 -0
- package/Source/ConnectedSpacesPlatform.Unity.Core.asmdef.meta +7 -0
- package/Source/Csp.cs +83 -0
- package/Source/Csp.cs.meta +11 -0
- package/Source/EThirdPartyPlatform.cs +26 -0
- package/Source/EThirdPartyPlatform.cs.meta +11 -0
- package/Source/EndpointURIs.cs +258 -0
- package/Source/EndpointURIs.cs.meta +11 -0
- package/Source/Il2cppPreserver.cs +29 -0
- package/Source/Il2cppPreserver.cs.meta +11 -0
- package/Source/Multiplayer/AssetDetailBlobParams.cs +270 -0
- package/Source/Multiplayer/AssetDetailBlobParams.cs.meta +11 -0
- package/Source/Multiplayer/ComponentBase.cs +339 -0
- package/Source/Multiplayer/ComponentBase.cs.meta +11 -0
- package/Source/Multiplayer/ComponentType.cs +46 -0
- package/Source/Multiplayer/ComponentType.cs.meta +11 -0
- package/Source/Multiplayer/ComponentUpdateInfo.cs +161 -0
- package/Source/Multiplayer/ComponentUpdateInfo.cs.meta +11 -0
- package/Source/Multiplayer/ComponentUpdateType.cs +24 -0
- package/Source/Multiplayer/ComponentUpdateType.cs.meta +11 -0
- package/Source/Multiplayer/Components/AnimatedModelActions.cs +25 -0
- package/Source/Multiplayer/Components/AnimatedModelActions.cs.meta +11 -0
- package/Source/Multiplayer/Components/AnimatedModelPropertyKeys.cs +36 -0
- package/Source/Multiplayer/Components/AnimatedModelPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/AnimatedModelSpaceComponent.cs +793 -0
- package/Source/Multiplayer/Components/AnimatedModelSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/AudioPlaybackState.cs +25 -0
- package/Source/Multiplayer/Components/AudioPlaybackState.cs.meta +11 -0
- package/Source/Multiplayer/Components/AudioPropertyKeys.cs +33 -0
- package/Source/Multiplayer/Components/AudioPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/AudioSpaceComponent.cs +693 -0
- package/Source/Multiplayer/Components/AudioSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/AudioType.cs +24 -0
- package/Source/Multiplayer/Components/AudioType.cs.meta +11 -0
- package/Source/Multiplayer/Components/AvatarComponentPropertyKeys.cs +37 -0
- package/Source/Multiplayer/Components/AvatarComponentPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/AvatarPlayMode.cs +26 -0
- package/Source/Multiplayer/Components/AvatarPlayMode.cs.meta +11 -0
- package/Source/Multiplayer/Components/AvatarSpaceComponent.cs +946 -0
- package/Source/Multiplayer/Components/AvatarSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/AvatarState.cs +29 -0
- package/Source/Multiplayer/Components/AvatarState.cs.meta +11 -0
- package/Source/Multiplayer/Components/BillboardMode.cs +24 -0
- package/Source/Multiplayer/Components/BillboardMode.cs.meta +11 -0
- package/Source/Multiplayer/Components/ButtonPropertyKeys.cs +32 -0
- package/Source/Multiplayer/Components/ButtonPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ButtonSpaceComponent.cs +597 -0
- package/Source/Multiplayer/Components/ButtonSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/CollisionMode.cs +23 -0
- package/Source/Multiplayer/Components/CollisionMode.cs.meta +11 -0
- package/Source/Multiplayer/Components/CollisionPropertyKeys.cs +30 -0
- package/Source/Multiplayer/Components/CollisionPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/CollisionShape.cs +25 -0
- package/Source/Multiplayer/Components/CollisionShape.cs.meta +11 -0
- package/Source/Multiplayer/Components/CollisionSpaceComponent.cs +757 -0
- package/Source/Multiplayer/Components/CollisionSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/ConversationPropertyKeys.cs +30 -0
- package/Source/Multiplayer/Components/ConversationPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ConversationSpaceComponent.cs +1105 -0
- package/Source/Multiplayer/Components/ConversationSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/CustomComponentPropertyKeys.cs +24 -0
- package/Source/Multiplayer/Components/CustomComponentPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/CustomSpaceComponent.cs +370 -0
- package/Source/Multiplayer/Components/CustomSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/DisplayMode.cs +24 -0
- package/Source/Multiplayer/Components/DisplayMode.cs.meta +11 -0
- package/Source/Multiplayer/Components/ECommercePropertyKeys.cs +24 -0
- package/Source/Multiplayer/Components/ECommercePropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ECommerceSpaceComponent.cs +216 -0
- package/Source/Multiplayer/Components/ECommerceSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/ExternalLinkActions.cs +23 -0
- package/Source/Multiplayer/Components/ExternalLinkActions.cs.meta +11 -0
- package/Source/Multiplayer/Components/ExternalLinkPropertyKeys.cs +31 -0
- package/Source/Multiplayer/Components/ExternalLinkPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ExternalLinkSpaceComponent.cs +579 -0
- package/Source/Multiplayer/Components/ExternalLinkSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/FiducialMarkerPropertyKeys.cs +30 -0
- package/Source/Multiplayer/Components/FiducialMarkerPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/FiducialMarkerSpaceComponent.cs +569 -0
- package/Source/Multiplayer/Components/FiducialMarkerSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/FogMode.cs +24 -0
- package/Source/Multiplayer/Components/FogMode.cs.meta +11 -0
- package/Source/Multiplayer/Components/FogPropertyKeys.cs +36 -0
- package/Source/Multiplayer/Components/FogPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/FogSpaceComponent.cs +836 -0
- package/Source/Multiplayer/Components/FogSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/ImagePropertyKeys.cs +33 -0
- package/Source/Multiplayer/Components/ImagePropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ImageSpaceComponent.cs +693 -0
- package/Source/Multiplayer/Components/ImageSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IEnableableComponent.cs +24 -0
- package/Source/Multiplayer/Components/Interfaces/IEnableableComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IExternalResourceComponent.cs +28 -0
- package/Source/Multiplayer/Components/Interfaces/IExternalResourceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IPositionComponent.cs +24 -0
- package/Source/Multiplayer/Components/Interfaces/IPositionComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IRotationComponent.cs +24 -0
- package/Source/Multiplayer/Components/Interfaces/IRotationComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IScaleComponent.cs +24 -0
- package/Source/Multiplayer/Components/Interfaces/IScaleComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IShadowCasterComponent.cs +24 -0
- package/Source/Multiplayer/Components/Interfaces/IShadowCasterComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IThirdPartyComponentRef.cs +27 -0
- package/Source/Multiplayer/Components/Interfaces/IThirdPartyComponentRef.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/ITransformComponent.cs +27 -0
- package/Source/Multiplayer/Components/Interfaces/ITransformComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IVisibleComponent.cs +28 -0
- package/Source/Multiplayer/Components/Interfaces/IVisibleComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces.meta +7 -0
- package/Source/Multiplayer/Components/LightCookieType.cs +24 -0
- package/Source/Multiplayer/Components/LightCookieType.cs.meta +11 -0
- package/Source/Multiplayer/Components/LightPropertyKeys.cs +38 -0
- package/Source/Multiplayer/Components/LightPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/LightShadowType.cs +25 -0
- package/Source/Multiplayer/Components/LightShadowType.cs.meta +11 -0
- package/Source/Multiplayer/Components/LightSpaceComponent.cs +891 -0
- package/Source/Multiplayer/Components/LightSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/LightType.cs +25 -0
- package/Source/Multiplayer/Components/LightType.cs.meta +11 -0
- package/Source/Multiplayer/Components/LocomotionModel.cs +24 -0
- package/Source/Multiplayer/Components/LocomotionModel.cs.meta +11 -0
- package/Source/Multiplayer/Components/PortalPropertyKeys.cs +30 -0
- package/Source/Multiplayer/Components/PortalPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/PortalSpaceComponent.cs +371 -0
- package/Source/Multiplayer/Components/PortalSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/ReflectionPropertyKeys.cs +30 -0
- package/Source/Multiplayer/Components/ReflectionPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ReflectionShape.cs +23 -0
- package/Source/Multiplayer/Components/ReflectionShape.cs.meta +11 -0
- package/Source/Multiplayer/Components/ReflectionSpaceComponent.cs +515 -0
- package/Source/Multiplayer/Components/ReflectionSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/ScriptComponentPropertyKeys.cs +25 -0
- package/Source/Multiplayer/Components/ScriptComponentPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ScriptScope.cs +24 -0
- package/Source/Multiplayer/Components/ScriptScope.cs.meta +11 -0
- package/Source/Multiplayer/Components/ScriptSpaceComponent.cs +258 -0
- package/Source/Multiplayer/Components/ScriptSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/SplinePropertyKeys.cs +23 -0
- package/Source/Multiplayer/Components/SplinePropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/SplineSpaceComponent.cs +184 -0
- package/Source/Multiplayer/Components/SplineSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/StaticModelPropertyKeys.cs +32 -0
- package/Source/Multiplayer/Components/StaticModelPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/StaticModelSpaceComponent.cs +640 -0
- package/Source/Multiplayer/Components/StaticModelSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/VideoPlayerActions.cs +24 -0
- package/Source/Multiplayer/Components/VideoPlayerActions.cs.meta +11 -0
- package/Source/Multiplayer/Components/VideoPlayerPlaybackState.cs +25 -0
- package/Source/Multiplayer/Components/VideoPlayerPlaybackState.cs.meta +11 -0
- package/Source/Multiplayer/Components/VideoPlayerPropertyKeys.cs +42 -0
- package/Source/Multiplayer/Components/VideoPlayerPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/VideoPlayerSourceType.cs +25 -0
- package/Source/Multiplayer/Components/VideoPlayerSourceType.cs.meta +11 -0
- package/Source/Multiplayer/Components/VideoPlayerSpaceComponent.cs +1187 -0
- package/Source/Multiplayer/Components/VideoPlayerSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components.meta +7 -0
- package/Source/Multiplayer/ConnectionState.cs +25 -0
- package/Source/Multiplayer/ConnectionState.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/BaseMessageInfo.cs +293 -0
- package/Source/Multiplayer/Conversation/BaseMessageInfo.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/ConversationInfo.cs +205 -0
- package/Source/Multiplayer/Conversation/ConversationInfo.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/ConversationMessageType.cs +26 -0
- package/Source/Multiplayer/Conversation/ConversationMessageType.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/ConversationResult.cs +152 -0
- package/Source/Multiplayer/Conversation/ConversationResult.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/ConversationSystem.cs +784 -0
- package/Source/Multiplayer/Conversation/ConversationSystem.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/MessageCollectionResult.cs +175 -0
- package/Source/Multiplayer/Conversation/MessageCollectionResult.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/MessageInfo.cs +172 -0
- package/Source/Multiplayer/Conversation/MessageInfo.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/MessageResult.cs +150 -0
- package/Source/Multiplayer/Conversation/MessageResult.cs.meta +11 -0
- package/Source/Multiplayer/Conversation.meta +7 -0
- package/Source/Multiplayer/ConversationSystemParams.cs +165 -0
- package/Source/Multiplayer/ConversationSystemParams.cs.meta +11 -0
- package/Source/Multiplayer/EAssetChangeType.cs +27 -0
- package/Source/Multiplayer/EAssetChangeType.cs.meta +11 -0
- package/Source/Multiplayer/IEntityDeserialiser.cs +70 -0
- package/Source/Multiplayer/IEntityDeserialiser.cs.meta +11 -0
- package/Source/Multiplayer/IEntitySerialiser.cs +63 -0
- package/Source/Multiplayer/IEntitySerialiser.cs.meta +11 -0
- package/Source/Multiplayer/MultiplayerConnection.cs +964 -0
- package/Source/Multiplayer/MultiplayerConnection.cs.meta +11 -0
- package/Source/Multiplayer/PropertyUpdateInfo.cs +159 -0
- package/Source/Multiplayer/PropertyUpdateInfo.cs.meta +11 -0
- package/Source/Multiplayer/ReplicatedValue.cs +593 -0
- package/Source/Multiplayer/ReplicatedValue.cs.meta +11 -0
- package/Source/Multiplayer/ReplicatedValueType.cs +28 -0
- package/Source/Multiplayer/ReplicatedValueType.cs.meta +11 -0
- package/Source/Multiplayer/Script/EntityScript.cs +479 -0
- package/Source/Multiplayer/Script/EntityScript.cs.meta +11 -0
- package/Source/Multiplayer/Script.meta +7 -0
- package/Source/Multiplayer/SpaceEntity.cs +1202 -0
- package/Source/Multiplayer/SpaceEntity.cs.meta +11 -0
- package/Source/Multiplayer/SpaceEntitySystem.cs +1304 -0
- package/Source/Multiplayer/SpaceEntitySystem.cs.meta +11 -0
- package/Source/Multiplayer/SpaceEntityType.cs +25 -0
- package/Source/Multiplayer/SpaceEntityType.cs.meta +11 -0
- package/Source/Multiplayer/SpaceEntityUpdateFlags.cs +27 -0
- package/Source/Multiplayer/SpaceEntityUpdateFlags.cs.meta +11 -0
- package/Source/Multiplayer/SpaceTransform.cs +232 -0
- package/Source/Multiplayer/SpaceTransform.cs.meta +11 -0
- package/Source/Multiplayer.meta +7 -0
- package/Source/NativeClassWrapper.cs +42 -0
- package/Source/NativeClassWrapper.cs.meta +11 -0
- package/Source/ProgressEventArgs.cs +15 -0
- package/Source/ProgressEventArgs.cs.meta +11 -0
- package/Source/Ref.cs +28 -0
- package/Source/Ref.cs.meta +11 -0
- package/Source/Services/EResultCode.cs +26 -0
- package/Source/Services/EResultCode.cs.meta +11 -0
- package/Source/Services/ResultBase.cs +237 -0
- package/Source/Services/ResultBase.cs.meta +11 -0
- package/Source/Services/WebService.cs +91 -0
- package/Source/Services/WebService.cs.meta +11 -0
- package/Source/Services.meta +7 -0
- package/Source/Systems/Analytics/AnalyticsEvent.cs +288 -0
- package/Source/Systems/Analytics/AnalyticsEvent.cs.meta +11 -0
- package/Source/Systems/Analytics/AnalyticsEventInitialiser.cs +78 -0
- package/Source/Systems/Analytics/AnalyticsEventInitialiser.cs.meta +11 -0
- package/Source/Systems/Analytics/AnalyticsSystem.cs +116 -0
- package/Source/Systems/Analytics/AnalyticsSystem.cs.meta +11 -0
- package/Source/Systems/Analytics/IAnalyticsProvider.cs +85 -0
- package/Source/Systems/Analytics/IAnalyticsProvider.cs.meta +11 -0
- package/Source/Systems/Analytics.meta +7 -0
- package/Source/Systems/Assets/Asset.cs +698 -0
- package/Source/Systems/Assets/Asset.cs.meta +11 -0
- package/Source/Systems/Assets/AssetCollection.cs +605 -0
- package/Source/Systems/Assets/AssetCollection.cs.meta +11 -0
- package/Source/Systems/Assets/AssetCollectionResult.cs +119 -0
- package/Source/Systems/Assets/AssetCollectionResult.cs.meta +11 -0
- package/Source/Systems/Assets/AssetCollectionsResult.cs +161 -0
- package/Source/Systems/Assets/AssetCollectionsResult.cs.meta +11 -0
- package/Source/Systems/Assets/AssetDataResult.cs +175 -0
- package/Source/Systems/Assets/AssetDataResult.cs.meta +11 -0
- package/Source/Systems/Assets/AssetDataSource.cs +24 -0
- package/Source/Systems/Assets/AssetDataSource.cs.meta +11 -0
- package/Source/Systems/Assets/AssetResult.cs +131 -0
- package/Source/Systems/Assets/AssetResult.cs.meta +11 -0
- package/Source/Systems/Assets/AssetSystem.cs +1601 -0
- package/Source/Systems/Assets/AssetSystem.cs.meta +11 -0
- package/Source/Systems/Assets/AssetsResult.cs +148 -0
- package/Source/Systems/Assets/AssetsResult.cs.meta +11 -0
- package/Source/Systems/Assets/BufferAssetDataSource.cs +214 -0
- package/Source/Systems/Assets/BufferAssetDataSource.cs.meta +11 -0
- package/Source/Systems/Assets/EAssetCollectionType.cs +24 -0
- package/Source/Systems/Assets/EAssetCollectionType.cs.meta +11 -0
- package/Source/Systems/Assets/EAssetPlatform.cs +20 -0
- package/Source/Systems/Assets/EAssetPlatform.cs.meta +11 -0
- package/Source/Systems/Assets/EAssetType.cs +30 -0
- package/Source/Systems/Assets/EAssetType.cs.meta +11 -0
- package/Source/Systems/Assets/FileAssetDataSource.cs +177 -0
- package/Source/Systems/Assets/FileAssetDataSource.cs.meta +11 -0
- package/Source/Systems/Assets/LODAsset.cs +157 -0
- package/Source/Systems/Assets/LODAsset.cs.meta +11 -0
- package/Source/Systems/Assets/LODChain.cs +158 -0
- package/Source/Systems/Assets/LODChain.cs.meta +11 -0
- package/Source/Systems/Assets/LODChainResult.cs +131 -0
- package/Source/Systems/Assets/LODChainResult.cs.meta +11 -0
- package/Source/Systems/Assets/UriResult.cs +193 -0
- package/Source/Systems/Assets/UriResult.cs.meta +11 -0
- package/Source/Systems/Assets.meta +7 -0
- package/Source/Systems/BooleanResult.cs +146 -0
- package/Source/Systems/BooleanResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/AddShopifyStoreResult.cs +112 -0
- package/Source/Systems/ECommerce/AddShopifyStoreResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/CartInfo.cs +233 -0
- package/Source/Systems/ECommerce/CartInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/CartInfoResult.cs +132 -0
- package/Source/Systems/ECommerce/CartInfoResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/CartLine.cs +197 -0
- package/Source/Systems/ECommerce/CartLine.cs.meta +11 -0
- package/Source/Systems/ECommerce/CheckoutInfo.cs +161 -0
- package/Source/Systems/ECommerce/CheckoutInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/CheckoutInfoResult.cs +117 -0
- package/Source/Systems/ECommerce/CheckoutInfoResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/CurrencyInfo.cs +161 -0
- package/Source/Systems/ECommerce/CurrencyInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/ECommerceSystem.cs +564 -0
- package/Source/Systems/ECommerce/ECommerceSystem.cs.meta +11 -0
- package/Source/Systems/ECommerce/ProductInfo.cs +341 -0
- package/Source/Systems/ECommerce/ProductInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/ProductInfoResult.cs +117 -0
- package/Source/Systems/ECommerce/ProductInfoResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/ProductMediaInfo.cs +269 -0
- package/Source/Systems/ECommerce/ProductMediaInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/ProductVariantInfo.cs +342 -0
- package/Source/Systems/ECommerce/ProductVariantInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/ShopifyStoreInfo.cs +269 -0
- package/Source/Systems/ECommerce/ShopifyStoreInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/ValidateShopifyStoreResult.cs +120 -0
- package/Source/Systems/ECommerce/ValidateShopifyStoreResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/VariantOptionInfo.cs +161 -0
- package/Source/Systems/ECommerce/VariantOptionInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce.meta +7 -0
- package/Source/Systems/EventTicketing/EventTicket.cs +378 -0
- package/Source/Systems/EventTicketing/EventTicket.cs.meta +11 -0
- package/Source/Systems/EventTicketing/EventTicketResult.cs +115 -0
- package/Source/Systems/EventTicketing/EventTicketResult.cs.meta +11 -0
- package/Source/Systems/EventTicketing/EventTicketingSystem.cs +563 -0
- package/Source/Systems/EventTicketing/EventTicketingSystem.cs.meta +11 -0
- package/Source/Systems/EventTicketing/EventTicketingVendor.cs +24 -0
- package/Source/Systems/EventTicketing/EventTicketingVendor.cs.meta +11 -0
- package/Source/Systems/EventTicketing/SpaceIsTicketedResult.cs +115 -0
- package/Source/Systems/EventTicketing/SpaceIsTicketedResult.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketStatus.cs +26 -0
- package/Source/Systems/EventTicketing/TicketStatus.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketedEvent.cs +305 -0
- package/Source/Systems/EventTicketing/TicketedEvent.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketedEventCollectionResult.cs +117 -0
- package/Source/Systems/EventTicketing/TicketedEventCollectionResult.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketedEventResult.cs +117 -0
- package/Source/Systems/EventTicketing/TicketedEventResult.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketedEventVendorAuthInfo.cs +248 -0
- package/Source/Systems/EventTicketing/TicketedEventVendorAuthInfo.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketedEventVendorAuthInfoResult.cs +115 -0
- package/Source/Systems/EventTicketing/TicketedEventVendorAuthInfoResult.cs.meta +11 -0
- package/Source/Systems/EventTicketing.meta +7 -0
- package/Source/Systems/GraphQL/GraphQLResult.cs +146 -0
- package/Source/Systems/GraphQL/GraphQLResult.cs.meta +11 -0
- package/Source/Systems/GraphQL/GraphQLSystem.cs +221 -0
- package/Source/Systems/GraphQL/GraphQLSystem.cs.meta +11 -0
- package/Source/Systems/GraphQL.meta +7 -0
- package/Source/Systems/HTTPHeadersResult.cs +147 -0
- package/Source/Systems/HTTPHeadersResult.cs.meta +11 -0
- package/Source/Systems/Log/LogLevel.cs +28 -0
- package/Source/Systems/Log/LogLevel.cs.meta +11 -0
- package/Source/Systems/Log/LogSystem.cs +331 -0
- package/Source/Systems/Log/LogSystem.cs.meta +11 -0
- package/Source/Systems/Log.meta +7 -0
- package/Source/Systems/Maintenance/MaintenanceInfo.cs +211 -0
- package/Source/Systems/Maintenance/MaintenanceInfo.cs.meta +11 -0
- package/Source/Systems/Maintenance/MaintenanceInfoResult.cs +252 -0
- package/Source/Systems/Maintenance/MaintenanceInfoResult.cs.meta +11 -0
- package/Source/Systems/Maintenance/MaintenanceSystem.cs +154 -0
- package/Source/Systems/Maintenance/MaintenanceSystem.cs.meta +11 -0
- package/Source/Systems/Maintenance.meta +7 -0
- package/Source/Systems/NullResult.cs +122 -0
- package/Source/Systems/NullResult.cs.meta +11 -0
- package/Source/Systems/Script/ScriptSystem.cs +198 -0
- package/Source/Systems/Script/ScriptSystem.cs.meta +11 -0
- package/Source/Systems/Script.meta +7 -0
- package/Source/Systems/Settings/SettingsCollection.cs +191 -0
- package/Source/Systems/Settings/SettingsCollection.cs.meta +11 -0
- package/Source/Systems/Settings/SettingsCollectionResult.cs +119 -0
- package/Source/Systems/Settings/SettingsCollectionResult.cs.meta +11 -0
- package/Source/Systems/Settings/SettingsSystem.cs +999 -0
- package/Source/Systems/Settings/SettingsSystem.cs.meta +11 -0
- package/Source/Systems/Settings.meta +7 -0
- package/Source/Systems/Spaces/BasicSpace.cs +225 -0
- package/Source/Systems/Spaces/BasicSpace.cs.meta +11 -0
- package/Source/Systems/Spaces/BasicSpaceResult.cs +111 -0
- package/Source/Systems/Spaces/BasicSpaceResult.cs.meta +11 -0
- package/Source/Systems/Spaces/BasicSpacesResult.cs +144 -0
- package/Source/Systems/Spaces/BasicSpacesResult.cs.meta +11 -0
- package/Source/Systems/Spaces/InviteUserRoleInfo.cs +178 -0
- package/Source/Systems/Spaces/InviteUserRoleInfo.cs.meta +11 -0
- package/Source/Systems/Spaces/PendingInvitesResult.cs +117 -0
- package/Source/Systems/Spaces/PendingInvitesResult.cs.meta +11 -0
- package/Source/Systems/Spaces/Site.cs +259 -0
- package/Source/Systems/Spaces/Site.cs.meta +11 -0
- package/Source/Systems/Spaces/SiteResult.cs +114 -0
- package/Source/Systems/Spaces/SiteResult.cs.meta +11 -0
- package/Source/Systems/Spaces/SitesCollectionResult.cs +117 -0
- package/Source/Systems/Spaces/SitesCollectionResult.cs.meta +11 -0
- package/Source/Systems/Spaces/Space.cs +321 -0
- package/Source/Systems/Spaces/Space.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceAttributes.cs +27 -0
- package/Source/Systems/Spaces/SpaceAttributes.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceGeoLocation.cs +225 -0
- package/Source/Systems/Spaces/SpaceGeoLocation.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceGeoLocationResult.cs +162 -0
- package/Source/Systems/Spaces/SpaceGeoLocationResult.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceMetadataResult.cs +144 -0
- package/Source/Systems/Spaces/SpaceMetadataResult.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceResult.cs +160 -0
- package/Source/Systems/Spaces/SpaceResult.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceSystem.cs +2322 -0
- package/Source/Systems/Spaces/SpaceSystem.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceUserRole.cs +22 -0
- package/Source/Systems/Spaces/SpaceUserRole.cs.meta +11 -0
- package/Source/Systems/Spaces/SpacesMetadataResult.cs +146 -0
- package/Source/Systems/Spaces/SpacesMetadataResult.cs.meta +11 -0
- package/Source/Systems/Spaces/SpacesResult.cs +132 -0
- package/Source/Systems/Spaces/SpacesResult.cs.meta +11 -0
- package/Source/Systems/Spaces/UserRoleCollectionResult.cs +146 -0
- package/Source/Systems/Spaces/UserRoleCollectionResult.cs.meta +11 -0
- package/Source/Systems/Spaces/UserRoleInfo.cs +178 -0
- package/Source/Systems/Spaces/UserRoleInfo.cs.meta +11 -0
- package/Source/Systems/Spaces.meta +7 -0
- package/Source/Systems/Spatial/Anchor.cs +534 -0
- package/Source/Systems/Spatial/Anchor.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorCollectionResult.cs +117 -0
- package/Source/Systems/Spatial/AnchorCollectionResult.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorProvider.cs +20 -0
- package/Source/Systems/Spatial/AnchorProvider.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorResolution.cs +293 -0
- package/Source/Systems/Spatial/AnchorResolution.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorResolutionCollectionResult.cs +119 -0
- package/Source/Systems/Spatial/AnchorResolutionCollectionResult.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorResolutionResult.cs +119 -0
- package/Source/Systems/Spatial/AnchorResolutionResult.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorResult.cs +111 -0
- package/Source/Systems/Spatial/AnchorResult.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorSystem.cs +738 -0
- package/Source/Systems/Spatial/AnchorSystem.cs.meta +11 -0
- package/Source/Systems/Spatial/EPointOfInterestType.cs +20 -0
- package/Source/Systems/Spatial/EPointOfInterestType.cs.meta +11 -0
- package/Source/Systems/Spatial/GeoLocation.cs +202 -0
- package/Source/Systems/Spatial/GeoLocation.cs.meta +11 -0
- package/Source/Systems/Spatial/OlyAnchorPosition.cs +216 -0
- package/Source/Systems/Spatial/OlyAnchorPosition.cs.meta +11 -0
- package/Source/Systems/Spatial/OlyRotation.cs +250 -0
- package/Source/Systems/Spatial/OlyRotation.cs.meta +11 -0
- package/Source/Systems/Spatial/POICollectionResult.cs +117 -0
- package/Source/Systems/Spatial/POICollectionResult.cs.meta +11 -0
- package/Source/Systems/Spatial/POIResult.cs +113 -0
- package/Source/Systems/Spatial/POIResult.cs.meta +11 -0
- package/Source/Systems/Spatial/PointOfInterest.cs +463 -0
- package/Source/Systems/Spatial/PointOfInterest.cs.meta +11 -0
- package/Source/Systems/Spatial/PointOfInterestSystem.cs +314 -0
- package/Source/Systems/Spatial/PointOfInterestSystem.cs.meta +11 -0
- package/Source/Systems/Spatial.meta +7 -0
- package/Source/Systems/StringArrayResult.cs +146 -0
- package/Source/Systems/StringArrayResult.cs.meta +11 -0
- package/Source/Systems/StringResult.cs +149 -0
- package/Source/Systems/StringResult.cs.meta +11 -0
- package/Source/Systems/SystemBase.cs +84 -0
- package/Source/Systems/SystemBase.cs.meta +11 -0
- package/Source/Systems/SystemsManager.cs +474 -0
- package/Source/Systems/SystemsManager.cs.meta +11 -0
- package/Source/Systems/UInt64Result.cs +146 -0
- package/Source/Systems/UInt64Result.cs.meta +11 -0
- package/Source/Systems/Users/AgoraUserTokenParams.cs +326 -0
- package/Source/Systems/Users/AgoraUserTokenParams.cs.meta +11 -0
- package/Source/Systems/Users/AgoraUserTokenResult.cs +130 -0
- package/Source/Systems/Users/AgoraUserTokenResult.cs.meta +11 -0
- package/Source/Systems/Users/BasicProfile.cs +259 -0
- package/Source/Systems/Users/BasicProfile.cs.meta +11 -0
- package/Source/Systems/Users/BasicProfilesResult.cs +112 -0
- package/Source/Systems/Users/BasicProfilesResult.cs.meta +11 -0
- package/Source/Systems/Users/ELoginState.cs +25 -0
- package/Source/Systems/Users/ELoginState.cs.meta +11 -0
- package/Source/Systems/Users/EThirdPartyAuthenticationProviders.cs +28 -0
- package/Source/Systems/Users/EThirdPartyAuthenticationProviders.cs.meta +11 -0
- package/Source/Systems/Users/LoginState.cs +304 -0
- package/Source/Systems/Users/LoginState.cs.meta +11 -0
- package/Source/Systems/Users/LoginStateResult.cs +126 -0
- package/Source/Systems/Users/LoginStateResult.cs.meta +11 -0
- package/Source/Systems/Users/LoginTokenInfo.cs +224 -0
- package/Source/Systems/Users/LoginTokenInfo.cs.meta +11 -0
- package/Source/Systems/Users/LoginTokenReceived.cs +129 -0
- package/Source/Systems/Users/LoginTokenReceived.cs.meta +11 -0
- package/Source/Systems/Users/LogoutResult.cs +105 -0
- package/Source/Systems/Users/LogoutResult.cs.meta +11 -0
- package/Source/Systems/Users/PingResponseReceived.cs +106 -0
- package/Source/Systems/Users/PingResponseReceived.cs.meta +11 -0
- package/Source/Systems/Users/Profile.cs +367 -0
- package/Source/Systems/Users/Profile.cs.meta +11 -0
- package/Source/Systems/Users/ProfileResult.cs +110 -0
- package/Source/Systems/Users/ProfileResult.cs.meta +11 -0
- package/Source/Systems/Users/ProviderDetailsResult.cs +142 -0
- package/Source/Systems/Users/ProviderDetailsResult.cs.meta +11 -0
- package/Source/Systems/Users/ThirdPartyProviderDetails.cs +231 -0
- package/Source/Systems/Users/ThirdPartyProviderDetails.cs.meta +11 -0
- package/Source/Systems/Users/UserSystem.cs +1468 -0
- package/Source/Systems/Users/UserSystem.cs.meta +11 -0
- package/Source/Systems/Users.meta +7 -0
- package/Source/Systems/Voip/VoipSystem.cs +132 -0
- package/Source/Systems/Voip/VoipSystem.cs.meta +11 -0
- package/Source/Systems/Voip.meta +7 -0
- package/Source/Systems.meta +7 -0
- package/Source/Web/EResponseCodes.cs +83 -0
- package/Source/Web/EResponseCodes.cs.meta +11 -0
- package/Source/Web.meta +7 -0
- package/Source/WrapperHelper.cs +96 -0
- package/Source/WrapperHelper.cs.meta +11 -0
- package/Source.meta +7 -0
- package/android64/libConnectedSpacesPlatform.so +0 -0
- package/android64/libConnectedSpacesPlatform.so.meta +79 -0
- package/android64/libConnectedSpacesPlatform_D.so +0 -0
- package/android64/libConnectedSpacesPlatform_D.so.meta +79 -0
- package/android64.meta +7 -0
- package/package.json +13 -0
- package/package.json.meta +7 -0
- package/windows/ConnectedSpacesPlatform.dll +0 -0
- package/windows/ConnectedSpacesPlatform.dll.meta +79 -0
- package/windows/ConnectedSpacesPlatform_D.dll +0 -0
- package/windows/ConnectedSpacesPlatform_D.dll.meta +79 -0
- package/windows.meta +7 -0
|
@@ -0,0 +1,1468 @@
|
|
|
1
|
+
// WARNING: DO NOT EDIT THIS FILE! IT IS A GENERATED FILE AND
|
|
2
|
+
// ANY CHANGES YOU MAKE WILL BE OVERWRITTEN ON THE NEXT BUILD
|
|
3
|
+
|
|
4
|
+
#nullable enable annotations
|
|
5
|
+
|
|
6
|
+
using System;
|
|
7
|
+
using System.Collections.Generic;
|
|
8
|
+
using System.Reflection;
|
|
9
|
+
using System.Runtime.InteropServices;
|
|
10
|
+
using System.Security;
|
|
11
|
+
using System.Threading.Tasks;
|
|
12
|
+
|
|
13
|
+
namespace Csp.Systems
|
|
14
|
+
{
|
|
15
|
+
/// @ingroup User System
|
|
16
|
+
/// <summary>Public facing system that allows interfacing with Magnopus Connected Services' user service.</summary>
|
|
17
|
+
/// <remarks>Offers methods for creating accounts, authenticating, and retrieving user profiles.</remarks>
|
|
18
|
+
|
|
19
|
+
public class UserSystem : Csp.Systems.SystemBase
|
|
20
|
+
{
|
|
21
|
+
internal override string _safeTypeName { get; } = "csp_systems_UserSystem";
|
|
22
|
+
|
|
23
|
+
#region P/Invoke
|
|
24
|
+
#pragma warning disable IDE1006
|
|
25
|
+
|
|
26
|
+
[
|
|
27
|
+
DllImport(
|
|
28
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
29
|
+
"__Internal"
|
|
30
|
+
#elif DEBUG
|
|
31
|
+
"ConnectedSpacesPlatform_D"
|
|
32
|
+
#else
|
|
33
|
+
"ConnectedSpacesPlatform"
|
|
34
|
+
#endif
|
|
35
|
+
),
|
|
36
|
+
SuppressUnmanagedCodeSecurity
|
|
37
|
+
]
|
|
38
|
+
static extern void csp_systems_UserSystem_SetNewLoginTokenReceivedCallback_void_NewLoginTokenReceivedCallback(
|
|
39
|
+
IntPtr @class,
|
|
40
|
+
SetNewLoginTokenReceivedCallbackCallbackDelegate callback,
|
|
41
|
+
IntPtr callbackStateObject
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
[
|
|
45
|
+
DllImport(
|
|
46
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
47
|
+
"__Internal"
|
|
48
|
+
#elif DEBUG
|
|
49
|
+
"ConnectedSpacesPlatform_D"
|
|
50
|
+
#else
|
|
51
|
+
"ConnectedSpacesPlatform"
|
|
52
|
+
#endif
|
|
53
|
+
),
|
|
54
|
+
SuppressUnmanagedCodeSecurity
|
|
55
|
+
]
|
|
56
|
+
static extern void csp_systems_UserSystem_Dtor(IntPtr @class);
|
|
57
|
+
|
|
58
|
+
[
|
|
59
|
+
DllImport(
|
|
60
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
61
|
+
"__Internal"
|
|
62
|
+
#elif DEBUG
|
|
63
|
+
"ConnectedSpacesPlatform_D"
|
|
64
|
+
#else
|
|
65
|
+
"ConnectedSpacesPlatform"
|
|
66
|
+
#endif
|
|
67
|
+
),
|
|
68
|
+
SuppressUnmanagedCodeSecurity
|
|
69
|
+
]
|
|
70
|
+
static extern NativePointer csp_systems_UserSystem_GetLoginStateC_LoginStateRC(IntPtr @class);
|
|
71
|
+
|
|
72
|
+
[
|
|
73
|
+
DllImport(
|
|
74
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
75
|
+
"__Internal"
|
|
76
|
+
#elif DEBUG
|
|
77
|
+
"ConnectedSpacesPlatform_D"
|
|
78
|
+
#else
|
|
79
|
+
"ConnectedSpacesPlatform"
|
|
80
|
+
#endif
|
|
81
|
+
),
|
|
82
|
+
SuppressUnmanagedCodeSecurity
|
|
83
|
+
]
|
|
84
|
+
static extern void csp_systems_UserSystem_Login_void_StringRC_StringRC_StringRC_LoginStateResultCallback(
|
|
85
|
+
IntPtr @class,
|
|
86
|
+
string UserName,
|
|
87
|
+
string Email,
|
|
88
|
+
string Password,
|
|
89
|
+
LoginCallbackDelegate callback,
|
|
90
|
+
IntPtr callbackStateObject
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
[
|
|
94
|
+
DllImport(
|
|
95
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
96
|
+
"__Internal"
|
|
97
|
+
#elif DEBUG
|
|
98
|
+
"ConnectedSpacesPlatform_D"
|
|
99
|
+
#else
|
|
100
|
+
"ConnectedSpacesPlatform"
|
|
101
|
+
#endif
|
|
102
|
+
),
|
|
103
|
+
SuppressUnmanagedCodeSecurity
|
|
104
|
+
]
|
|
105
|
+
static extern void csp_systems_UserSystem_LoginWithToken_void_StringRC_StringRC_LoginStateResultCallback(
|
|
106
|
+
IntPtr @class,
|
|
107
|
+
string UserId,
|
|
108
|
+
string LoginToken,
|
|
109
|
+
LoginWithTokenCallbackDelegate callback,
|
|
110
|
+
IntPtr callbackStateObject
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
[
|
|
114
|
+
DllImport(
|
|
115
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
116
|
+
"__Internal"
|
|
117
|
+
#elif DEBUG
|
|
118
|
+
"ConnectedSpacesPlatform_D"
|
|
119
|
+
#else
|
|
120
|
+
"ConnectedSpacesPlatform"
|
|
121
|
+
#endif
|
|
122
|
+
),
|
|
123
|
+
SuppressUnmanagedCodeSecurity
|
|
124
|
+
]
|
|
125
|
+
static extern void csp_systems_UserSystem_LoginAsGuest_void_LoginStateResultCallback(
|
|
126
|
+
IntPtr @class,
|
|
127
|
+
LoginAsGuestCallbackDelegate callback,
|
|
128
|
+
IntPtr callbackStateObject
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
[
|
|
132
|
+
DllImport(
|
|
133
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
134
|
+
"__Internal"
|
|
135
|
+
#elif DEBUG
|
|
136
|
+
"ConnectedSpacesPlatform_D"
|
|
137
|
+
#else
|
|
138
|
+
"ConnectedSpacesPlatform"
|
|
139
|
+
#endif
|
|
140
|
+
),
|
|
141
|
+
SuppressUnmanagedCodeSecurity
|
|
142
|
+
]
|
|
143
|
+
static extern NativePointer csp_systems_UserSystem_GetSupportedThirdPartyAuthenticationProvidersC_Array(
|
|
144
|
+
IntPtr @class
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
[
|
|
148
|
+
DllImport(
|
|
149
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
150
|
+
"__Internal"
|
|
151
|
+
#elif DEBUG
|
|
152
|
+
"ConnectedSpacesPlatform_D"
|
|
153
|
+
#else
|
|
154
|
+
"ConnectedSpacesPlatform"
|
|
155
|
+
#endif
|
|
156
|
+
),
|
|
157
|
+
SuppressUnmanagedCodeSecurity
|
|
158
|
+
]
|
|
159
|
+
static extern void csp_systems_UserSystem_GetThirdPartyProviderAuthoriseURL_void_EThirdPartyAuthenticationProviders_StringRC_StringResultCallback(
|
|
160
|
+
IntPtr @class,
|
|
161
|
+
EThirdPartyAuthenticationProviders AuthProvider,
|
|
162
|
+
string RedirectURL,
|
|
163
|
+
GetThirdPartyProviderAuthoriseURLCallbackDelegate callback,
|
|
164
|
+
IntPtr callbackStateObject
|
|
165
|
+
);
|
|
166
|
+
|
|
167
|
+
[
|
|
168
|
+
DllImport(
|
|
169
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
170
|
+
"__Internal"
|
|
171
|
+
#elif DEBUG
|
|
172
|
+
"ConnectedSpacesPlatform_D"
|
|
173
|
+
#else
|
|
174
|
+
"ConnectedSpacesPlatform"
|
|
175
|
+
#endif
|
|
176
|
+
),
|
|
177
|
+
SuppressUnmanagedCodeSecurity
|
|
178
|
+
]
|
|
179
|
+
static extern void csp_systems_UserSystem_LoginToThirdPartyAuthenticationProvider_void_StringRC_StringRC_LoginStateResultCallback(
|
|
180
|
+
IntPtr @class,
|
|
181
|
+
string ThirdPartyToken,
|
|
182
|
+
string ThirdPartyStateId,
|
|
183
|
+
LoginToThirdPartyAuthenticationProviderCallbackDelegate callback,
|
|
184
|
+
IntPtr callbackStateObject
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
[
|
|
188
|
+
DllImport(
|
|
189
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
190
|
+
"__Internal"
|
|
191
|
+
#elif DEBUG
|
|
192
|
+
"ConnectedSpacesPlatform_D"
|
|
193
|
+
#else
|
|
194
|
+
"ConnectedSpacesPlatform"
|
|
195
|
+
#endif
|
|
196
|
+
),
|
|
197
|
+
SuppressUnmanagedCodeSecurity
|
|
198
|
+
]
|
|
199
|
+
static extern void csp_systems_UserSystem_LoginAsGuestWithId_void_StringRC_LoginStateResultCallback(
|
|
200
|
+
IntPtr @class,
|
|
201
|
+
string DeviceId,
|
|
202
|
+
LoginAsGuestWithIdCallbackDelegate callback,
|
|
203
|
+
IntPtr callbackStateObject
|
|
204
|
+
);
|
|
205
|
+
|
|
206
|
+
[
|
|
207
|
+
DllImport(
|
|
208
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
209
|
+
"__Internal"
|
|
210
|
+
#elif DEBUG
|
|
211
|
+
"ConnectedSpacesPlatform_D"
|
|
212
|
+
#else
|
|
213
|
+
"ConnectedSpacesPlatform"
|
|
214
|
+
#endif
|
|
215
|
+
),
|
|
216
|
+
SuppressUnmanagedCodeSecurity
|
|
217
|
+
]
|
|
218
|
+
static extern void csp_systems_UserSystem_ExchangeKey_void_StringRC_StringRC_LoginStateResultCallback(
|
|
219
|
+
IntPtr @class,
|
|
220
|
+
string UserId,
|
|
221
|
+
string Key,
|
|
222
|
+
ExchangeKeyCallbackDelegate callback,
|
|
223
|
+
IntPtr callbackStateObject
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
[
|
|
227
|
+
DllImport(
|
|
228
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
229
|
+
"__Internal"
|
|
230
|
+
#elif DEBUG
|
|
231
|
+
"ConnectedSpacesPlatform_D"
|
|
232
|
+
#else
|
|
233
|
+
"ConnectedSpacesPlatform"
|
|
234
|
+
#endif
|
|
235
|
+
),
|
|
236
|
+
SuppressUnmanagedCodeSecurity
|
|
237
|
+
]
|
|
238
|
+
static extern void csp_systems_UserSystem_Logout_void_LogoutResultCallback(
|
|
239
|
+
IntPtr @class,
|
|
240
|
+
LogoutCallbackDelegate callback,
|
|
241
|
+
IntPtr callbackStateObject
|
|
242
|
+
);
|
|
243
|
+
|
|
244
|
+
[
|
|
245
|
+
DllImport(
|
|
246
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
247
|
+
"__Internal"
|
|
248
|
+
#elif DEBUG
|
|
249
|
+
"ConnectedSpacesPlatform_D"
|
|
250
|
+
#else
|
|
251
|
+
"ConnectedSpacesPlatform"
|
|
252
|
+
#endif
|
|
253
|
+
),
|
|
254
|
+
SuppressUnmanagedCodeSecurity
|
|
255
|
+
]
|
|
256
|
+
static extern void csp_systems_UserSystem_CreateUser_void_StringRC_StringRC_StringRC_StringRC_bool_StringRC_StringRC_ProfileResultCallback(
|
|
257
|
+
IntPtr @class,
|
|
258
|
+
string UserName,
|
|
259
|
+
string DisplayName,
|
|
260
|
+
string Email,
|
|
261
|
+
string Password,
|
|
262
|
+
bool ReceiveNewsletter,
|
|
263
|
+
string RedirectUrl,
|
|
264
|
+
string InviteToken,
|
|
265
|
+
CreateUserCallbackDelegate callback,
|
|
266
|
+
IntPtr callbackStateObject
|
|
267
|
+
);
|
|
268
|
+
|
|
269
|
+
[
|
|
270
|
+
DllImport(
|
|
271
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
272
|
+
"__Internal"
|
|
273
|
+
#elif DEBUG
|
|
274
|
+
"ConnectedSpacesPlatform_D"
|
|
275
|
+
#else
|
|
276
|
+
"ConnectedSpacesPlatform"
|
|
277
|
+
#endif
|
|
278
|
+
),
|
|
279
|
+
SuppressUnmanagedCodeSecurity
|
|
280
|
+
]
|
|
281
|
+
static extern void csp_systems_UserSystem_UpgradeGuestAccount_void_StringRC_StringRC_StringRC_StringRC_ProfileResultCallback(
|
|
282
|
+
IntPtr @class,
|
|
283
|
+
string UserName,
|
|
284
|
+
string DisplayName,
|
|
285
|
+
string Email,
|
|
286
|
+
string Password,
|
|
287
|
+
UpgradeGuestAccountCallbackDelegate callback,
|
|
288
|
+
IntPtr callbackStateObject
|
|
289
|
+
);
|
|
290
|
+
|
|
291
|
+
[
|
|
292
|
+
DllImport(
|
|
293
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
294
|
+
"__Internal"
|
|
295
|
+
#elif DEBUG
|
|
296
|
+
"ConnectedSpacesPlatform_D"
|
|
297
|
+
#else
|
|
298
|
+
"ConnectedSpacesPlatform"
|
|
299
|
+
#endif
|
|
300
|
+
),
|
|
301
|
+
SuppressUnmanagedCodeSecurity
|
|
302
|
+
]
|
|
303
|
+
static extern void csp_systems_UserSystem_ConfirmUserEmail_void_NullResultCallback(
|
|
304
|
+
IntPtr @class,
|
|
305
|
+
ConfirmUserEmailCallbackDelegate callback,
|
|
306
|
+
IntPtr callbackStateObject
|
|
307
|
+
);
|
|
308
|
+
|
|
309
|
+
[
|
|
310
|
+
DllImport(
|
|
311
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
312
|
+
"__Internal"
|
|
313
|
+
#elif DEBUG
|
|
314
|
+
"ConnectedSpacesPlatform_D"
|
|
315
|
+
#else
|
|
316
|
+
"ConnectedSpacesPlatform"
|
|
317
|
+
#endif
|
|
318
|
+
),
|
|
319
|
+
SuppressUnmanagedCodeSecurity
|
|
320
|
+
]
|
|
321
|
+
static extern void csp_systems_UserSystem_ResetUserPassword_void_StringRC_StringRC_NullResultCallback(
|
|
322
|
+
IntPtr @class,
|
|
323
|
+
string Token,
|
|
324
|
+
string NewPassword,
|
|
325
|
+
ResetUserPasswordCallbackDelegate callback,
|
|
326
|
+
IntPtr callbackStateObject
|
|
327
|
+
);
|
|
328
|
+
|
|
329
|
+
[
|
|
330
|
+
DllImport(
|
|
331
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
332
|
+
"__Internal"
|
|
333
|
+
#elif DEBUG
|
|
334
|
+
"ConnectedSpacesPlatform_D"
|
|
335
|
+
#else
|
|
336
|
+
"ConnectedSpacesPlatform"
|
|
337
|
+
#endif
|
|
338
|
+
),
|
|
339
|
+
SuppressUnmanagedCodeSecurity
|
|
340
|
+
]
|
|
341
|
+
static extern void csp_systems_UserSystem_UpdateUserDisplayName_void_StringRC_StringRC_NullResultCallback(
|
|
342
|
+
IntPtr @class,
|
|
343
|
+
string UserId,
|
|
344
|
+
string NewUserDisplayName,
|
|
345
|
+
UpdateUserDisplayNameCallbackDelegate callback,
|
|
346
|
+
IntPtr callbackStateObject
|
|
347
|
+
);
|
|
348
|
+
|
|
349
|
+
[
|
|
350
|
+
DllImport(
|
|
351
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
352
|
+
"__Internal"
|
|
353
|
+
#elif DEBUG
|
|
354
|
+
"ConnectedSpacesPlatform_D"
|
|
355
|
+
#else
|
|
356
|
+
"ConnectedSpacesPlatform"
|
|
357
|
+
#endif
|
|
358
|
+
),
|
|
359
|
+
SuppressUnmanagedCodeSecurity
|
|
360
|
+
]
|
|
361
|
+
static extern void csp_systems_UserSystem_DeleteUser_void_StringRC_NullResultCallback(
|
|
362
|
+
IntPtr @class,
|
|
363
|
+
string UserId,
|
|
364
|
+
DeleteUserCallbackDelegate callback,
|
|
365
|
+
IntPtr callbackStateObject
|
|
366
|
+
);
|
|
367
|
+
|
|
368
|
+
[
|
|
369
|
+
DllImport(
|
|
370
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
371
|
+
"__Internal"
|
|
372
|
+
#elif DEBUG
|
|
373
|
+
"ConnectedSpacesPlatform_D"
|
|
374
|
+
#else
|
|
375
|
+
"ConnectedSpacesPlatform"
|
|
376
|
+
#endif
|
|
377
|
+
),
|
|
378
|
+
SuppressUnmanagedCodeSecurity
|
|
379
|
+
]
|
|
380
|
+
static extern void csp_systems_UserSystem_ForgotPassword_void_StringRC_StringRC_bool_NullResultCallback(
|
|
381
|
+
IntPtr @class,
|
|
382
|
+
string Email,
|
|
383
|
+
string RedirectUrl,
|
|
384
|
+
bool UseTokenChangePasswordUrl,
|
|
385
|
+
ForgotPasswordCallbackDelegate callback,
|
|
386
|
+
IntPtr callbackStateObject
|
|
387
|
+
);
|
|
388
|
+
|
|
389
|
+
[
|
|
390
|
+
DllImport(
|
|
391
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
392
|
+
"__Internal"
|
|
393
|
+
#elif DEBUG
|
|
394
|
+
"ConnectedSpacesPlatform_D"
|
|
395
|
+
#else
|
|
396
|
+
"ConnectedSpacesPlatform"
|
|
397
|
+
#endif
|
|
398
|
+
),
|
|
399
|
+
SuppressUnmanagedCodeSecurity
|
|
400
|
+
]
|
|
401
|
+
static extern void csp_systems_UserSystem_GetProfileByUserId_void_StringRC_ProfileResultCallback(
|
|
402
|
+
IntPtr @class,
|
|
403
|
+
string InUserId,
|
|
404
|
+
GetProfileByUserIdCallbackDelegate callback,
|
|
405
|
+
IntPtr callbackStateObject
|
|
406
|
+
);
|
|
407
|
+
|
|
408
|
+
[
|
|
409
|
+
DllImport(
|
|
410
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
411
|
+
"__Internal"
|
|
412
|
+
#elif DEBUG
|
|
413
|
+
"ConnectedSpacesPlatform_D"
|
|
414
|
+
#else
|
|
415
|
+
"ConnectedSpacesPlatform"
|
|
416
|
+
#endif
|
|
417
|
+
),
|
|
418
|
+
SuppressUnmanagedCodeSecurity
|
|
419
|
+
]
|
|
420
|
+
static extern void csp_systems_UserSystem_GetProfilesByUserId_void_ArrayRC_BasicProfilesResultCallback(
|
|
421
|
+
IntPtr @class,
|
|
422
|
+
IntPtr InUserIds,
|
|
423
|
+
GetProfilesByUserIdCallbackDelegate callback,
|
|
424
|
+
IntPtr callbackStateObject
|
|
425
|
+
);
|
|
426
|
+
|
|
427
|
+
[
|
|
428
|
+
DllImport(
|
|
429
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
430
|
+
"__Internal"
|
|
431
|
+
#elif DEBUG
|
|
432
|
+
"ConnectedSpacesPlatform_D"
|
|
433
|
+
#else
|
|
434
|
+
"ConnectedSpacesPlatform"
|
|
435
|
+
#endif
|
|
436
|
+
),
|
|
437
|
+
SuppressUnmanagedCodeSecurity
|
|
438
|
+
]
|
|
439
|
+
static extern void csp_systems_UserSystem_Ping_void_PingResponseReceivedCallback(
|
|
440
|
+
IntPtr @class,
|
|
441
|
+
PingCallbackDelegate callback,
|
|
442
|
+
IntPtr callbackStateObject
|
|
443
|
+
);
|
|
444
|
+
|
|
445
|
+
[
|
|
446
|
+
DllImport(
|
|
447
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
448
|
+
"__Internal"
|
|
449
|
+
#elif DEBUG
|
|
450
|
+
"ConnectedSpacesPlatform_D"
|
|
451
|
+
#else
|
|
452
|
+
"ConnectedSpacesPlatform"
|
|
453
|
+
#endif
|
|
454
|
+
),
|
|
455
|
+
SuppressUnmanagedCodeSecurity
|
|
456
|
+
]
|
|
457
|
+
static extern void csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_UserTokenResultCallback(
|
|
458
|
+
IntPtr @class,
|
|
459
|
+
IntPtr Params,
|
|
460
|
+
GetAgoraUserTokenCallbackDelegate callback,
|
|
461
|
+
IntPtr callbackStateObject
|
|
462
|
+
);
|
|
463
|
+
|
|
464
|
+
[
|
|
465
|
+
DllImport(
|
|
466
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
467
|
+
"__Internal"
|
|
468
|
+
#elif DEBUG
|
|
469
|
+
"ConnectedSpacesPlatform_D"
|
|
470
|
+
#else
|
|
471
|
+
"ConnectedSpacesPlatform"
|
|
472
|
+
#endif
|
|
473
|
+
),
|
|
474
|
+
SuppressUnmanagedCodeSecurity
|
|
475
|
+
]
|
|
476
|
+
static extern NativePointer csp_systems_UserSystem_Ctor();
|
|
477
|
+
|
|
478
|
+
#pragma warning restore IDE1006
|
|
479
|
+
#endregion
|
|
480
|
+
|
|
481
|
+
internal UserSystem(NativePointer ptr) : base(ptr) { }
|
|
482
|
+
|
|
483
|
+
public UserSystem(Csp.Systems.SystemBase baseInstance)
|
|
484
|
+
: base(new NativePointer(baseInstance._ptr, baseInstance._ownsPtr ? (byte)1 : (byte)0))
|
|
485
|
+
{
|
|
486
|
+
// Prevent previous instance from freeing underlying pointer when destroyed
|
|
487
|
+
baseInstance._ownsPtr = false;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
delegate void SetNewLoginTokenReceivedCallbackCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
491
|
+
|
|
492
|
+
delegate void LoginCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
493
|
+
|
|
494
|
+
delegate void LoginWithTokenCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
495
|
+
|
|
496
|
+
delegate void LoginAsGuestCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
497
|
+
|
|
498
|
+
delegate void GetThirdPartyProviderAuthoriseURLCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
499
|
+
|
|
500
|
+
delegate void LoginToThirdPartyAuthenticationProviderCallbackDelegate(
|
|
501
|
+
IntPtr _StateObject__,
|
|
502
|
+
NativePointer Result
|
|
503
|
+
);
|
|
504
|
+
|
|
505
|
+
delegate void LoginAsGuestWithIdCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
506
|
+
|
|
507
|
+
delegate void ExchangeKeyCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
508
|
+
|
|
509
|
+
delegate void LogoutCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
510
|
+
|
|
511
|
+
delegate void CreateUserCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
512
|
+
|
|
513
|
+
delegate void UpgradeGuestAccountCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
514
|
+
|
|
515
|
+
delegate void ConfirmUserEmailCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
516
|
+
|
|
517
|
+
delegate void ResetUserPasswordCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
518
|
+
|
|
519
|
+
delegate void UpdateUserDisplayNameCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
520
|
+
|
|
521
|
+
delegate void DeleteUserCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
522
|
+
|
|
523
|
+
delegate void ForgotPasswordCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
524
|
+
|
|
525
|
+
delegate void GetProfileByUserIdCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
526
|
+
|
|
527
|
+
delegate void GetProfilesByUserIdCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
528
|
+
|
|
529
|
+
delegate void PingCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
530
|
+
|
|
531
|
+
delegate void GetAgoraUserTokenCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
532
|
+
|
|
533
|
+
readonly List<GCHandle> eventHandles = new List<GCHandle>();
|
|
534
|
+
|
|
535
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
536
|
+
[AOT.MonoPInvokeCallback (typeof (SetNewLoginTokenReceivedCallbackCallbackDelegate))]
|
|
537
|
+
#endif
|
|
538
|
+
static void SetNewLoginTokenReceivedCallbackCallbackDelegateFunction(
|
|
539
|
+
IntPtr _StateObject__,
|
|
540
|
+
NativePointer _Result
|
|
541
|
+
) {
|
|
542
|
+
var _handle = (GCHandle)_StateObject__;
|
|
543
|
+
var _this = (UserSystem)_handle.Target;
|
|
544
|
+
_this.RealOnNewLoginTokenReceived?.Invoke(_this, new Csp.Systems.LoginTokenReceived(_Result));
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
static readonly SetNewLoginTokenReceivedCallbackCallbackDelegate OnNewLoginTokenReceivedDelegateInstance =
|
|
548
|
+
SetNewLoginTokenReceivedCallbackCallbackDelegateFunction;
|
|
549
|
+
|
|
550
|
+
bool OnNewLoginTokenReceivedInitialised = false;
|
|
551
|
+
event EventHandler<Csp.Systems.LoginTokenReceived>? RealOnNewLoginTokenReceived;
|
|
552
|
+
public event EventHandler<Csp.Systems.LoginTokenReceived> OnNewLoginTokenReceived
|
|
553
|
+
{
|
|
554
|
+
add
|
|
555
|
+
{
|
|
556
|
+
if (!OnNewLoginTokenReceivedInitialised)
|
|
557
|
+
{
|
|
558
|
+
var handle = GCHandle.Alloc(this);
|
|
559
|
+
csp_systems_UserSystem_SetNewLoginTokenReceivedCallback_void_NewLoginTokenReceivedCallback(
|
|
560
|
+
_ptr,
|
|
561
|
+
OnNewLoginTokenReceivedDelegateInstance,
|
|
562
|
+
(IntPtr)handle
|
|
563
|
+
);
|
|
564
|
+
eventHandles.Add(handle);
|
|
565
|
+
OnNewLoginTokenReceivedInitialised = true;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
RealOnNewLoginTokenReceived += value;
|
|
569
|
+
}
|
|
570
|
+
remove { RealOnNewLoginTokenReceived -= value; }
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
~UserSystem()
|
|
574
|
+
{
|
|
575
|
+
//RealDispose();
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
void RealDispose()
|
|
579
|
+
{
|
|
580
|
+
if (_ownsPtr && !_disposed)
|
|
581
|
+
{
|
|
582
|
+
csp_systems_UserSystem_Dtor(_ptr);
|
|
583
|
+
_disposed = true;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
_disposed = true;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
new public void Dispose()
|
|
590
|
+
{
|
|
591
|
+
RealDispose();
|
|
592
|
+
GC.SuppressFinalize(this);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/// <summary>Get the current login state.</summary>
|
|
596
|
+
/// <returns>Current login state</returns>
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
public Csp.Systems.LoginState GetLoginState()
|
|
600
|
+
{
|
|
601
|
+
var _result = new Csp.Systems.LoginState(csp_systems_UserSystem_GetLoginStateC_LoginStateRC(_ptr));
|
|
602
|
+
|
|
603
|
+
return _result;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
607
|
+
[AOT.MonoPInvokeCallback (typeof (LoginCallbackDelegate))]
|
|
608
|
+
#endif
|
|
609
|
+
static void LoginCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
610
|
+
{
|
|
611
|
+
var _handle = (GCHandle)_StateObject__;
|
|
612
|
+
var tcs = (TaskCompletionSource<Csp.Systems.LoginStateResult>)_handle.Target;
|
|
613
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
614
|
+
|
|
615
|
+
var task_result = new Csp.Systems.LoginStateResult(_Result);
|
|
616
|
+
|
|
617
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
618
|
+
{
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
tcs.SetResult(task_result);
|
|
623
|
+
_handle.Free();
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
static readonly LoginCallbackDelegate LoginDelegateInstance = LoginCallbackDelegateFunction;
|
|
627
|
+
|
|
628
|
+
/// <summary>Log in to Magnopus Connected Services services using a username-password or email-password combination.</summary>
|
|
629
|
+
/// <param name="UserName">Csp::common::string</param>
|
|
630
|
+
/// <param name="Email">Csp::common::string</param>
|
|
631
|
+
/// <param name="Password">Csp::common::string</param>
|
|
632
|
+
/// <returns>The result for the request</returns>
|
|
633
|
+
|
|
634
|
+
public Task<Csp.Systems.LoginStateResult> Login(string UserName, string Email, string Password)
|
|
635
|
+
{
|
|
636
|
+
var tcs = new TaskCompletionSource<Csp.Systems.LoginStateResult>(this);
|
|
637
|
+
var handle = GCHandle.Alloc(tcs);
|
|
638
|
+
|
|
639
|
+
csp_systems_UserSystem_Login_void_StringRC_StringRC_StringRC_LoginStateResultCallback(
|
|
640
|
+
_ptr,
|
|
641
|
+
UserName,
|
|
642
|
+
Email,
|
|
643
|
+
Password,
|
|
644
|
+
LoginDelegateInstance,
|
|
645
|
+
(IntPtr)handle
|
|
646
|
+
);
|
|
647
|
+
|
|
648
|
+
return tcs.Task;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
652
|
+
[AOT.MonoPInvokeCallback (typeof (LoginWithTokenCallbackDelegate))]
|
|
653
|
+
#endif
|
|
654
|
+
static void LoginWithTokenCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
655
|
+
{
|
|
656
|
+
var _handle = (GCHandle)_StateObject__;
|
|
657
|
+
var tcs = (TaskCompletionSource<Csp.Systems.LoginStateResult>)_handle.Target;
|
|
658
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
659
|
+
|
|
660
|
+
var task_result = new Csp.Systems.LoginStateResult(_Result);
|
|
661
|
+
|
|
662
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
663
|
+
{
|
|
664
|
+
return;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
tcs.SetResult(task_result);
|
|
668
|
+
_handle.Free();
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
static readonly LoginWithTokenCallbackDelegate LoginWithTokenDelegateInstance =
|
|
672
|
+
LoginWithTokenCallbackDelegateFunction;
|
|
673
|
+
|
|
674
|
+
/// <summary>Log in to Magnopus Connected Services using a login token</summary>
|
|
675
|
+
/// <remarks>The login token can be obtained after using the Login API with credentials and having registered a callback through</remarks>
|
|
676
|
+
/// <remarks>SetNewLoginTokenReceivedCallback. If the login is successful in the callback result the token and it's expiration time will be provided.</remarks>
|
|
677
|
+
/// <param name="UserId">The user id associated with this login token</param>
|
|
678
|
+
/// <param name="LoginToken">Token to be used for authenticating</param>
|
|
679
|
+
/// <returns>The result for the request</returns>
|
|
680
|
+
|
|
681
|
+
public Task<Csp.Systems.LoginStateResult> LoginWithToken(string UserId, string LoginToken)
|
|
682
|
+
{
|
|
683
|
+
var tcs = new TaskCompletionSource<Csp.Systems.LoginStateResult>(this);
|
|
684
|
+
var handle = GCHandle.Alloc(tcs);
|
|
685
|
+
|
|
686
|
+
csp_systems_UserSystem_LoginWithToken_void_StringRC_StringRC_LoginStateResultCallback(
|
|
687
|
+
_ptr,
|
|
688
|
+
UserId,
|
|
689
|
+
LoginToken,
|
|
690
|
+
LoginWithTokenDelegateInstance,
|
|
691
|
+
(IntPtr)handle
|
|
692
|
+
);
|
|
693
|
+
|
|
694
|
+
return tcs.Task;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
698
|
+
[AOT.MonoPInvokeCallback (typeof (LoginAsGuestCallbackDelegate))]
|
|
699
|
+
#endif
|
|
700
|
+
static void LoginAsGuestCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
701
|
+
{
|
|
702
|
+
var _handle = (GCHandle)_StateObject__;
|
|
703
|
+
var tcs = (TaskCompletionSource<Csp.Systems.LoginStateResult>)_handle.Target;
|
|
704
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
705
|
+
|
|
706
|
+
var task_result = new Csp.Systems.LoginStateResult(_Result);
|
|
707
|
+
|
|
708
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
709
|
+
{
|
|
710
|
+
return;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
tcs.SetResult(task_result);
|
|
714
|
+
_handle.Free();
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
static readonly LoginAsGuestCallbackDelegate LoginAsGuestDelegateInstance =
|
|
718
|
+
LoginAsGuestCallbackDelegateFunction;
|
|
719
|
+
|
|
720
|
+
/// <summary>Log in to Magnopus Connected Services as a guest.</summary>
|
|
721
|
+
/// <returns>The result for the request</returns>
|
|
722
|
+
|
|
723
|
+
public Task<Csp.Systems.LoginStateResult> LoginAsGuest()
|
|
724
|
+
{
|
|
725
|
+
var tcs = new TaskCompletionSource<Csp.Systems.LoginStateResult>(this);
|
|
726
|
+
var handle = GCHandle.Alloc(tcs);
|
|
727
|
+
|
|
728
|
+
csp_systems_UserSystem_LoginAsGuest_void_LoginStateResultCallback(
|
|
729
|
+
_ptr,
|
|
730
|
+
LoginAsGuestDelegateInstance,
|
|
731
|
+
(IntPtr)handle
|
|
732
|
+
);
|
|
733
|
+
|
|
734
|
+
return tcs.Task;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/// @ingroup Third Party Authentication
|
|
738
|
+
/// <summary>As a Connected Spaces Platform user the 3rd party authentication flow consists of two steps, first calling</summary>
|
|
739
|
+
/// <remarks>GetThirdPartyProviderAuthoriseURL followed by LoginToThirdPartyAuthenticationProvider You can see a Sequence Diagram with all the parties</remarks>
|
|
740
|
+
/// <remarks>involved including what a Client should be calling and when here https://miro.com/app/board/uXjVPflpu98=/.</remarks>
|
|
741
|
+
/// <summary>API to retrieve the Connected Spaces Platform supported 3rd party authentication providers</summary>
|
|
742
|
+
/// <returns>Array of Connected Spaces Platform supported 3rd party authentication providers</returns>
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
public Csp.Common.Array<Csp.Systems.EThirdPartyAuthenticationProviders> GetSupportedThirdPartyAuthenticationProviders()
|
|
746
|
+
{
|
|
747
|
+
var _result = new Csp.Common.Array<Csp.Systems.EThirdPartyAuthenticationProviders>(
|
|
748
|
+
csp_systems_UserSystem_GetSupportedThirdPartyAuthenticationProvidersC_Array(_ptr)
|
|
749
|
+
);
|
|
750
|
+
|
|
751
|
+
return _result;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
755
|
+
[AOT.MonoPInvokeCallback (typeof (GetThirdPartyProviderAuthoriseURLCallbackDelegate))]
|
|
756
|
+
#endif
|
|
757
|
+
static void GetThirdPartyProviderAuthoriseURLCallbackDelegateFunction(
|
|
758
|
+
IntPtr _StateObject__,
|
|
759
|
+
NativePointer _Result
|
|
760
|
+
) {
|
|
761
|
+
var _handle = (GCHandle)_StateObject__;
|
|
762
|
+
var tcs = (TaskCompletionSource<Csp.Systems.StringResult>)_handle.Target;
|
|
763
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
764
|
+
|
|
765
|
+
var task_result = new Csp.Systems.StringResult(_Result);
|
|
766
|
+
|
|
767
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
768
|
+
{
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
tcs.SetResult(task_result);
|
|
773
|
+
_handle.Free();
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
static readonly GetThirdPartyProviderAuthoriseURLCallbackDelegate GetThirdPartyProviderAuthoriseURLDelegateInstance =
|
|
777
|
+
GetThirdPartyProviderAuthoriseURLCallbackDelegateFunction;
|
|
778
|
+
|
|
779
|
+
/// <summary>First step of the 3rd party authentication flow</summary>
|
|
780
|
+
/// <remarks>If you call this API but for some reason you'd like to call this again, this is supported, the params you pass second time will replace the</remarks>
|
|
781
|
+
/// <remarks>ones you've passed initially</remarks>
|
|
782
|
+
/// <param name="AuthProvider">One of the supported authentication providers</param>
|
|
783
|
+
/// <param name="RedirectURL">The redirecturl you want to be used for this authentication flow</param>
|
|
784
|
+
/// <param name="Callback">Callback that contains the authorise url that the client should be navigating next before moving to the</param>
|
|
785
|
+
/// <returns>The result for the request</returns>
|
|
786
|
+
|
|
787
|
+
public Task<Csp.Systems.StringResult> GetThirdPartyProviderAuthoriseURL(
|
|
788
|
+
Csp.Systems.EThirdPartyAuthenticationProviders AuthProvider,
|
|
789
|
+
string RedirectURL
|
|
790
|
+
) {
|
|
791
|
+
var tcs = new TaskCompletionSource<Csp.Systems.StringResult>(this);
|
|
792
|
+
var handle = GCHandle.Alloc(tcs);
|
|
793
|
+
|
|
794
|
+
csp_systems_UserSystem_GetThirdPartyProviderAuthoriseURL_void_EThirdPartyAuthenticationProviders_StringRC_StringResultCallback(
|
|
795
|
+
_ptr,
|
|
796
|
+
AuthProvider,
|
|
797
|
+
RedirectURL,
|
|
798
|
+
GetThirdPartyProviderAuthoriseURLDelegateInstance,
|
|
799
|
+
(IntPtr)handle
|
|
800
|
+
);
|
|
801
|
+
|
|
802
|
+
return tcs.Task;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
806
|
+
[AOT.MonoPInvokeCallback (typeof (LoginToThirdPartyAuthenticationProviderCallbackDelegate))]
|
|
807
|
+
#endif
|
|
808
|
+
static void LoginToThirdPartyAuthenticationProviderCallbackDelegateFunction(
|
|
809
|
+
IntPtr _StateObject__,
|
|
810
|
+
NativePointer _Result
|
|
811
|
+
) {
|
|
812
|
+
var _handle = (GCHandle)_StateObject__;
|
|
813
|
+
var tcs = (TaskCompletionSource<Csp.Systems.LoginStateResult>)_handle.Target;
|
|
814
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
815
|
+
|
|
816
|
+
var task_result = new Csp.Systems.LoginStateResult(_Result);
|
|
817
|
+
|
|
818
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
819
|
+
{
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
tcs.SetResult(task_result);
|
|
824
|
+
_handle.Free();
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
static readonly LoginToThirdPartyAuthenticationProviderCallbackDelegate LoginToThirdPartyAuthenticationProviderDelegateInstance =
|
|
828
|
+
LoginToThirdPartyAuthenticationProviderCallbackDelegateFunction;
|
|
829
|
+
|
|
830
|
+
/// <summary>Second step of the 3rd party authentication flow</summary>
|
|
831
|
+
/// <remarks>Note: The Authentication Provider and the Redirect URL you've passed in the first step will be used now</remarks>
|
|
832
|
+
/// <param name="ThirdPartyToken">The authentication token returned by the Provider</param>
|
|
833
|
+
/// <param name="ThirdPartyStateId">The state Id returned by the Provider</param>
|
|
834
|
+
/// <returns>The result for the request</returns>
|
|
835
|
+
|
|
836
|
+
public Task<Csp.Systems.LoginStateResult> LoginToThirdPartyAuthenticationProvider(
|
|
837
|
+
string ThirdPartyToken,
|
|
838
|
+
string ThirdPartyStateId
|
|
839
|
+
) {
|
|
840
|
+
var tcs = new TaskCompletionSource<Csp.Systems.LoginStateResult>(this);
|
|
841
|
+
var handle = GCHandle.Alloc(tcs);
|
|
842
|
+
|
|
843
|
+
csp_systems_UserSystem_LoginToThirdPartyAuthenticationProvider_void_StringRC_StringRC_LoginStateResultCallback(
|
|
844
|
+
_ptr,
|
|
845
|
+
ThirdPartyToken,
|
|
846
|
+
ThirdPartyStateId,
|
|
847
|
+
LoginToThirdPartyAuthenticationProviderDelegateInstance,
|
|
848
|
+
(IntPtr)handle
|
|
849
|
+
);
|
|
850
|
+
|
|
851
|
+
return tcs.Task;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
855
|
+
[AOT.MonoPInvokeCallback (typeof (LoginAsGuestWithIdCallbackDelegate))]
|
|
856
|
+
#endif
|
|
857
|
+
static void LoginAsGuestWithIdCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
858
|
+
{
|
|
859
|
+
var _handle = (GCHandle)_StateObject__;
|
|
860
|
+
var tcs = (TaskCompletionSource<Csp.Systems.LoginStateResult>)_handle.Target;
|
|
861
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
862
|
+
|
|
863
|
+
var task_result = new Csp.Systems.LoginStateResult(_Result);
|
|
864
|
+
|
|
865
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
866
|
+
{
|
|
867
|
+
return;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
tcs.SetResult(task_result);
|
|
871
|
+
_handle.Free();
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
static readonly LoginAsGuestWithIdCallbackDelegate LoginAsGuestWithIdDelegateInstance =
|
|
875
|
+
LoginAsGuestWithIdCallbackDelegateFunction;
|
|
876
|
+
|
|
877
|
+
/// <summary>Log in to Magnopus Connected Services services as a guest.</summary>
|
|
878
|
+
/// <param name="DeviceId">The device Id to use when logging in</param>
|
|
879
|
+
/// <returns>The result for the request</returns>
|
|
880
|
+
|
|
881
|
+
public Task<Csp.Systems.LoginStateResult> LoginAsGuestWithId(string DeviceId)
|
|
882
|
+
{
|
|
883
|
+
var tcs = new TaskCompletionSource<Csp.Systems.LoginStateResult>(this);
|
|
884
|
+
var handle = GCHandle.Alloc(tcs);
|
|
885
|
+
|
|
886
|
+
csp_systems_UserSystem_LoginAsGuestWithId_void_StringRC_LoginStateResultCallback(
|
|
887
|
+
_ptr,
|
|
888
|
+
DeviceId,
|
|
889
|
+
LoginAsGuestWithIdDelegateInstance,
|
|
890
|
+
(IntPtr)handle
|
|
891
|
+
);
|
|
892
|
+
|
|
893
|
+
return tcs.Task;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
897
|
+
[AOT.MonoPInvokeCallback (typeof (ExchangeKeyCallbackDelegate))]
|
|
898
|
+
#endif
|
|
899
|
+
static void ExchangeKeyCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
900
|
+
{
|
|
901
|
+
var _handle = (GCHandle)_StateObject__;
|
|
902
|
+
var tcs = (TaskCompletionSource<Csp.Systems.LoginStateResult>)_handle.Target;
|
|
903
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
904
|
+
|
|
905
|
+
var task_result = new Csp.Systems.LoginStateResult(_Result);
|
|
906
|
+
|
|
907
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
908
|
+
{
|
|
909
|
+
return;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
tcs.SetResult(task_result);
|
|
913
|
+
_handle.Free();
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
static readonly ExchangeKeyCallbackDelegate ExchangeKeyDelegateInstance = ExchangeKeyCallbackDelegateFunction;
|
|
917
|
+
|
|
918
|
+
/// <summary>Log in to Magnopus Connected Services using the given one-time password/key.</summary>
|
|
919
|
+
/// <param name="UserId">The user id</param>
|
|
920
|
+
/// <param name="Key">The one-time key to exchange</param>
|
|
921
|
+
/// <returns>The result for the request</returns>
|
|
922
|
+
|
|
923
|
+
public Task<Csp.Systems.LoginStateResult> ExchangeKey(string UserId, string Key)
|
|
924
|
+
{
|
|
925
|
+
var tcs = new TaskCompletionSource<Csp.Systems.LoginStateResult>(this);
|
|
926
|
+
var handle = GCHandle.Alloc(tcs);
|
|
927
|
+
|
|
928
|
+
csp_systems_UserSystem_ExchangeKey_void_StringRC_StringRC_LoginStateResultCallback(
|
|
929
|
+
_ptr,
|
|
930
|
+
UserId,
|
|
931
|
+
Key,
|
|
932
|
+
ExchangeKeyDelegateInstance,
|
|
933
|
+
(IntPtr)handle
|
|
934
|
+
);
|
|
935
|
+
|
|
936
|
+
return tcs.Task;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
940
|
+
[AOT.MonoPInvokeCallback (typeof (LogoutCallbackDelegate))]
|
|
941
|
+
#endif
|
|
942
|
+
static void LogoutCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
943
|
+
{
|
|
944
|
+
var _handle = (GCHandle)_StateObject__;
|
|
945
|
+
var tcs = (TaskCompletionSource<Csp.Systems.LogoutResult>)_handle.Target;
|
|
946
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
947
|
+
|
|
948
|
+
var task_result = new Csp.Systems.LogoutResult(_Result);
|
|
949
|
+
|
|
950
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
951
|
+
{
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
tcs.SetResult(task_result);
|
|
956
|
+
_handle.Free();
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
static readonly LogoutCallbackDelegate LogoutDelegateInstance = LogoutCallbackDelegateFunction;
|
|
960
|
+
|
|
961
|
+
/// <summary>Logout from Magnopus Connected Services.</summary>
|
|
962
|
+
/// <returns>The result for the request</returns>
|
|
963
|
+
|
|
964
|
+
public Task<Csp.Systems.LogoutResult> Logout()
|
|
965
|
+
{
|
|
966
|
+
var tcs = new TaskCompletionSource<Csp.Systems.LogoutResult>(this);
|
|
967
|
+
var handle = GCHandle.Alloc(tcs);
|
|
968
|
+
|
|
969
|
+
csp_systems_UserSystem_Logout_void_LogoutResultCallback(_ptr, LogoutDelegateInstance, (IntPtr)handle);
|
|
970
|
+
|
|
971
|
+
return tcs.Task;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
975
|
+
[AOT.MonoPInvokeCallback (typeof (CreateUserCallbackDelegate))]
|
|
976
|
+
#endif
|
|
977
|
+
static void CreateUserCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
978
|
+
{
|
|
979
|
+
var _handle = (GCHandle)_StateObject__;
|
|
980
|
+
var tcs = (TaskCompletionSource<Csp.Systems.ProfileResult>)_handle.Target;
|
|
981
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
982
|
+
|
|
983
|
+
var task_result = new Csp.Systems.ProfileResult(_Result);
|
|
984
|
+
|
|
985
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
986
|
+
{
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
tcs.SetResult(task_result);
|
|
991
|
+
_handle.Free();
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
static readonly CreateUserCallbackDelegate CreateUserDelegateInstance = CreateUserCallbackDelegateFunction;
|
|
995
|
+
|
|
996
|
+
/// <summary>Creates a new user profile.</summary>
|
|
997
|
+
/// <param name="UserName">User name associated with the new profile</param>
|
|
998
|
+
/// <param name="DisplayName">User display name associated with the new profile</param>
|
|
999
|
+
/// <param name="Email">Email address associated with the new profile</param>
|
|
1000
|
+
/// <param name="Password">Password associated with the new profile</param>
|
|
1001
|
+
/// <param name="ReceiveNewsletter">`true` if the user wants to receive the Magnopus Connected Services newsletter</param>
|
|
1002
|
+
/// <param name="RedirectUrl">The url to redirect the user to after they have registered</param>
|
|
1003
|
+
/// <param name="InviteToken">A token provided to the user that can be used to auto-confirm their account</param>
|
|
1004
|
+
/// <returns>The result for the request</returns>
|
|
1005
|
+
|
|
1006
|
+
public Task<Csp.Systems.ProfileResult> CreateUser(
|
|
1007
|
+
string? UserName,
|
|
1008
|
+
string? DisplayName,
|
|
1009
|
+
string Email,
|
|
1010
|
+
string Password,
|
|
1011
|
+
bool ReceiveNewsletter,
|
|
1012
|
+
string? RedirectUrl,
|
|
1013
|
+
string? InviteToken
|
|
1014
|
+
) {
|
|
1015
|
+
var tcs = new TaskCompletionSource<Csp.Systems.ProfileResult>(this);
|
|
1016
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1017
|
+
|
|
1018
|
+
csp_systems_UserSystem_CreateUser_void_StringRC_StringRC_StringRC_StringRC_bool_StringRC_StringRC_ProfileResultCallback(
|
|
1019
|
+
_ptr,
|
|
1020
|
+
UserName,
|
|
1021
|
+
DisplayName,
|
|
1022
|
+
Email,
|
|
1023
|
+
Password,
|
|
1024
|
+
ReceiveNewsletter,
|
|
1025
|
+
RedirectUrl,
|
|
1026
|
+
InviteToken,
|
|
1027
|
+
CreateUserDelegateInstance,
|
|
1028
|
+
(IntPtr)handle
|
|
1029
|
+
);
|
|
1030
|
+
|
|
1031
|
+
return tcs.Task;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1035
|
+
[AOT.MonoPInvokeCallback (typeof (UpgradeGuestAccountCallbackDelegate))]
|
|
1036
|
+
#endif
|
|
1037
|
+
static void UpgradeGuestAccountCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1038
|
+
{
|
|
1039
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1040
|
+
var tcs = (TaskCompletionSource<Csp.Systems.ProfileResult>)_handle.Target;
|
|
1041
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
1042
|
+
|
|
1043
|
+
var task_result = new Csp.Systems.ProfileResult(_Result);
|
|
1044
|
+
|
|
1045
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1046
|
+
{
|
|
1047
|
+
return;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
tcs.SetResult(task_result);
|
|
1051
|
+
_handle.Free();
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
static readonly UpgradeGuestAccountCallbackDelegate UpgradeGuestAccountDelegateInstance =
|
|
1055
|
+
UpgradeGuestAccountCallbackDelegateFunction;
|
|
1056
|
+
|
|
1057
|
+
/// <summary>Upgrade guest user to full user profile.</summary>
|
|
1058
|
+
/// <param name="UserName">User name associated with the new profile</param>
|
|
1059
|
+
/// <param name="DisplayName">User display name associated with the new profile</param>
|
|
1060
|
+
/// <param name="Email">Email address associated with the new profile</param>
|
|
1061
|
+
/// <param name="Password">Password associated with the new profile</param>
|
|
1062
|
+
/// <returns>The result for the request</returns>
|
|
1063
|
+
|
|
1064
|
+
public Task<Csp.Systems.ProfileResult> UpgradeGuestAccount(
|
|
1065
|
+
string UserName,
|
|
1066
|
+
string DisplayName,
|
|
1067
|
+
string Email,
|
|
1068
|
+
string Password
|
|
1069
|
+
) {
|
|
1070
|
+
var tcs = new TaskCompletionSource<Csp.Systems.ProfileResult>(this);
|
|
1071
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1072
|
+
|
|
1073
|
+
csp_systems_UserSystem_UpgradeGuestAccount_void_StringRC_StringRC_StringRC_StringRC_ProfileResultCallback(
|
|
1074
|
+
_ptr,
|
|
1075
|
+
UserName,
|
|
1076
|
+
DisplayName,
|
|
1077
|
+
Email,
|
|
1078
|
+
Password,
|
|
1079
|
+
UpgradeGuestAccountDelegateInstance,
|
|
1080
|
+
(IntPtr)handle
|
|
1081
|
+
);
|
|
1082
|
+
|
|
1083
|
+
return tcs.Task;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1087
|
+
[AOT.MonoPInvokeCallback (typeof (ConfirmUserEmailCallbackDelegate))]
|
|
1088
|
+
#endif
|
|
1089
|
+
static void ConfirmUserEmailCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1090
|
+
{
|
|
1091
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1092
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1093
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
1094
|
+
|
|
1095
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1096
|
+
|
|
1097
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1098
|
+
{
|
|
1099
|
+
return;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
tcs.SetResult(task_result);
|
|
1103
|
+
_handle.Free();
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
static readonly ConfirmUserEmailCallbackDelegate ConfirmUserEmailDelegateInstance =
|
|
1107
|
+
ConfirmUserEmailCallbackDelegateFunction;
|
|
1108
|
+
|
|
1109
|
+
/// <summary>Send a confirmation email.</summary>
|
|
1110
|
+
/// <returns>The result for the request</returns>
|
|
1111
|
+
|
|
1112
|
+
public Task<Csp.Systems.NullResult> ConfirmUserEmail()
|
|
1113
|
+
{
|
|
1114
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1115
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1116
|
+
|
|
1117
|
+
csp_systems_UserSystem_ConfirmUserEmail_void_NullResultCallback(
|
|
1118
|
+
_ptr,
|
|
1119
|
+
ConfirmUserEmailDelegateInstance,
|
|
1120
|
+
(IntPtr)handle
|
|
1121
|
+
);
|
|
1122
|
+
|
|
1123
|
+
return tcs.Task;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1127
|
+
[AOT.MonoPInvokeCallback (typeof (ResetUserPasswordCallbackDelegate))]
|
|
1128
|
+
#endif
|
|
1129
|
+
static void ResetUserPasswordCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1130
|
+
{
|
|
1131
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1132
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1133
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
1134
|
+
|
|
1135
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1136
|
+
|
|
1137
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1138
|
+
{
|
|
1139
|
+
return;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
tcs.SetResult(task_result);
|
|
1143
|
+
_handle.Free();
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
static readonly ResetUserPasswordCallbackDelegate ResetUserPasswordDelegateInstance =
|
|
1147
|
+
ResetUserPasswordCallbackDelegateFunction;
|
|
1148
|
+
|
|
1149
|
+
/// <summary>Reset the users password.</summary>
|
|
1150
|
+
/// <param name="Token">Token received through email by user</param>
|
|
1151
|
+
/// <param name="NewPassword">The new password for the associated account</param>
|
|
1152
|
+
/// <returns>The result for the request</returns>
|
|
1153
|
+
|
|
1154
|
+
public Task<Csp.Systems.NullResult> ResetUserPassword(string Token, string NewPassword)
|
|
1155
|
+
{
|
|
1156
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1157
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1158
|
+
|
|
1159
|
+
csp_systems_UserSystem_ResetUserPassword_void_StringRC_StringRC_NullResultCallback(
|
|
1160
|
+
_ptr,
|
|
1161
|
+
Token,
|
|
1162
|
+
NewPassword,
|
|
1163
|
+
ResetUserPasswordDelegateInstance,
|
|
1164
|
+
(IntPtr)handle
|
|
1165
|
+
);
|
|
1166
|
+
|
|
1167
|
+
return tcs.Task;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1171
|
+
[AOT.MonoPInvokeCallback (typeof (UpdateUserDisplayNameCallbackDelegate))]
|
|
1172
|
+
#endif
|
|
1173
|
+
static void UpdateUserDisplayNameCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1174
|
+
{
|
|
1175
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1176
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1177
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
1178
|
+
|
|
1179
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1180
|
+
|
|
1181
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1182
|
+
{
|
|
1183
|
+
return;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
tcs.SetResult(task_result);
|
|
1187
|
+
_handle.Free();
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
static readonly UpdateUserDisplayNameCallbackDelegate UpdateUserDisplayNameDelegateInstance =
|
|
1191
|
+
UpdateUserDisplayNameCallbackDelegateFunction;
|
|
1192
|
+
|
|
1193
|
+
/// <summary>Updates the user display name information.</summary>
|
|
1194
|
+
/// <param name="UserId">Id of the user that will be updated</param>
|
|
1195
|
+
/// <param name="NewUserDisplayName">New display name that will replace the previous value</param>
|
|
1196
|
+
/// <returns>The result for the request</returns>
|
|
1197
|
+
|
|
1198
|
+
public Task<Csp.Systems.NullResult> UpdateUserDisplayName(string UserId, string NewUserDisplayName)
|
|
1199
|
+
{
|
|
1200
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1201
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1202
|
+
|
|
1203
|
+
csp_systems_UserSystem_UpdateUserDisplayName_void_StringRC_StringRC_NullResultCallback(
|
|
1204
|
+
_ptr,
|
|
1205
|
+
UserId,
|
|
1206
|
+
NewUserDisplayName,
|
|
1207
|
+
UpdateUserDisplayNameDelegateInstance,
|
|
1208
|
+
(IntPtr)handle
|
|
1209
|
+
);
|
|
1210
|
+
|
|
1211
|
+
return tcs.Task;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1215
|
+
[AOT.MonoPInvokeCallback (typeof (DeleteUserCallbackDelegate))]
|
|
1216
|
+
#endif
|
|
1217
|
+
static void DeleteUserCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1218
|
+
{
|
|
1219
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1220
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1221
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
1222
|
+
|
|
1223
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1224
|
+
|
|
1225
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1226
|
+
{
|
|
1227
|
+
return;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
tcs.SetResult(task_result);
|
|
1231
|
+
_handle.Free();
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
static readonly DeleteUserCallbackDelegate DeleteUserDelegateInstance = DeleteUserCallbackDelegateFunction;
|
|
1235
|
+
|
|
1236
|
+
/// <summary>Delete the user.</summary>
|
|
1237
|
+
/// <param name="UserId">Id of the user that will be deleted</param>
|
|
1238
|
+
/// <returns>The result for the request</returns>
|
|
1239
|
+
|
|
1240
|
+
public Task<Csp.Systems.NullResult> DeleteUser(string UserId)
|
|
1241
|
+
{
|
|
1242
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1243
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1244
|
+
|
|
1245
|
+
csp_systems_UserSystem_DeleteUser_void_StringRC_NullResultCallback(
|
|
1246
|
+
_ptr,
|
|
1247
|
+
UserId,
|
|
1248
|
+
DeleteUserDelegateInstance,
|
|
1249
|
+
(IntPtr)handle
|
|
1250
|
+
);
|
|
1251
|
+
|
|
1252
|
+
return tcs.Task;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1256
|
+
[AOT.MonoPInvokeCallback (typeof (ForgotPasswordCallbackDelegate))]
|
|
1257
|
+
#endif
|
|
1258
|
+
static void ForgotPasswordCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1259
|
+
{
|
|
1260
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1261
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1262
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
1263
|
+
|
|
1264
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1265
|
+
|
|
1266
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1267
|
+
{
|
|
1268
|
+
return;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
tcs.SetResult(task_result);
|
|
1272
|
+
_handle.Free();
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
static readonly ForgotPasswordCallbackDelegate ForgotPasswordDelegateInstance =
|
|
1276
|
+
ForgotPasswordCallbackDelegateFunction;
|
|
1277
|
+
|
|
1278
|
+
/// <summary>Allow a user to reset their password if forgotten by providing an email address.</summary>
|
|
1279
|
+
/// <param name="Email">Account to recover password for</param>
|
|
1280
|
+
/// <param name="RedirectUrl">The url to redirect the user to after they have registered</param>
|
|
1281
|
+
/// @Param UseTokenChangePasswordUrl bool : if true the link in the email will direct the user to the Token Change URL
|
|
1282
|
+
/// <returns>The result for the request</returns>
|
|
1283
|
+
|
|
1284
|
+
public Task<Csp.Systems.NullResult> ForgotPassword(
|
|
1285
|
+
string Email,
|
|
1286
|
+
string? RedirectUrl,
|
|
1287
|
+
bool UseTokenChangePasswordUrl
|
|
1288
|
+
) {
|
|
1289
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1290
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1291
|
+
|
|
1292
|
+
csp_systems_UserSystem_ForgotPassword_void_StringRC_StringRC_bool_NullResultCallback(
|
|
1293
|
+
_ptr,
|
|
1294
|
+
Email,
|
|
1295
|
+
RedirectUrl,
|
|
1296
|
+
UseTokenChangePasswordUrl,
|
|
1297
|
+
ForgotPasswordDelegateInstance,
|
|
1298
|
+
(IntPtr)handle
|
|
1299
|
+
);
|
|
1300
|
+
|
|
1301
|
+
return tcs.Task;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1305
|
+
[AOT.MonoPInvokeCallback (typeof (GetProfileByUserIdCallbackDelegate))]
|
|
1306
|
+
#endif
|
|
1307
|
+
static void GetProfileByUserIdCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1308
|
+
{
|
|
1309
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1310
|
+
var tcs = (TaskCompletionSource<Csp.Systems.ProfileResult>)_handle.Target;
|
|
1311
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
1312
|
+
|
|
1313
|
+
var task_result = new Csp.Systems.ProfileResult(_Result);
|
|
1314
|
+
|
|
1315
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1316
|
+
{
|
|
1317
|
+
return;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
tcs.SetResult(task_result);
|
|
1321
|
+
_handle.Free();
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
static readonly GetProfileByUserIdCallbackDelegate GetProfileByUserIdDelegateInstance =
|
|
1325
|
+
GetProfileByUserIdCallbackDelegateFunction;
|
|
1326
|
+
|
|
1327
|
+
/// <summary>Get a user profile by user ID.</summary>
|
|
1328
|
+
/// <param name="InUserId">The id of the user to get</param>
|
|
1329
|
+
/// <returns>The result for the request</returns>
|
|
1330
|
+
|
|
1331
|
+
public Task<Csp.Systems.ProfileResult> GetProfileByUserId(string InUserId)
|
|
1332
|
+
{
|
|
1333
|
+
var tcs = new TaskCompletionSource<Csp.Systems.ProfileResult>(this);
|
|
1334
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1335
|
+
|
|
1336
|
+
csp_systems_UserSystem_GetProfileByUserId_void_StringRC_ProfileResultCallback(
|
|
1337
|
+
_ptr,
|
|
1338
|
+
InUserId,
|
|
1339
|
+
GetProfileByUserIdDelegateInstance,
|
|
1340
|
+
(IntPtr)handle
|
|
1341
|
+
);
|
|
1342
|
+
|
|
1343
|
+
return tcs.Task;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1347
|
+
[AOT.MonoPInvokeCallback (typeof (GetProfilesByUserIdCallbackDelegate))]
|
|
1348
|
+
#endif
|
|
1349
|
+
static void GetProfilesByUserIdCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1350
|
+
{
|
|
1351
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1352
|
+
var tcs = (TaskCompletionSource<Csp.Systems.BasicProfilesResult>)_handle.Target;
|
|
1353
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
1354
|
+
|
|
1355
|
+
var task_result = new Csp.Systems.BasicProfilesResult(_Result);
|
|
1356
|
+
|
|
1357
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1358
|
+
{
|
|
1359
|
+
return;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
tcs.SetResult(task_result);
|
|
1363
|
+
_handle.Free();
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
static readonly GetProfilesByUserIdCallbackDelegate GetProfilesByUserIdDelegateInstance =
|
|
1367
|
+
GetProfilesByUserIdCallbackDelegateFunction;
|
|
1368
|
+
|
|
1369
|
+
/// <summary>Get a list of minimal profiles (avatarId, personalityType, userName, and platform) by user IDs.</summary>
|
|
1370
|
+
/// <param name="InUserIds">An array of user ids to search for users by</param>
|
|
1371
|
+
/// <returns>The result for the request</returns>
|
|
1372
|
+
|
|
1373
|
+
public Task<Csp.Systems.BasicProfilesResult> GetProfilesByUserId(Csp.Common.Array<string> InUserIds)
|
|
1374
|
+
{
|
|
1375
|
+
var tcs = new TaskCompletionSource<Csp.Systems.BasicProfilesResult>(this);
|
|
1376
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1377
|
+
|
|
1378
|
+
csp_systems_UserSystem_GetProfilesByUserId_void_ArrayRC_BasicProfilesResultCallback(
|
|
1379
|
+
_ptr,
|
|
1380
|
+
InUserIds._ptr,
|
|
1381
|
+
GetProfilesByUserIdDelegateInstance,
|
|
1382
|
+
(IntPtr)handle
|
|
1383
|
+
);
|
|
1384
|
+
|
|
1385
|
+
return tcs.Task;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1389
|
+
[AOT.MonoPInvokeCallback (typeof (PingCallbackDelegate))]
|
|
1390
|
+
#endif
|
|
1391
|
+
static void PingCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1392
|
+
{
|
|
1393
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1394
|
+
var tcs = (TaskCompletionSource<Csp.Systems.PingResponseReceived>)_handle.Target;
|
|
1395
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
1396
|
+
|
|
1397
|
+
var task_result = new Csp.Systems.PingResponseReceived(_Result);
|
|
1398
|
+
|
|
1399
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1400
|
+
{
|
|
1401
|
+
return;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
tcs.SetResult(task_result);
|
|
1405
|
+
_handle.Free();
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
static readonly PingCallbackDelegate PingDelegateInstance = PingCallbackDelegateFunction;
|
|
1409
|
+
|
|
1410
|
+
/// <summary>Ping Magnopus Connected Services</summary>
|
|
1411
|
+
/// <returns>The result for the request</returns>
|
|
1412
|
+
|
|
1413
|
+
public Task<Csp.Systems.PingResponseReceived> Ping()
|
|
1414
|
+
{
|
|
1415
|
+
var tcs = new TaskCompletionSource<Csp.Systems.PingResponseReceived>(this);
|
|
1416
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1417
|
+
|
|
1418
|
+
csp_systems_UserSystem_Ping_void_PingResponseReceivedCallback(_ptr, PingDelegateInstance, (IntPtr)handle);
|
|
1419
|
+
|
|
1420
|
+
return tcs.Task;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1424
|
+
[AOT.MonoPInvokeCallback (typeof (GetAgoraUserTokenCallbackDelegate))]
|
|
1425
|
+
#endif
|
|
1426
|
+
static void GetAgoraUserTokenCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1427
|
+
{
|
|
1428
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1429
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AgoraUserTokenResult>)_handle.Target;
|
|
1430
|
+
var _this = (UserSystem)tcs.Task.AsyncState;
|
|
1431
|
+
|
|
1432
|
+
var task_result = new Csp.Systems.AgoraUserTokenResult(_Result);
|
|
1433
|
+
|
|
1434
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1435
|
+
{
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
tcs.SetResult(task_result);
|
|
1440
|
+
_handle.Free();
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
static readonly GetAgoraUserTokenCallbackDelegate GetAgoraUserTokenDelegateInstance =
|
|
1444
|
+
GetAgoraUserTokenCallbackDelegateFunction;
|
|
1445
|
+
|
|
1446
|
+
/// <summary>Retrieve User token from Agora</summary>
|
|
1447
|
+
/// <param name="Params">Params to configure the User token</param>
|
|
1448
|
+
/// <returns>The result for the request</returns>
|
|
1449
|
+
|
|
1450
|
+
public Task<Csp.Systems.AgoraUserTokenResult> GetAgoraUserToken(Csp.Systems.AgoraUserTokenParams Params)
|
|
1451
|
+
{
|
|
1452
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AgoraUserTokenResult>(this);
|
|
1453
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1454
|
+
|
|
1455
|
+
csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_UserTokenResultCallback(
|
|
1456
|
+
_ptr,
|
|
1457
|
+
Params._ptr,
|
|
1458
|
+
GetAgoraUserTokenDelegateInstance,
|
|
1459
|
+
(IntPtr)handle
|
|
1460
|
+
);
|
|
1461
|
+
|
|
1462
|
+
return tcs.Task;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
protected UserSystem() { }
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
|