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,2322 @@
|
|
|
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 Space System
|
|
16
|
+
/// <summary>Public facing system that allows interfacing with Magnopus Connected Services' concept of a Group.</summary>
|
|
17
|
+
/// <remarks>Offers methods for creating, deleting and joining spaces.</remarks>
|
|
18
|
+
|
|
19
|
+
public class SpaceSystem : Csp.Systems.SystemBase
|
|
20
|
+
{
|
|
21
|
+
internal override string _safeTypeName { get; } = "csp_systems_SpaceSystem";
|
|
22
|
+
|
|
23
|
+
#region P/Invoke
|
|
24
|
+
#pragma warning disable IDE1006
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
[
|
|
29
|
+
DllImport(
|
|
30
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
31
|
+
"__Internal"
|
|
32
|
+
#elif DEBUG
|
|
33
|
+
"ConnectedSpacesPlatform_D"
|
|
34
|
+
#else
|
|
35
|
+
"ConnectedSpacesPlatform"
|
|
36
|
+
#endif
|
|
37
|
+
),
|
|
38
|
+
SuppressUnmanagedCodeSecurity
|
|
39
|
+
]
|
|
40
|
+
static extern void csp_systems_SpaceSystem_Dtor(IntPtr @class);
|
|
41
|
+
|
|
42
|
+
[
|
|
43
|
+
DllImport(
|
|
44
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
45
|
+
"__Internal"
|
|
46
|
+
#elif DEBUG
|
|
47
|
+
"ConnectedSpacesPlatform_D"
|
|
48
|
+
#else
|
|
49
|
+
"ConnectedSpacesPlatform"
|
|
50
|
+
#endif
|
|
51
|
+
),
|
|
52
|
+
SuppressUnmanagedCodeSecurity
|
|
53
|
+
]
|
|
54
|
+
static extern void csp_systems_SpaceSystem_EnterSpace_void_StringRC_NullResultCallback(
|
|
55
|
+
IntPtr @class,
|
|
56
|
+
string SpaceId,
|
|
57
|
+
EnterSpaceCallbackDelegate callback,
|
|
58
|
+
IntPtr callbackStateObject
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
[
|
|
62
|
+
DllImport(
|
|
63
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
64
|
+
"__Internal"
|
|
65
|
+
#elif DEBUG
|
|
66
|
+
"ConnectedSpacesPlatform_D"
|
|
67
|
+
#else
|
|
68
|
+
"ConnectedSpacesPlatform"
|
|
69
|
+
#endif
|
|
70
|
+
),
|
|
71
|
+
SuppressUnmanagedCodeSecurity
|
|
72
|
+
]
|
|
73
|
+
static extern void csp_systems_SpaceSystem_ExitSpace_void(IntPtr @class);
|
|
74
|
+
|
|
75
|
+
[
|
|
76
|
+
DllImport(
|
|
77
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
78
|
+
"__Internal"
|
|
79
|
+
#elif DEBUG
|
|
80
|
+
"ConnectedSpacesPlatform_D"
|
|
81
|
+
#else
|
|
82
|
+
"ConnectedSpacesPlatform"
|
|
83
|
+
#endif
|
|
84
|
+
),
|
|
85
|
+
SuppressUnmanagedCodeSecurity
|
|
86
|
+
]
|
|
87
|
+
static extern bool csp_systems_SpaceSystem_IsInSpace_bool(IntPtr @class);
|
|
88
|
+
|
|
89
|
+
[
|
|
90
|
+
DllImport(
|
|
91
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
92
|
+
"__Internal"
|
|
93
|
+
#elif DEBUG
|
|
94
|
+
"ConnectedSpacesPlatform_D"
|
|
95
|
+
#else
|
|
96
|
+
"ConnectedSpacesPlatform"
|
|
97
|
+
#endif
|
|
98
|
+
),
|
|
99
|
+
SuppressUnmanagedCodeSecurity
|
|
100
|
+
]
|
|
101
|
+
static extern NativePointer csp_systems_SpaceSystem_GetCurrentSpaceC_SpaceRC(IntPtr @class);
|
|
102
|
+
|
|
103
|
+
[
|
|
104
|
+
DllImport(
|
|
105
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
106
|
+
"__Internal"
|
|
107
|
+
#elif DEBUG
|
|
108
|
+
"ConnectedSpacesPlatform_D"
|
|
109
|
+
#else
|
|
110
|
+
"ConnectedSpacesPlatform"
|
|
111
|
+
#endif
|
|
112
|
+
),
|
|
113
|
+
SuppressUnmanagedCodeSecurity
|
|
114
|
+
]
|
|
115
|
+
static extern void csp_systems_SpaceSystem_CreateSpace_void_StringRC_StringRC_SpaceAttributes_ArrayRC_MapRC_FileAssetDataSourceRC_SpaceResultCallback(
|
|
116
|
+
IntPtr @class,
|
|
117
|
+
string Name,
|
|
118
|
+
string Description,
|
|
119
|
+
SpaceAttributes Attributes,
|
|
120
|
+
IntPtr InviteUsers,
|
|
121
|
+
IntPtr Metadata,
|
|
122
|
+
IntPtr FileThumbnail,
|
|
123
|
+
CreateSpaceCallbackDelegate callback,
|
|
124
|
+
IntPtr callbackStateObject
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
[
|
|
128
|
+
DllImport(
|
|
129
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
130
|
+
"__Internal"
|
|
131
|
+
#elif DEBUG
|
|
132
|
+
"ConnectedSpacesPlatform_D"
|
|
133
|
+
#else
|
|
134
|
+
"ConnectedSpacesPlatform"
|
|
135
|
+
#endif
|
|
136
|
+
),
|
|
137
|
+
SuppressUnmanagedCodeSecurity
|
|
138
|
+
]
|
|
139
|
+
static extern void csp_systems_SpaceSystem_CreateSpaceWithBuffer_void_StringRC_StringRC_SpaceAttributes_ArrayRC_MapRC_BufferAssetDataSourceRC_SpaceResultCallback(
|
|
140
|
+
IntPtr @class,
|
|
141
|
+
string Name,
|
|
142
|
+
string Description,
|
|
143
|
+
SpaceAttributes Attributes,
|
|
144
|
+
IntPtr InviteUsers,
|
|
145
|
+
IntPtr Metadata,
|
|
146
|
+
IntPtr Thumbnail,
|
|
147
|
+
CreateSpaceWithBufferCallbackDelegate callback,
|
|
148
|
+
IntPtr callbackStateObject
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
[
|
|
152
|
+
DllImport(
|
|
153
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
154
|
+
"__Internal"
|
|
155
|
+
#elif DEBUG
|
|
156
|
+
"ConnectedSpacesPlatform_D"
|
|
157
|
+
#else
|
|
158
|
+
"ConnectedSpacesPlatform"
|
|
159
|
+
#endif
|
|
160
|
+
),
|
|
161
|
+
SuppressUnmanagedCodeSecurity
|
|
162
|
+
]
|
|
163
|
+
static extern void csp_systems_SpaceSystem_UpdateSpace_void_StringRC_StringRC_StringRC_SpaceAttributesRC_BasicSpaceResultCallback(
|
|
164
|
+
IntPtr @class,
|
|
165
|
+
string SpaceId,
|
|
166
|
+
string Name,
|
|
167
|
+
string Description,
|
|
168
|
+
IntPtr Type,
|
|
169
|
+
UpdateSpaceCallbackDelegate callback,
|
|
170
|
+
IntPtr callbackStateObject
|
|
171
|
+
);
|
|
172
|
+
|
|
173
|
+
[
|
|
174
|
+
DllImport(
|
|
175
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
176
|
+
"__Internal"
|
|
177
|
+
#elif DEBUG
|
|
178
|
+
"ConnectedSpacesPlatform_D"
|
|
179
|
+
#else
|
|
180
|
+
"ConnectedSpacesPlatform"
|
|
181
|
+
#endif
|
|
182
|
+
),
|
|
183
|
+
SuppressUnmanagedCodeSecurity
|
|
184
|
+
]
|
|
185
|
+
static extern void csp_systems_SpaceSystem_DeleteSpace_void_StringRC_NullResultCallback(
|
|
186
|
+
IntPtr @class,
|
|
187
|
+
string SpaceId,
|
|
188
|
+
DeleteSpaceCallbackDelegate callback,
|
|
189
|
+
IntPtr callbackStateObject
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
[
|
|
193
|
+
DllImport(
|
|
194
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
195
|
+
"__Internal"
|
|
196
|
+
#elif DEBUG
|
|
197
|
+
"ConnectedSpacesPlatform_D"
|
|
198
|
+
#else
|
|
199
|
+
"ConnectedSpacesPlatform"
|
|
200
|
+
#endif
|
|
201
|
+
),
|
|
202
|
+
SuppressUnmanagedCodeSecurity
|
|
203
|
+
]
|
|
204
|
+
static extern void csp_systems_SpaceSystem_GetSpaces_void_SpacesResultCallback(
|
|
205
|
+
IntPtr @class,
|
|
206
|
+
GetSpacesCallbackDelegate callback,
|
|
207
|
+
IntPtr callbackStateObject
|
|
208
|
+
);
|
|
209
|
+
|
|
210
|
+
[
|
|
211
|
+
DllImport(
|
|
212
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
213
|
+
"__Internal"
|
|
214
|
+
#elif DEBUG
|
|
215
|
+
"ConnectedSpacesPlatform_D"
|
|
216
|
+
#else
|
|
217
|
+
"ConnectedSpacesPlatform"
|
|
218
|
+
#endif
|
|
219
|
+
),
|
|
220
|
+
SuppressUnmanagedCodeSecurity
|
|
221
|
+
]
|
|
222
|
+
static extern void csp_systems_SpaceSystem_GetSpacesByAttributes_void_boolRC_boolRC_intRC_intRC_BasicSpacesResultCallback(
|
|
223
|
+
IntPtr @class,
|
|
224
|
+
IntPtr IsDiscoverable,
|
|
225
|
+
IntPtr RequiresInvite,
|
|
226
|
+
IntPtr ResultsSkip,
|
|
227
|
+
IntPtr ResultsMax,
|
|
228
|
+
GetSpacesByAttributesCallbackDelegate callback,
|
|
229
|
+
IntPtr callbackStateObject
|
|
230
|
+
);
|
|
231
|
+
|
|
232
|
+
[
|
|
233
|
+
DllImport(
|
|
234
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
235
|
+
"__Internal"
|
|
236
|
+
#elif DEBUG
|
|
237
|
+
"ConnectedSpacesPlatform_D"
|
|
238
|
+
#else
|
|
239
|
+
"ConnectedSpacesPlatform"
|
|
240
|
+
#endif
|
|
241
|
+
),
|
|
242
|
+
SuppressUnmanagedCodeSecurity
|
|
243
|
+
]
|
|
244
|
+
static extern void csp_systems_SpaceSystem_GetSpacesByIds_void_ArrayRC_SpacesResultCallback(
|
|
245
|
+
IntPtr @class,
|
|
246
|
+
IntPtr RequestedSpaceIDs,
|
|
247
|
+
GetSpacesByIdsCallbackDelegate callback,
|
|
248
|
+
IntPtr callbackStateObject
|
|
249
|
+
);
|
|
250
|
+
|
|
251
|
+
[
|
|
252
|
+
DllImport(
|
|
253
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
254
|
+
"__Internal"
|
|
255
|
+
#elif DEBUG
|
|
256
|
+
"ConnectedSpacesPlatform_D"
|
|
257
|
+
#else
|
|
258
|
+
"ConnectedSpacesPlatform"
|
|
259
|
+
#endif
|
|
260
|
+
),
|
|
261
|
+
SuppressUnmanagedCodeSecurity
|
|
262
|
+
]
|
|
263
|
+
static extern void csp_systems_SpaceSystem_GetSpacesForUserId_void_StringRC_SpacesResultCallback(
|
|
264
|
+
IntPtr @class,
|
|
265
|
+
string UserId,
|
|
266
|
+
GetSpacesForUserIdCallbackDelegate callback,
|
|
267
|
+
IntPtr callbackStateObject
|
|
268
|
+
);
|
|
269
|
+
|
|
270
|
+
[
|
|
271
|
+
DllImport(
|
|
272
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
273
|
+
"__Internal"
|
|
274
|
+
#elif DEBUG
|
|
275
|
+
"ConnectedSpacesPlatform_D"
|
|
276
|
+
#else
|
|
277
|
+
"ConnectedSpacesPlatform"
|
|
278
|
+
#endif
|
|
279
|
+
),
|
|
280
|
+
SuppressUnmanagedCodeSecurity
|
|
281
|
+
]
|
|
282
|
+
static extern void csp_systems_SpaceSystem_GetSpace_void_StringRC_SpaceResultCallback(
|
|
283
|
+
IntPtr @class,
|
|
284
|
+
string SpaceId,
|
|
285
|
+
GetSpaceCallbackDelegate callback,
|
|
286
|
+
IntPtr callbackStateObject
|
|
287
|
+
);
|
|
288
|
+
|
|
289
|
+
[
|
|
290
|
+
DllImport(
|
|
291
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
292
|
+
"__Internal"
|
|
293
|
+
#elif DEBUG
|
|
294
|
+
"ConnectedSpacesPlatform_D"
|
|
295
|
+
#else
|
|
296
|
+
"ConnectedSpacesPlatform"
|
|
297
|
+
#endif
|
|
298
|
+
),
|
|
299
|
+
SuppressUnmanagedCodeSecurity
|
|
300
|
+
]
|
|
301
|
+
static extern void csp_systems_SpaceSystem_InviteToSpace_void_StringRC_StringRC_boolRC_NullResultCallback(
|
|
302
|
+
IntPtr @class,
|
|
303
|
+
string SpaceId,
|
|
304
|
+
string Email,
|
|
305
|
+
IntPtr IsModeratorRole,
|
|
306
|
+
InviteToSpaceCallbackDelegate callback,
|
|
307
|
+
IntPtr callbackStateObject
|
|
308
|
+
);
|
|
309
|
+
|
|
310
|
+
[
|
|
311
|
+
DllImport(
|
|
312
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
313
|
+
"__Internal"
|
|
314
|
+
#elif DEBUG
|
|
315
|
+
"ConnectedSpacesPlatform_D"
|
|
316
|
+
#else
|
|
317
|
+
"ConnectedSpacesPlatform"
|
|
318
|
+
#endif
|
|
319
|
+
),
|
|
320
|
+
SuppressUnmanagedCodeSecurity
|
|
321
|
+
]
|
|
322
|
+
static extern void csp_systems_SpaceSystem_BulkInviteToSpace_void_StringRC_ArrayRC_NullResultCallback(
|
|
323
|
+
IntPtr @class,
|
|
324
|
+
string SpaceId,
|
|
325
|
+
IntPtr InviteUsers,
|
|
326
|
+
BulkInviteToSpaceCallbackDelegate callback,
|
|
327
|
+
IntPtr callbackStateObject
|
|
328
|
+
);
|
|
329
|
+
|
|
330
|
+
[
|
|
331
|
+
DllImport(
|
|
332
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
333
|
+
"__Internal"
|
|
334
|
+
#elif DEBUG
|
|
335
|
+
"ConnectedSpacesPlatform_D"
|
|
336
|
+
#else
|
|
337
|
+
"ConnectedSpacesPlatform"
|
|
338
|
+
#endif
|
|
339
|
+
),
|
|
340
|
+
SuppressUnmanagedCodeSecurity
|
|
341
|
+
]
|
|
342
|
+
static extern void csp_systems_SpaceSystem_GetPendingUserInvites_void_StringRC_PendingInvitesResultCallback(
|
|
343
|
+
IntPtr @class,
|
|
344
|
+
string SpaceId,
|
|
345
|
+
GetPendingUserInvitesCallbackDelegate 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_SpaceSystem_RemoveUserFromSpace_void_StringRC_StringRC_NullResultCallback(
|
|
362
|
+
IntPtr @class,
|
|
363
|
+
string SpaceId,
|
|
364
|
+
string UserId,
|
|
365
|
+
RemoveUserFromSpaceCallbackDelegate callback,
|
|
366
|
+
IntPtr callbackStateObject
|
|
367
|
+
);
|
|
368
|
+
|
|
369
|
+
[
|
|
370
|
+
DllImport(
|
|
371
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
372
|
+
"__Internal"
|
|
373
|
+
#elif DEBUG
|
|
374
|
+
"ConnectedSpacesPlatform_D"
|
|
375
|
+
#else
|
|
376
|
+
"ConnectedSpacesPlatform"
|
|
377
|
+
#endif
|
|
378
|
+
),
|
|
379
|
+
SuppressUnmanagedCodeSecurity
|
|
380
|
+
]
|
|
381
|
+
static extern void csp_systems_SpaceSystem_AddUserToSpace_void_StringRC_StringRC_SpaceResultCallback(
|
|
382
|
+
IntPtr @class,
|
|
383
|
+
string SpaceId,
|
|
384
|
+
string UserId,
|
|
385
|
+
AddUserToSpaceCallbackDelegate 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_SpaceSystem_AddSiteInfo_void_StringRC_SiteR_SiteResultCallback(
|
|
402
|
+
IntPtr @class,
|
|
403
|
+
string SpaceId,
|
|
404
|
+
IntPtr SiteInfo,
|
|
405
|
+
AddSiteInfoCallbackDelegate callback,
|
|
406
|
+
IntPtr callbackStateObject
|
|
407
|
+
);
|
|
408
|
+
|
|
409
|
+
[
|
|
410
|
+
DllImport(
|
|
411
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
412
|
+
"__Internal"
|
|
413
|
+
#elif DEBUG
|
|
414
|
+
"ConnectedSpacesPlatform_D"
|
|
415
|
+
#else
|
|
416
|
+
"ConnectedSpacesPlatform"
|
|
417
|
+
#endif
|
|
418
|
+
),
|
|
419
|
+
SuppressUnmanagedCodeSecurity
|
|
420
|
+
]
|
|
421
|
+
static extern void csp_systems_SpaceSystem_RemoveSiteInfo_void_StringRC_SiteR_NullResultCallback(
|
|
422
|
+
IntPtr @class,
|
|
423
|
+
string SpaceId,
|
|
424
|
+
IntPtr SiteInfo,
|
|
425
|
+
RemoveSiteInfoCallbackDelegate callback,
|
|
426
|
+
IntPtr callbackStateObject
|
|
427
|
+
);
|
|
428
|
+
|
|
429
|
+
[
|
|
430
|
+
DllImport(
|
|
431
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
432
|
+
"__Internal"
|
|
433
|
+
#elif DEBUG
|
|
434
|
+
"ConnectedSpacesPlatform_D"
|
|
435
|
+
#else
|
|
436
|
+
"ConnectedSpacesPlatform"
|
|
437
|
+
#endif
|
|
438
|
+
),
|
|
439
|
+
SuppressUnmanagedCodeSecurity
|
|
440
|
+
]
|
|
441
|
+
static extern void csp_systems_SpaceSystem_GetSitesInfo_void_StringRC_SitesCollectionResultCallback(
|
|
442
|
+
IntPtr @class,
|
|
443
|
+
string SpaceId,
|
|
444
|
+
GetSitesInfoCallbackDelegate callback,
|
|
445
|
+
IntPtr callbackStateObject
|
|
446
|
+
);
|
|
447
|
+
|
|
448
|
+
[
|
|
449
|
+
DllImport(
|
|
450
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
451
|
+
"__Internal"
|
|
452
|
+
#elif DEBUG
|
|
453
|
+
"ConnectedSpacesPlatform_D"
|
|
454
|
+
#else
|
|
455
|
+
"ConnectedSpacesPlatform"
|
|
456
|
+
#endif
|
|
457
|
+
),
|
|
458
|
+
SuppressUnmanagedCodeSecurity
|
|
459
|
+
]
|
|
460
|
+
static extern void csp_systems_SpaceSystem_UpdateUserRole_void_StringRC_UserRoleInfoRC_NullResultCallback(
|
|
461
|
+
IntPtr @class,
|
|
462
|
+
string SpaceId,
|
|
463
|
+
IntPtr NewUserRoleInfo,
|
|
464
|
+
UpdateUserRoleCallbackDelegate callback,
|
|
465
|
+
IntPtr callbackStateObject
|
|
466
|
+
);
|
|
467
|
+
|
|
468
|
+
[
|
|
469
|
+
DllImport(
|
|
470
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
471
|
+
"__Internal"
|
|
472
|
+
#elif DEBUG
|
|
473
|
+
"ConnectedSpacesPlatform_D"
|
|
474
|
+
#else
|
|
475
|
+
"ConnectedSpacesPlatform"
|
|
476
|
+
#endif
|
|
477
|
+
),
|
|
478
|
+
SuppressUnmanagedCodeSecurity
|
|
479
|
+
]
|
|
480
|
+
static extern void csp_systems_SpaceSystem_GetUsersRoles_void_StringRC_ArrayRC_UserRoleCollectionCallback(
|
|
481
|
+
IntPtr @class,
|
|
482
|
+
string SpaceId,
|
|
483
|
+
IntPtr RequestedUserIds,
|
|
484
|
+
GetUsersRolesCallbackDelegate callback,
|
|
485
|
+
IntPtr callbackStateObject
|
|
486
|
+
);
|
|
487
|
+
|
|
488
|
+
[
|
|
489
|
+
DllImport(
|
|
490
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
491
|
+
"__Internal"
|
|
492
|
+
#elif DEBUG
|
|
493
|
+
"ConnectedSpacesPlatform_D"
|
|
494
|
+
#else
|
|
495
|
+
"ConnectedSpacesPlatform"
|
|
496
|
+
#endif
|
|
497
|
+
),
|
|
498
|
+
SuppressUnmanagedCodeSecurity
|
|
499
|
+
]
|
|
500
|
+
static extern void csp_systems_SpaceSystem_UpdateSpaceMetadata_void_StringRC_MapRC_NullResultCallback(
|
|
501
|
+
IntPtr @class,
|
|
502
|
+
string SpaceId,
|
|
503
|
+
IntPtr NewMetadata,
|
|
504
|
+
UpdateSpaceMetadataCallbackDelegate callback,
|
|
505
|
+
IntPtr callbackStateObject
|
|
506
|
+
);
|
|
507
|
+
|
|
508
|
+
[
|
|
509
|
+
DllImport(
|
|
510
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
511
|
+
"__Internal"
|
|
512
|
+
#elif DEBUG
|
|
513
|
+
"ConnectedSpacesPlatform_D"
|
|
514
|
+
#else
|
|
515
|
+
"ConnectedSpacesPlatform"
|
|
516
|
+
#endif
|
|
517
|
+
),
|
|
518
|
+
SuppressUnmanagedCodeSecurity
|
|
519
|
+
]
|
|
520
|
+
static extern void csp_systems_SpaceSystem_GetSpacesMetadata_void_ArrayRC_SpacesMetadataResultCallback(
|
|
521
|
+
IntPtr @class,
|
|
522
|
+
IntPtr Spaces,
|
|
523
|
+
GetSpacesMetadataCallbackDelegate callback,
|
|
524
|
+
IntPtr callbackStateObject
|
|
525
|
+
);
|
|
526
|
+
|
|
527
|
+
[
|
|
528
|
+
DllImport(
|
|
529
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
530
|
+
"__Internal"
|
|
531
|
+
#elif DEBUG
|
|
532
|
+
"ConnectedSpacesPlatform_D"
|
|
533
|
+
#else
|
|
534
|
+
"ConnectedSpacesPlatform"
|
|
535
|
+
#endif
|
|
536
|
+
),
|
|
537
|
+
SuppressUnmanagedCodeSecurity
|
|
538
|
+
]
|
|
539
|
+
static extern void csp_systems_SpaceSystem_GetSpaceMetadata_void_StringRC_SpaceMetadataResultCallback(
|
|
540
|
+
IntPtr @class,
|
|
541
|
+
string SpaceId,
|
|
542
|
+
GetSpaceMetadataCallbackDelegate callback,
|
|
543
|
+
IntPtr callbackStateObject
|
|
544
|
+
);
|
|
545
|
+
|
|
546
|
+
[
|
|
547
|
+
DllImport(
|
|
548
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
549
|
+
"__Internal"
|
|
550
|
+
#elif DEBUG
|
|
551
|
+
"ConnectedSpacesPlatform_D"
|
|
552
|
+
#else
|
|
553
|
+
"ConnectedSpacesPlatform"
|
|
554
|
+
#endif
|
|
555
|
+
),
|
|
556
|
+
SuppressUnmanagedCodeSecurity
|
|
557
|
+
]
|
|
558
|
+
static extern void csp_systems_SpaceSystem_UpdateSpaceThumbnail_void_StringRC_FileAssetDataSourceRC_NullResultCallback(
|
|
559
|
+
IntPtr @class,
|
|
560
|
+
string SpaceId,
|
|
561
|
+
IntPtr NewThumbnail,
|
|
562
|
+
UpdateSpaceThumbnailCallbackDelegate callback,
|
|
563
|
+
IntPtr callbackStateObject
|
|
564
|
+
);
|
|
565
|
+
|
|
566
|
+
[
|
|
567
|
+
DllImport(
|
|
568
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
569
|
+
"__Internal"
|
|
570
|
+
#elif DEBUG
|
|
571
|
+
"ConnectedSpacesPlatform_D"
|
|
572
|
+
#else
|
|
573
|
+
"ConnectedSpacesPlatform"
|
|
574
|
+
#endif
|
|
575
|
+
),
|
|
576
|
+
SuppressUnmanagedCodeSecurity
|
|
577
|
+
]
|
|
578
|
+
static extern void csp_systems_SpaceSystem_UpdateSpaceThumbnailWithBuffer_void_StringRC_BufferAssetDataSourceRC_NullResultCallback(
|
|
579
|
+
IntPtr @class,
|
|
580
|
+
string SpaceId,
|
|
581
|
+
IntPtr NewThumbnail,
|
|
582
|
+
UpdateSpaceThumbnailWithBufferCallbackDelegate callback,
|
|
583
|
+
IntPtr callbackStateObject
|
|
584
|
+
);
|
|
585
|
+
|
|
586
|
+
[
|
|
587
|
+
DllImport(
|
|
588
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
589
|
+
"__Internal"
|
|
590
|
+
#elif DEBUG
|
|
591
|
+
"ConnectedSpacesPlatform_D"
|
|
592
|
+
#else
|
|
593
|
+
"ConnectedSpacesPlatform"
|
|
594
|
+
#endif
|
|
595
|
+
),
|
|
596
|
+
SuppressUnmanagedCodeSecurity
|
|
597
|
+
]
|
|
598
|
+
static extern void csp_systems_SpaceSystem_GetSpaceThumbnail_void_StringRC_UriResultCallback(
|
|
599
|
+
IntPtr @class,
|
|
600
|
+
string SpaceId,
|
|
601
|
+
GetSpaceThumbnailCallbackDelegate callback,
|
|
602
|
+
IntPtr callbackStateObject
|
|
603
|
+
);
|
|
604
|
+
|
|
605
|
+
[
|
|
606
|
+
DllImport(
|
|
607
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
608
|
+
"__Internal"
|
|
609
|
+
#elif DEBUG
|
|
610
|
+
"ConnectedSpacesPlatform_D"
|
|
611
|
+
#else
|
|
612
|
+
"ConnectedSpacesPlatform"
|
|
613
|
+
#endif
|
|
614
|
+
),
|
|
615
|
+
SuppressUnmanagedCodeSecurity
|
|
616
|
+
]
|
|
617
|
+
static extern void csp_systems_SpaceSystem_AddUserToSpaceBanList_void_StringRC_StringRC_NullResultCallback(
|
|
618
|
+
IntPtr @class,
|
|
619
|
+
string SpaceId,
|
|
620
|
+
string RequestedUserId,
|
|
621
|
+
AddUserToSpaceBanListCallbackDelegate callback,
|
|
622
|
+
IntPtr callbackStateObject
|
|
623
|
+
);
|
|
624
|
+
|
|
625
|
+
[
|
|
626
|
+
DllImport(
|
|
627
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
628
|
+
"__Internal"
|
|
629
|
+
#elif DEBUG
|
|
630
|
+
"ConnectedSpacesPlatform_D"
|
|
631
|
+
#else
|
|
632
|
+
"ConnectedSpacesPlatform"
|
|
633
|
+
#endif
|
|
634
|
+
),
|
|
635
|
+
SuppressUnmanagedCodeSecurity
|
|
636
|
+
]
|
|
637
|
+
static extern void csp_systems_SpaceSystem_DeleteUserFromSpaceBanList_void_StringRC_StringRC_NullResultCallback(
|
|
638
|
+
IntPtr @class,
|
|
639
|
+
string SpaceId,
|
|
640
|
+
string RequestedUserId,
|
|
641
|
+
DeleteUserFromSpaceBanListCallbackDelegate callback,
|
|
642
|
+
IntPtr callbackStateObject
|
|
643
|
+
);
|
|
644
|
+
|
|
645
|
+
[
|
|
646
|
+
DllImport(
|
|
647
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
648
|
+
"__Internal"
|
|
649
|
+
#elif DEBUG
|
|
650
|
+
"ConnectedSpacesPlatform_D"
|
|
651
|
+
#else
|
|
652
|
+
"ConnectedSpacesPlatform"
|
|
653
|
+
#endif
|
|
654
|
+
),
|
|
655
|
+
SuppressUnmanagedCodeSecurity
|
|
656
|
+
]
|
|
657
|
+
static extern void csp_systems_SpaceSystem_UpdateSpaceGeoLocation_void_StringRC_GeoLocationRC_floatRC_ArrayRC_SpaceGeoLocationResultCallback(
|
|
658
|
+
IntPtr @class,
|
|
659
|
+
string SpaceId,
|
|
660
|
+
IntPtr Location,
|
|
661
|
+
IntPtr Orientation,
|
|
662
|
+
IntPtr GeoFence,
|
|
663
|
+
UpdateSpaceGeoLocationCallbackDelegate callback,
|
|
664
|
+
IntPtr callbackStateObject
|
|
665
|
+
);
|
|
666
|
+
|
|
667
|
+
[
|
|
668
|
+
DllImport(
|
|
669
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
670
|
+
"__Internal"
|
|
671
|
+
#elif DEBUG
|
|
672
|
+
"ConnectedSpacesPlatform_D"
|
|
673
|
+
#else
|
|
674
|
+
"ConnectedSpacesPlatform"
|
|
675
|
+
#endif
|
|
676
|
+
),
|
|
677
|
+
SuppressUnmanagedCodeSecurity
|
|
678
|
+
]
|
|
679
|
+
static extern void csp_systems_SpaceSystem_GetSpaceGeoLocation_void_StringRC_SpaceGeoLocationResultCallback(
|
|
680
|
+
IntPtr @class,
|
|
681
|
+
string SpaceId,
|
|
682
|
+
GetSpaceGeoLocationCallbackDelegate callback,
|
|
683
|
+
IntPtr callbackStateObject
|
|
684
|
+
);
|
|
685
|
+
|
|
686
|
+
[
|
|
687
|
+
DllImport(
|
|
688
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
689
|
+
"__Internal"
|
|
690
|
+
#elif DEBUG
|
|
691
|
+
"ConnectedSpacesPlatform_D"
|
|
692
|
+
#else
|
|
693
|
+
"ConnectedSpacesPlatform"
|
|
694
|
+
#endif
|
|
695
|
+
),
|
|
696
|
+
SuppressUnmanagedCodeSecurity
|
|
697
|
+
]
|
|
698
|
+
static extern void csp_systems_SpaceSystem_DeleteSpaceGeoLocation_void_StringRC_NullResultCallback(
|
|
699
|
+
IntPtr @class,
|
|
700
|
+
string SpaceId,
|
|
701
|
+
DeleteSpaceGeoLocationCallbackDelegate callback,
|
|
702
|
+
IntPtr callbackStateObject
|
|
703
|
+
);
|
|
704
|
+
|
|
705
|
+
[
|
|
706
|
+
DllImport(
|
|
707
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
708
|
+
"__Internal"
|
|
709
|
+
#elif DEBUG
|
|
710
|
+
"ConnectedSpacesPlatform_D"
|
|
711
|
+
#else
|
|
712
|
+
"ConnectedSpacesPlatform"
|
|
713
|
+
#endif
|
|
714
|
+
),
|
|
715
|
+
SuppressUnmanagedCodeSecurity
|
|
716
|
+
]
|
|
717
|
+
static extern NativePointer csp_systems_SpaceSystem_Ctor();
|
|
718
|
+
|
|
719
|
+
#pragma warning restore IDE1006
|
|
720
|
+
#endregion
|
|
721
|
+
|
|
722
|
+
internal SpaceSystem(NativePointer ptr) : base(ptr) { }
|
|
723
|
+
|
|
724
|
+
public SpaceSystem(Csp.Systems.SystemBase baseInstance)
|
|
725
|
+
: base(new NativePointer(baseInstance._ptr, baseInstance._ownsPtr ? (byte)1 : (byte)0))
|
|
726
|
+
{
|
|
727
|
+
// Prevent previous instance from freeing underlying pointer when destroyed
|
|
728
|
+
baseInstance._ownsPtr = false;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
delegate void EnterSpaceCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
732
|
+
|
|
733
|
+
delegate void CreateSpaceCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
734
|
+
|
|
735
|
+
delegate void CreateSpaceWithBufferCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
736
|
+
|
|
737
|
+
delegate void UpdateSpaceCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
738
|
+
|
|
739
|
+
delegate void DeleteSpaceCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
740
|
+
|
|
741
|
+
delegate void GetSpacesCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
742
|
+
|
|
743
|
+
delegate void GetSpacesByAttributesCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
744
|
+
|
|
745
|
+
delegate void GetSpacesByIdsCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
746
|
+
|
|
747
|
+
delegate void GetSpacesForUserIdCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
748
|
+
|
|
749
|
+
delegate void GetSpaceCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
750
|
+
|
|
751
|
+
delegate void InviteToSpaceCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
752
|
+
|
|
753
|
+
delegate void BulkInviteToSpaceCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
754
|
+
|
|
755
|
+
delegate void GetPendingUserInvitesCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
756
|
+
|
|
757
|
+
delegate void RemoveUserFromSpaceCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
758
|
+
|
|
759
|
+
delegate void AddUserToSpaceCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
760
|
+
|
|
761
|
+
delegate void AddSiteInfoCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
762
|
+
|
|
763
|
+
delegate void RemoveSiteInfoCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
764
|
+
|
|
765
|
+
delegate void GetSitesInfoCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
766
|
+
|
|
767
|
+
delegate void UpdateUserRoleCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
768
|
+
|
|
769
|
+
delegate void GetUsersRolesCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
770
|
+
|
|
771
|
+
delegate void UpdateSpaceMetadataCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
772
|
+
|
|
773
|
+
delegate void GetSpacesMetadataCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
774
|
+
|
|
775
|
+
delegate void GetSpaceMetadataCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
776
|
+
|
|
777
|
+
delegate void UpdateSpaceThumbnailCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
778
|
+
|
|
779
|
+
delegate void UpdateSpaceThumbnailWithBufferCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
780
|
+
|
|
781
|
+
delegate void GetSpaceThumbnailCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
782
|
+
|
|
783
|
+
delegate void AddUserToSpaceBanListCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
784
|
+
|
|
785
|
+
delegate void DeleteUserFromSpaceBanListCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
786
|
+
|
|
787
|
+
delegate void UpdateSpaceGeoLocationCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
788
|
+
|
|
789
|
+
delegate void GetSpaceGeoLocationCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
790
|
+
|
|
791
|
+
delegate void DeleteSpaceGeoLocationCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
792
|
+
|
|
793
|
+
~SpaceSystem()
|
|
794
|
+
{
|
|
795
|
+
//RealDispose();
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
void RealDispose()
|
|
799
|
+
{
|
|
800
|
+
if (_ownsPtr && !_disposed)
|
|
801
|
+
{
|
|
802
|
+
csp_systems_SpaceSystem_Dtor(_ptr);
|
|
803
|
+
_disposed = true;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
_disposed = true;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
new public void Dispose()
|
|
810
|
+
{
|
|
811
|
+
RealDispose();
|
|
812
|
+
GC.SuppressFinalize(this);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
816
|
+
[AOT.MonoPInvokeCallback (typeof (EnterSpaceCallbackDelegate))]
|
|
817
|
+
#endif
|
|
818
|
+
static void EnterSpaceCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
819
|
+
{
|
|
820
|
+
var _handle = (GCHandle)_StateObject__;
|
|
821
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
822
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
823
|
+
|
|
824
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
825
|
+
|
|
826
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
827
|
+
{
|
|
828
|
+
return;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
tcs.SetResult(task_result);
|
|
832
|
+
_handle.Free();
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
static readonly EnterSpaceCallbackDelegate EnterSpaceDelegateInstance = EnterSpaceCallbackDelegateFunction;
|
|
836
|
+
|
|
837
|
+
/// <summary>Enter a space.</summary>
|
|
838
|
+
/// <param name="Space">Space to enter into</param>
|
|
839
|
+
/// <returns>The result for the request</returns>
|
|
840
|
+
|
|
841
|
+
public Task<Csp.Systems.NullResult> EnterSpace(string SpaceId)
|
|
842
|
+
{
|
|
843
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
844
|
+
var handle = GCHandle.Alloc(tcs);
|
|
845
|
+
|
|
846
|
+
csp_systems_SpaceSystem_EnterSpace_void_StringRC_NullResultCallback(
|
|
847
|
+
_ptr,
|
|
848
|
+
SpaceId,
|
|
849
|
+
EnterSpaceDelegateInstance,
|
|
850
|
+
(IntPtr)handle
|
|
851
|
+
);
|
|
852
|
+
|
|
853
|
+
return tcs.Task;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
/// <summary>Send exit current space event to EventSystem.</summary>
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
public void ExitSpace()
|
|
860
|
+
{
|
|
861
|
+
csp_systems_SpaceSystem_ExitSpace_void(_ptr);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/// <summary>Get whether user is currently in a space.</summary>
|
|
865
|
+
/// <returns>Result of whether they are in a Space.</returns>
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
public bool IsInSpace()
|
|
869
|
+
{
|
|
870
|
+
var _result = csp_systems_SpaceSystem_IsInSpace_bool(_ptr);
|
|
871
|
+
|
|
872
|
+
return _result;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/// <summary>Get the user's current space.</summary>
|
|
876
|
+
/// <returns>The space data object the user is currently in</returns>
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
public Csp.Systems.Space GetCurrentSpace()
|
|
880
|
+
{
|
|
881
|
+
var _result = new Csp.Systems.Space(csp_systems_SpaceSystem_GetCurrentSpaceC_SpaceRC(_ptr));
|
|
882
|
+
|
|
883
|
+
return _result;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
887
|
+
[AOT.MonoPInvokeCallback (typeof (CreateSpaceCallbackDelegate))]
|
|
888
|
+
#endif
|
|
889
|
+
static void CreateSpaceCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
890
|
+
{
|
|
891
|
+
var _handle = (GCHandle)_StateObject__;
|
|
892
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpaceResult>)_handle.Target;
|
|
893
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
894
|
+
|
|
895
|
+
var task_result = new Csp.Systems.SpaceResult(_Result);
|
|
896
|
+
|
|
897
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
898
|
+
{
|
|
899
|
+
return;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
tcs.SetResult(task_result);
|
|
903
|
+
_handle.Free();
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
static readonly CreateSpaceCallbackDelegate CreateSpaceDelegateInstance = CreateSpaceCallbackDelegateFunction;
|
|
907
|
+
|
|
908
|
+
/// <summary>Creates a new space.</summary>
|
|
909
|
+
/// <param name="Name">Name for the new space</param>
|
|
910
|
+
/// <param name="Description">Description for the new space</param>
|
|
911
|
+
/// <param name="Type">Type of the new space</param>
|
|
912
|
+
/// <param name="InviteUsers">Optional array of users to be invited into the space</param>
|
|
913
|
+
/// <param name="Metadata">Metadata information for the new space</param>
|
|
914
|
+
/// <param name="FileThumbnail">Optional thumbnail image for the new space</param>
|
|
915
|
+
/// <returns>The result for the request</returns>
|
|
916
|
+
|
|
917
|
+
public Task<Csp.Systems.SpaceResult> CreateSpace(
|
|
918
|
+
string Name,
|
|
919
|
+
string Description,
|
|
920
|
+
Csp.Systems.SpaceAttributes Attributes,
|
|
921
|
+
Csp.Common.Array<Csp.Systems.InviteUserRoleInfo>? InviteUsers,
|
|
922
|
+
Csp.Common.Map<string, string> Metadata,
|
|
923
|
+
Csp.Systems.FileAssetDataSource? FileThumbnail
|
|
924
|
+
) {
|
|
925
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpaceResult>(this);
|
|
926
|
+
var handle = GCHandle.Alloc(tcs);
|
|
927
|
+
|
|
928
|
+
csp_systems_SpaceSystem_CreateSpace_void_StringRC_StringRC_SpaceAttributes_ArrayRC_MapRC_FileAssetDataSourceRC_SpaceResultCallback(
|
|
929
|
+
_ptr,
|
|
930
|
+
Name,
|
|
931
|
+
Description,
|
|
932
|
+
Attributes,
|
|
933
|
+
InviteUsers?._ptr ?? IntPtr.Zero,
|
|
934
|
+
Metadata._ptr,
|
|
935
|
+
FileThumbnail?._ptr ?? IntPtr.Zero,
|
|
936
|
+
CreateSpaceDelegateInstance,
|
|
937
|
+
(IntPtr)handle
|
|
938
|
+
);
|
|
939
|
+
|
|
940
|
+
return tcs.Task;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
944
|
+
[AOT.MonoPInvokeCallback (typeof (CreateSpaceWithBufferCallbackDelegate))]
|
|
945
|
+
#endif
|
|
946
|
+
static void CreateSpaceWithBufferCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
947
|
+
{
|
|
948
|
+
var _handle = (GCHandle)_StateObject__;
|
|
949
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpaceResult>)_handle.Target;
|
|
950
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
951
|
+
|
|
952
|
+
var task_result = new Csp.Systems.SpaceResult(_Result);
|
|
953
|
+
|
|
954
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
955
|
+
{
|
|
956
|
+
return;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
tcs.SetResult(task_result);
|
|
960
|
+
_handle.Free();
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
static readonly CreateSpaceWithBufferCallbackDelegate CreateSpaceWithBufferDelegateInstance =
|
|
964
|
+
CreateSpaceWithBufferCallbackDelegateFunction;
|
|
965
|
+
|
|
966
|
+
/// <summary>Creates a new space Using BufferAssetDataSource.</summary>
|
|
967
|
+
/// <param name="Name">Name for the new space</param>
|
|
968
|
+
/// <param name="Description">Description for the new space</param>
|
|
969
|
+
/// <param name="Type">Type of the new space</param>
|
|
970
|
+
/// <param name="InviteUsers">Optional array of users to be invited into the space</param>
|
|
971
|
+
/// <param name="Metadata">Metadata information for the new space</param>
|
|
972
|
+
/// <param name="Thumbnail">Thumbnail image buffer for the new space</param>
|
|
973
|
+
/// <returns>The result for the request</returns>
|
|
974
|
+
|
|
975
|
+
public Task<Csp.Systems.SpaceResult> CreateSpaceWithBuffer(
|
|
976
|
+
string Name,
|
|
977
|
+
string Description,
|
|
978
|
+
Csp.Systems.SpaceAttributes Attributes,
|
|
979
|
+
Csp.Common.Array<Csp.Systems.InviteUserRoleInfo>? InviteUsers,
|
|
980
|
+
Csp.Common.Map<string, string> Metadata,
|
|
981
|
+
Csp.Systems.BufferAssetDataSource Thumbnail
|
|
982
|
+
) {
|
|
983
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpaceResult>(this);
|
|
984
|
+
var handle = GCHandle.Alloc(tcs);
|
|
985
|
+
|
|
986
|
+
csp_systems_SpaceSystem_CreateSpaceWithBuffer_void_StringRC_StringRC_SpaceAttributes_ArrayRC_MapRC_BufferAssetDataSourceRC_SpaceResultCallback(
|
|
987
|
+
_ptr,
|
|
988
|
+
Name,
|
|
989
|
+
Description,
|
|
990
|
+
Attributes,
|
|
991
|
+
InviteUsers?._ptr ?? IntPtr.Zero,
|
|
992
|
+
Metadata._ptr,
|
|
993
|
+
Thumbnail._ptr,
|
|
994
|
+
CreateSpaceWithBufferDelegateInstance,
|
|
995
|
+
(IntPtr)handle
|
|
996
|
+
);
|
|
997
|
+
|
|
998
|
+
return tcs.Task;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1002
|
+
[AOT.MonoPInvokeCallback (typeof (UpdateSpaceCallbackDelegate))]
|
|
1003
|
+
#endif
|
|
1004
|
+
static void UpdateSpaceCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1005
|
+
{
|
|
1006
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1007
|
+
var tcs = (TaskCompletionSource<Csp.Systems.BasicSpaceResult>)_handle.Target;
|
|
1008
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1009
|
+
|
|
1010
|
+
var task_result = new Csp.Systems.BasicSpaceResult(_Result);
|
|
1011
|
+
|
|
1012
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1013
|
+
{
|
|
1014
|
+
return;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
tcs.SetResult(task_result);
|
|
1018
|
+
_handle.Free();
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
static readonly UpdateSpaceCallbackDelegate UpdateSpaceDelegateInstance = UpdateSpaceCallbackDelegateFunction;
|
|
1022
|
+
|
|
1023
|
+
/// <summary>Updates the name and/or the description of a Space</summary>
|
|
1024
|
+
/// <param name="Space">The space to update</param>
|
|
1025
|
+
/// <param name="Name">If a new name is provided it will be used to update the space name</param>
|
|
1026
|
+
/// <param name="Description">If a new description is provided it will be used to update the space</param>
|
|
1027
|
+
/// <remarks>description</remarks>
|
|
1028
|
+
/// <param name="Type">If a new type is provided it will be used to update the space type</param>
|
|
1029
|
+
/// <returns>The result for the request</returns>
|
|
1030
|
+
|
|
1031
|
+
public Task<Csp.Systems.BasicSpaceResult> UpdateSpace(
|
|
1032
|
+
string SpaceId,
|
|
1033
|
+
string? Name,
|
|
1034
|
+
string? Description,
|
|
1035
|
+
Csp.Systems.SpaceAttributes? Type
|
|
1036
|
+
) {
|
|
1037
|
+
var tcs = new TaskCompletionSource<Csp.Systems.BasicSpaceResult>(this);
|
|
1038
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1039
|
+
|
|
1040
|
+
var TypePointer = IntPtr.Zero;
|
|
1041
|
+
unsafe
|
|
1042
|
+
{
|
|
1043
|
+
if (Type.HasValue)
|
|
1044
|
+
{
|
|
1045
|
+
var ptr = stackalloc Csp.Systems.SpaceAttributes[1];
|
|
1046
|
+
*ptr = Type.Value;
|
|
1047
|
+
TypePointer = (IntPtr)ptr;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
csp_systems_SpaceSystem_UpdateSpace_void_StringRC_StringRC_StringRC_SpaceAttributesRC_BasicSpaceResultCallback(
|
|
1052
|
+
_ptr,
|
|
1053
|
+
SpaceId,
|
|
1054
|
+
Name,
|
|
1055
|
+
Description,
|
|
1056
|
+
TypePointer,
|
|
1057
|
+
UpdateSpaceDelegateInstance,
|
|
1058
|
+
(IntPtr)handle
|
|
1059
|
+
);
|
|
1060
|
+
|
|
1061
|
+
return tcs.Task;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1065
|
+
[AOT.MonoPInvokeCallback (typeof (DeleteSpaceCallbackDelegate))]
|
|
1066
|
+
#endif
|
|
1067
|
+
static void DeleteSpaceCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1068
|
+
{
|
|
1069
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1070
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1071
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1072
|
+
|
|
1073
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1074
|
+
|
|
1075
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1076
|
+
{
|
|
1077
|
+
return;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
tcs.SetResult(task_result);
|
|
1081
|
+
_handle.Free();
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
static readonly DeleteSpaceCallbackDelegate DeleteSpaceDelegateInstance = DeleteSpaceCallbackDelegateFunction;
|
|
1085
|
+
|
|
1086
|
+
/// <summary>Deletes a given space and the corresponding UserService group.</summary>
|
|
1087
|
+
/// <param name="Space">Space to delete</param>
|
|
1088
|
+
/// <returns>The result for the request</returns>
|
|
1089
|
+
|
|
1090
|
+
public Task<Csp.Systems.NullResult> DeleteSpace(string SpaceId)
|
|
1091
|
+
{
|
|
1092
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1093
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1094
|
+
|
|
1095
|
+
csp_systems_SpaceSystem_DeleteSpace_void_StringRC_NullResultCallback(
|
|
1096
|
+
_ptr,
|
|
1097
|
+
SpaceId,
|
|
1098
|
+
DeleteSpaceDelegateInstance,
|
|
1099
|
+
(IntPtr)handle
|
|
1100
|
+
);
|
|
1101
|
+
|
|
1102
|
+
return tcs.Task;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1106
|
+
[AOT.MonoPInvokeCallback (typeof (GetSpacesCallbackDelegate))]
|
|
1107
|
+
#endif
|
|
1108
|
+
static void GetSpacesCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1109
|
+
{
|
|
1110
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1111
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpacesResult>)_handle.Target;
|
|
1112
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1113
|
+
|
|
1114
|
+
var task_result = new Csp.Systems.SpacesResult(_Result);
|
|
1115
|
+
|
|
1116
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1117
|
+
{
|
|
1118
|
+
return;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
tcs.SetResult(task_result);
|
|
1122
|
+
_handle.Free();
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
static readonly GetSpacesCallbackDelegate GetSpacesDelegateInstance = GetSpacesCallbackDelegateFunction;
|
|
1126
|
+
|
|
1127
|
+
/// <summary>Retrieves all spaces corresponding to the currently logged in user.</summary>
|
|
1128
|
+
/// <returns>The result for the request</returns>
|
|
1129
|
+
|
|
1130
|
+
public Task<Csp.Systems.SpacesResult> GetSpaces()
|
|
1131
|
+
{
|
|
1132
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpacesResult>(this);
|
|
1133
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1134
|
+
|
|
1135
|
+
csp_systems_SpaceSystem_GetSpaces_void_SpacesResultCallback(
|
|
1136
|
+
_ptr,
|
|
1137
|
+
GetSpacesDelegateInstance,
|
|
1138
|
+
(IntPtr)handle
|
|
1139
|
+
);
|
|
1140
|
+
|
|
1141
|
+
return tcs.Task;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1145
|
+
[AOT.MonoPInvokeCallback (typeof (GetSpacesByAttributesCallbackDelegate))]
|
|
1146
|
+
#endif
|
|
1147
|
+
static void GetSpacesByAttributesCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1148
|
+
{
|
|
1149
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1150
|
+
var tcs = (TaskCompletionSource<Csp.Systems.BasicSpacesResult>)_handle.Target;
|
|
1151
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1152
|
+
|
|
1153
|
+
var task_result = new Csp.Systems.BasicSpacesResult(_Result);
|
|
1154
|
+
|
|
1155
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1156
|
+
{
|
|
1157
|
+
return;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
tcs.SetResult(task_result);
|
|
1161
|
+
_handle.Free();
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
static readonly GetSpacesByAttributesCallbackDelegate GetSpacesByAttributesDelegateInstance =
|
|
1165
|
+
GetSpacesByAttributesCallbackDelegateFunction;
|
|
1166
|
+
|
|
1167
|
+
/// <summary>Retrieves basic space details for the spaces with the given attributes available to the logged in user.</summary>
|
|
1168
|
+
/// <remarks>Results pagination is supported through the use of ResultsSkip and ResultsMax.</remarks>
|
|
1169
|
+
/// <param name="IsDiscoverable">`true` or `false` to filter by IsDiscoverable attribute value.</param>
|
|
1170
|
+
/// <param name="IsDiscoverable">`true` or `false` to filter by RequiresInvite attribute value.</param>
|
|
1171
|
+
/// <param name="ResultsSkip">Number of result entries that will be skipped from the result. for no skip pass nullptr.</param>
|
|
1172
|
+
/// <param name="ResultsMax">Maximum number of result entries to be retrieved. for all available result entries pass</param>
|
|
1173
|
+
/// <remarks>nullptr.</remarks>
|
|
1174
|
+
/// <returns>The result for the request</returns>
|
|
1175
|
+
|
|
1176
|
+
public Task<Csp.Systems.BasicSpacesResult> GetSpacesByAttributes(
|
|
1177
|
+
bool? IsDiscoverable,
|
|
1178
|
+
bool? RequiresInvite,
|
|
1179
|
+
int? ResultsSkip,
|
|
1180
|
+
int? ResultsMax
|
|
1181
|
+
) {
|
|
1182
|
+
var tcs = new TaskCompletionSource<Csp.Systems.BasicSpacesResult>(this);
|
|
1183
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1184
|
+
|
|
1185
|
+
var IsDiscoverablePointer = IntPtr.Zero;
|
|
1186
|
+
unsafe
|
|
1187
|
+
{
|
|
1188
|
+
if (IsDiscoverable.HasValue)
|
|
1189
|
+
{
|
|
1190
|
+
var ptr = stackalloc bool[1];
|
|
1191
|
+
*ptr = IsDiscoverable.Value;
|
|
1192
|
+
IsDiscoverablePointer = (IntPtr)ptr;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
var RequiresInvitePointer = IntPtr.Zero;
|
|
1196
|
+
unsafe
|
|
1197
|
+
{
|
|
1198
|
+
if (RequiresInvite.HasValue)
|
|
1199
|
+
{
|
|
1200
|
+
var ptr = stackalloc bool[1];
|
|
1201
|
+
*ptr = RequiresInvite.Value;
|
|
1202
|
+
RequiresInvitePointer = (IntPtr)ptr;
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
var ResultsSkipPointer = IntPtr.Zero;
|
|
1206
|
+
unsafe
|
|
1207
|
+
{
|
|
1208
|
+
if (ResultsSkip.HasValue)
|
|
1209
|
+
{
|
|
1210
|
+
var ptr = stackalloc int[1];
|
|
1211
|
+
*ptr = ResultsSkip.Value;
|
|
1212
|
+
ResultsSkipPointer = (IntPtr)ptr;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
var ResultsMaxPointer = IntPtr.Zero;
|
|
1216
|
+
unsafe
|
|
1217
|
+
{
|
|
1218
|
+
if (ResultsMax.HasValue)
|
|
1219
|
+
{
|
|
1220
|
+
var ptr = stackalloc int[1];
|
|
1221
|
+
*ptr = ResultsMax.Value;
|
|
1222
|
+
ResultsMaxPointer = (IntPtr)ptr;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
csp_systems_SpaceSystem_GetSpacesByAttributes_void_boolRC_boolRC_intRC_intRC_BasicSpacesResultCallback(
|
|
1227
|
+
_ptr,
|
|
1228
|
+
IsDiscoverablePointer,
|
|
1229
|
+
RequiresInvitePointer,
|
|
1230
|
+
ResultsSkipPointer,
|
|
1231
|
+
ResultsMaxPointer,
|
|
1232
|
+
GetSpacesByAttributesDelegateInstance,
|
|
1233
|
+
(IntPtr)handle
|
|
1234
|
+
);
|
|
1235
|
+
|
|
1236
|
+
return tcs.Task;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1240
|
+
[AOT.MonoPInvokeCallback (typeof (GetSpacesByIdsCallbackDelegate))]
|
|
1241
|
+
#endif
|
|
1242
|
+
static void GetSpacesByIdsCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1243
|
+
{
|
|
1244
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1245
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpacesResult>)_handle.Target;
|
|
1246
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1247
|
+
|
|
1248
|
+
var task_result = new Csp.Systems.SpacesResult(_Result);
|
|
1249
|
+
|
|
1250
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1251
|
+
{
|
|
1252
|
+
return;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
tcs.SetResult(task_result);
|
|
1256
|
+
_handle.Free();
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
static readonly GetSpacesByIdsCallbackDelegate GetSpacesByIdsDelegateInstance =
|
|
1260
|
+
GetSpacesByIdsCallbackDelegateFunction;
|
|
1261
|
+
|
|
1262
|
+
/// <summary>Retrieves space details corresponding to the provided Space IDs</summary>
|
|
1263
|
+
/// <param name="RequestedSpaceIDs">Array of space ids for which the space details will be retrieved</param>
|
|
1264
|
+
/// <returns>The result for the request</returns>
|
|
1265
|
+
|
|
1266
|
+
public Task<Csp.Systems.SpacesResult> GetSpacesByIds(Csp.Common.Array<string> RequestedSpaceIDs)
|
|
1267
|
+
{
|
|
1268
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpacesResult>(this);
|
|
1269
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1270
|
+
|
|
1271
|
+
csp_systems_SpaceSystem_GetSpacesByIds_void_ArrayRC_SpacesResultCallback(
|
|
1272
|
+
_ptr,
|
|
1273
|
+
RequestedSpaceIDs._ptr,
|
|
1274
|
+
GetSpacesByIdsDelegateInstance,
|
|
1275
|
+
(IntPtr)handle
|
|
1276
|
+
);
|
|
1277
|
+
|
|
1278
|
+
return tcs.Task;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1282
|
+
[AOT.MonoPInvokeCallback (typeof (GetSpacesForUserIdCallbackDelegate))]
|
|
1283
|
+
#endif
|
|
1284
|
+
static void GetSpacesForUserIdCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1285
|
+
{
|
|
1286
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1287
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpacesResult>)_handle.Target;
|
|
1288
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1289
|
+
|
|
1290
|
+
var task_result = new Csp.Systems.SpacesResult(_Result);
|
|
1291
|
+
|
|
1292
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1293
|
+
{
|
|
1294
|
+
return;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
tcs.SetResult(task_result);
|
|
1298
|
+
_handle.Free();
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
static readonly GetSpacesForUserIdCallbackDelegate GetSpacesForUserIdDelegateInstance =
|
|
1302
|
+
GetSpacesForUserIdCallbackDelegateFunction;
|
|
1303
|
+
|
|
1304
|
+
/// <summary>Retrieves all spaces corresponding to the provided user ID.</summary>
|
|
1305
|
+
/// <param name="UserId">Unique id of user</param>
|
|
1306
|
+
/// <returns>The result for the request</returns>
|
|
1307
|
+
|
|
1308
|
+
public Task<Csp.Systems.SpacesResult> GetSpacesForUserId(string UserId)
|
|
1309
|
+
{
|
|
1310
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpacesResult>(this);
|
|
1311
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1312
|
+
|
|
1313
|
+
csp_systems_SpaceSystem_GetSpacesForUserId_void_StringRC_SpacesResultCallback(
|
|
1314
|
+
_ptr,
|
|
1315
|
+
UserId,
|
|
1316
|
+
GetSpacesForUserIdDelegateInstance,
|
|
1317
|
+
(IntPtr)handle
|
|
1318
|
+
);
|
|
1319
|
+
|
|
1320
|
+
return tcs.Task;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1324
|
+
[AOT.MonoPInvokeCallback (typeof (GetSpaceCallbackDelegate))]
|
|
1325
|
+
#endif
|
|
1326
|
+
static void GetSpaceCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1327
|
+
{
|
|
1328
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1329
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpaceResult>)_handle.Target;
|
|
1330
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1331
|
+
|
|
1332
|
+
var task_result = new Csp.Systems.SpaceResult(_Result);
|
|
1333
|
+
|
|
1334
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1335
|
+
{
|
|
1336
|
+
return;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
tcs.SetResult(task_result);
|
|
1340
|
+
_handle.Free();
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
static readonly GetSpaceCallbackDelegate GetSpaceDelegateInstance = GetSpaceCallbackDelegateFunction;
|
|
1344
|
+
|
|
1345
|
+
/// <summary>Retrieves a space by its unique ID.</summary>
|
|
1346
|
+
/// <param name="SpaceId">Unique id of space</param>
|
|
1347
|
+
/// <returns>The result for the request</returns>
|
|
1348
|
+
|
|
1349
|
+
public Task<Csp.Systems.SpaceResult> GetSpace(string SpaceId)
|
|
1350
|
+
{
|
|
1351
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpaceResult>(this);
|
|
1352
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1353
|
+
|
|
1354
|
+
csp_systems_SpaceSystem_GetSpace_void_StringRC_SpaceResultCallback(
|
|
1355
|
+
_ptr,
|
|
1356
|
+
SpaceId,
|
|
1357
|
+
GetSpaceDelegateInstance,
|
|
1358
|
+
(IntPtr)handle
|
|
1359
|
+
);
|
|
1360
|
+
|
|
1361
|
+
return tcs.Task;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1365
|
+
[AOT.MonoPInvokeCallback (typeof (InviteToSpaceCallbackDelegate))]
|
|
1366
|
+
#endif
|
|
1367
|
+
static void InviteToSpaceCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1368
|
+
{
|
|
1369
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1370
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1371
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1372
|
+
|
|
1373
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1374
|
+
|
|
1375
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1376
|
+
{
|
|
1377
|
+
return;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
tcs.SetResult(task_result);
|
|
1381
|
+
_handle.Free();
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
static readonly InviteToSpaceCallbackDelegate InviteToSpaceDelegateInstance =
|
|
1385
|
+
InviteToSpaceCallbackDelegateFunction;
|
|
1386
|
+
|
|
1387
|
+
/// <summary>Invites a given email to a specific space.</summary>
|
|
1388
|
+
/// <param name="Space">Space to invite to</param>
|
|
1389
|
+
/// <param name="Email">Email to invite to space</param>
|
|
1390
|
+
/// <param name="IsModeratorRole">If present and true sets the user's role in the space to "moderator", pass false or</param>
|
|
1391
|
+
/// <remarks>nullptr to leave role as default</remarks>
|
|
1392
|
+
/// <returns>The result for the request</returns>
|
|
1393
|
+
|
|
1394
|
+
public Task<Csp.Systems.NullResult> InviteToSpace(string SpaceId, string Email, bool? IsModeratorRole)
|
|
1395
|
+
{
|
|
1396
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1397
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1398
|
+
|
|
1399
|
+
var IsModeratorRolePointer = IntPtr.Zero;
|
|
1400
|
+
unsafe
|
|
1401
|
+
{
|
|
1402
|
+
if (IsModeratorRole.HasValue)
|
|
1403
|
+
{
|
|
1404
|
+
var ptr = stackalloc bool[1];
|
|
1405
|
+
*ptr = IsModeratorRole.Value;
|
|
1406
|
+
IsModeratorRolePointer = (IntPtr)ptr;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
csp_systems_SpaceSystem_InviteToSpace_void_StringRC_StringRC_boolRC_NullResultCallback(
|
|
1411
|
+
_ptr,
|
|
1412
|
+
SpaceId,
|
|
1413
|
+
Email,
|
|
1414
|
+
IsModeratorRolePointer,
|
|
1415
|
+
InviteToSpaceDelegateInstance,
|
|
1416
|
+
(IntPtr)handle
|
|
1417
|
+
);
|
|
1418
|
+
|
|
1419
|
+
return tcs.Task;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1423
|
+
[AOT.MonoPInvokeCallback (typeof (BulkInviteToSpaceCallbackDelegate))]
|
|
1424
|
+
#endif
|
|
1425
|
+
static void BulkInviteToSpaceCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1426
|
+
{
|
|
1427
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1428
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1429
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1430
|
+
|
|
1431
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1432
|
+
|
|
1433
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1434
|
+
{
|
|
1435
|
+
return;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
tcs.SetResult(task_result);
|
|
1439
|
+
_handle.Free();
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
static readonly BulkInviteToSpaceCallbackDelegate BulkInviteToSpaceDelegateInstance =
|
|
1443
|
+
BulkInviteToSpaceCallbackDelegateFunction;
|
|
1444
|
+
|
|
1445
|
+
/// <summary>Invites all the given emails to a specific space.</summary>
|
|
1446
|
+
/// <param name="Space">Space to invite to</param>
|
|
1447
|
+
/// <param name="InviteUsers">Array of users to invite with their email and role</param>
|
|
1448
|
+
/// <returns>The result for the request</returns>
|
|
1449
|
+
|
|
1450
|
+
public Task<Csp.Systems.NullResult> BulkInviteToSpace(
|
|
1451
|
+
string SpaceId,
|
|
1452
|
+
Csp.Common.Array<Csp.Systems.InviteUserRoleInfo> InviteUsers
|
|
1453
|
+
) {
|
|
1454
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1455
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1456
|
+
|
|
1457
|
+
csp_systems_SpaceSystem_BulkInviteToSpace_void_StringRC_ArrayRC_NullResultCallback(
|
|
1458
|
+
_ptr,
|
|
1459
|
+
SpaceId,
|
|
1460
|
+
InviteUsers._ptr,
|
|
1461
|
+
BulkInviteToSpaceDelegateInstance,
|
|
1462
|
+
(IntPtr)handle
|
|
1463
|
+
);
|
|
1464
|
+
|
|
1465
|
+
return tcs.Task;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1469
|
+
[AOT.MonoPInvokeCallback (typeof (GetPendingUserInvitesCallbackDelegate))]
|
|
1470
|
+
#endif
|
|
1471
|
+
static void GetPendingUserInvitesCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1472
|
+
{
|
|
1473
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1474
|
+
var tcs = (TaskCompletionSource<Csp.Systems.PendingInvitesResult>)_handle.Target;
|
|
1475
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1476
|
+
|
|
1477
|
+
var task_result = new Csp.Systems.PendingInvitesResult(_Result);
|
|
1478
|
+
|
|
1479
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1480
|
+
{
|
|
1481
|
+
return;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
tcs.SetResult(task_result);
|
|
1485
|
+
_handle.Free();
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
static readonly GetPendingUserInvitesCallbackDelegate GetPendingUserInvitesDelegateInstance =
|
|
1489
|
+
GetPendingUserInvitesCallbackDelegateFunction;
|
|
1490
|
+
|
|
1491
|
+
/// <summary>Returns an array of obfuscated email addresses, addresses of users that have not yet accepted the space invite</summary>
|
|
1492
|
+
/// <param name="Space">Space for which the invites where sent</param>
|
|
1493
|
+
/// <returns>The result for the request</returns>
|
|
1494
|
+
|
|
1495
|
+
public Task<Csp.Systems.PendingInvitesResult> GetPendingUserInvites(string SpaceId)
|
|
1496
|
+
{
|
|
1497
|
+
var tcs = new TaskCompletionSource<Csp.Systems.PendingInvitesResult>(this);
|
|
1498
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1499
|
+
|
|
1500
|
+
csp_systems_SpaceSystem_GetPendingUserInvites_void_StringRC_PendingInvitesResultCallback(
|
|
1501
|
+
_ptr,
|
|
1502
|
+
SpaceId,
|
|
1503
|
+
GetPendingUserInvitesDelegateInstance,
|
|
1504
|
+
(IntPtr)handle
|
|
1505
|
+
);
|
|
1506
|
+
|
|
1507
|
+
return tcs.Task;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1511
|
+
[AOT.MonoPInvokeCallback (typeof (RemoveUserFromSpaceCallbackDelegate))]
|
|
1512
|
+
#endif
|
|
1513
|
+
static void RemoveUserFromSpaceCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1514
|
+
{
|
|
1515
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1516
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1517
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1518
|
+
|
|
1519
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1520
|
+
|
|
1521
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1522
|
+
{
|
|
1523
|
+
return;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
tcs.SetResult(task_result);
|
|
1527
|
+
_handle.Free();
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
static readonly RemoveUserFromSpaceCallbackDelegate RemoveUserFromSpaceDelegateInstance =
|
|
1531
|
+
RemoveUserFromSpaceCallbackDelegateFunction;
|
|
1532
|
+
|
|
1533
|
+
/// <summary>Removes a user from a space by the user's unique ID.</summary>
|
|
1534
|
+
/// <param name="Space">Space to remove user from</param>
|
|
1535
|
+
/// <param name="UserId">Unique id of user</param>
|
|
1536
|
+
/// <returns>The result for the request</returns>
|
|
1537
|
+
|
|
1538
|
+
public Task<Csp.Systems.NullResult> RemoveUserFromSpace(string SpaceId, string UserId)
|
|
1539
|
+
{
|
|
1540
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1541
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1542
|
+
|
|
1543
|
+
csp_systems_SpaceSystem_RemoveUserFromSpace_void_StringRC_StringRC_NullResultCallback(
|
|
1544
|
+
_ptr,
|
|
1545
|
+
SpaceId,
|
|
1546
|
+
UserId,
|
|
1547
|
+
RemoveUserFromSpaceDelegateInstance,
|
|
1548
|
+
(IntPtr)handle
|
|
1549
|
+
);
|
|
1550
|
+
|
|
1551
|
+
return tcs.Task;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1555
|
+
[AOT.MonoPInvokeCallback (typeof (AddUserToSpaceCallbackDelegate))]
|
|
1556
|
+
#endif
|
|
1557
|
+
static void AddUserToSpaceCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1558
|
+
{
|
|
1559
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1560
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpaceResult>)_handle.Target;
|
|
1561
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1562
|
+
|
|
1563
|
+
var task_result = new Csp.Systems.SpaceResult(_Result);
|
|
1564
|
+
|
|
1565
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1566
|
+
{
|
|
1567
|
+
return;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
tcs.SetResult(task_result);
|
|
1571
|
+
_handle.Free();
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
static readonly AddUserToSpaceCallbackDelegate AddUserToSpaceDelegateInstance =
|
|
1575
|
+
AddUserToSpaceCallbackDelegateFunction;
|
|
1576
|
+
|
|
1577
|
+
/// <summary>Adds a user to a space by the user's unique ID.</summary>
|
|
1578
|
+
/// <param name="Space">Space to add user to</param>
|
|
1579
|
+
/// <param name="UserId">Unique id of user</param>
|
|
1580
|
+
/// <returns>The result for the request</returns>
|
|
1581
|
+
|
|
1582
|
+
public Task<Csp.Systems.SpaceResult> AddUserToSpace(string SpaceId, string UserId)
|
|
1583
|
+
{
|
|
1584
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpaceResult>(this);
|
|
1585
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1586
|
+
|
|
1587
|
+
csp_systems_SpaceSystem_AddUserToSpace_void_StringRC_StringRC_SpaceResultCallback(
|
|
1588
|
+
_ptr,
|
|
1589
|
+
SpaceId,
|
|
1590
|
+
UserId,
|
|
1591
|
+
AddUserToSpaceDelegateInstance,
|
|
1592
|
+
(IntPtr)handle
|
|
1593
|
+
);
|
|
1594
|
+
|
|
1595
|
+
return tcs.Task;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1599
|
+
[AOT.MonoPInvokeCallback (typeof (AddSiteInfoCallbackDelegate))]
|
|
1600
|
+
#endif
|
|
1601
|
+
static void AddSiteInfoCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1602
|
+
{
|
|
1603
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1604
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SiteResult>)_handle.Target;
|
|
1605
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1606
|
+
|
|
1607
|
+
var task_result = new Csp.Systems.SiteResult(_Result);
|
|
1608
|
+
|
|
1609
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1610
|
+
{
|
|
1611
|
+
return;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
tcs.SetResult(task_result);
|
|
1615
|
+
_handle.Free();
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
static readonly AddSiteInfoCallbackDelegate AddSiteInfoDelegateInstance = AddSiteInfoCallbackDelegateFunction;
|
|
1619
|
+
|
|
1620
|
+
/// <summary>Creates new Site information and associates it with the Space.</summary>
|
|
1621
|
+
/// <param name="Space">Space to associate the Site information with</param>
|
|
1622
|
+
/// <param name="SiteInfo">Site information to be added</param>
|
|
1623
|
+
/// <returns>Data class containing information on task result/progress</returns>
|
|
1624
|
+
|
|
1625
|
+
public Task<Csp.Systems.SiteResult> AddSiteInfo(string SpaceId, Csp.Systems.Site SiteInfo)
|
|
1626
|
+
{
|
|
1627
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SiteResult>(this);
|
|
1628
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1629
|
+
|
|
1630
|
+
csp_systems_SpaceSystem_AddSiteInfo_void_StringRC_SiteR_SiteResultCallback(
|
|
1631
|
+
_ptr,
|
|
1632
|
+
SpaceId,
|
|
1633
|
+
SiteInfo._ptr,
|
|
1634
|
+
AddSiteInfoDelegateInstance,
|
|
1635
|
+
(IntPtr)handle
|
|
1636
|
+
);
|
|
1637
|
+
|
|
1638
|
+
return tcs.Task;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1642
|
+
[AOT.MonoPInvokeCallback (typeof (RemoveSiteInfoCallbackDelegate))]
|
|
1643
|
+
#endif
|
|
1644
|
+
static void RemoveSiteInfoCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1645
|
+
{
|
|
1646
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1647
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1648
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1649
|
+
|
|
1650
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1651
|
+
|
|
1652
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1653
|
+
{
|
|
1654
|
+
return;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
tcs.SetResult(task_result);
|
|
1658
|
+
_handle.Free();
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
static readonly RemoveSiteInfoCallbackDelegate RemoveSiteInfoDelegateInstance =
|
|
1662
|
+
RemoveSiteInfoCallbackDelegateFunction;
|
|
1663
|
+
|
|
1664
|
+
/// <summary>Removes the Site information from the Space.</summary>
|
|
1665
|
+
/// <param name="Space">Space for which to remove the associated Site information</param>
|
|
1666
|
+
/// <param name="SiteInfo">Site information to be removed</param>
|
|
1667
|
+
/// <returns>The result for the request</returns>
|
|
1668
|
+
|
|
1669
|
+
public Task<Csp.Systems.NullResult> RemoveSiteInfo(string SpaceId, Csp.Systems.Site SiteInfo)
|
|
1670
|
+
{
|
|
1671
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1672
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1673
|
+
|
|
1674
|
+
csp_systems_SpaceSystem_RemoveSiteInfo_void_StringRC_SiteR_NullResultCallback(
|
|
1675
|
+
_ptr,
|
|
1676
|
+
SpaceId,
|
|
1677
|
+
SiteInfo._ptr,
|
|
1678
|
+
RemoveSiteInfoDelegateInstance,
|
|
1679
|
+
(IntPtr)handle
|
|
1680
|
+
);
|
|
1681
|
+
|
|
1682
|
+
return tcs.Task;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1686
|
+
[AOT.MonoPInvokeCallback (typeof (GetSitesInfoCallbackDelegate))]
|
|
1687
|
+
#endif
|
|
1688
|
+
static void GetSitesInfoCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1689
|
+
{
|
|
1690
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1691
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SitesCollectionResult>)_handle.Target;
|
|
1692
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1693
|
+
|
|
1694
|
+
var task_result = new Csp.Systems.SitesCollectionResult(_Result);
|
|
1695
|
+
|
|
1696
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1697
|
+
{
|
|
1698
|
+
return;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
tcs.SetResult(task_result);
|
|
1702
|
+
_handle.Free();
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
static readonly GetSitesInfoCallbackDelegate GetSitesInfoDelegateInstance =
|
|
1706
|
+
GetSitesInfoCallbackDelegateFunction;
|
|
1707
|
+
|
|
1708
|
+
/// <summary>Retrieves the Sites information associated with a Space.</summary>
|
|
1709
|
+
/// <param name="Space">Space to be queried for Site information</param>
|
|
1710
|
+
/// <returns>Data class containing information on task result/progress</returns>
|
|
1711
|
+
|
|
1712
|
+
public Task<Csp.Systems.SitesCollectionResult> GetSitesInfo(string SpaceId)
|
|
1713
|
+
{
|
|
1714
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SitesCollectionResult>(this);
|
|
1715
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1716
|
+
|
|
1717
|
+
csp_systems_SpaceSystem_GetSitesInfo_void_StringRC_SitesCollectionResultCallback(
|
|
1718
|
+
_ptr,
|
|
1719
|
+
SpaceId,
|
|
1720
|
+
GetSitesInfoDelegateInstance,
|
|
1721
|
+
(IntPtr)handle
|
|
1722
|
+
);
|
|
1723
|
+
|
|
1724
|
+
return tcs.Task;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1728
|
+
[AOT.MonoPInvokeCallback (typeof (UpdateUserRoleCallbackDelegate))]
|
|
1729
|
+
#endif
|
|
1730
|
+
static void UpdateUserRoleCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1731
|
+
{
|
|
1732
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1733
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1734
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1735
|
+
|
|
1736
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1737
|
+
|
|
1738
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1739
|
+
{
|
|
1740
|
+
return;
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
tcs.SetResult(task_result);
|
|
1744
|
+
_handle.Free();
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
static readonly UpdateUserRoleCallbackDelegate UpdateUserRoleDelegateInstance =
|
|
1748
|
+
UpdateUserRoleCallbackDelegateFunction;
|
|
1749
|
+
|
|
1750
|
+
/// <summary>Updates the space role for a particular user</summary>
|
|
1751
|
+
/// <param name="Space">The space that the requested user is part of</param>
|
|
1752
|
+
/// <param name="NewUserRoleInfo">New user role information containing the new role for the specified user</param>
|
|
1753
|
+
/// <returns>The result for the request</returns>
|
|
1754
|
+
|
|
1755
|
+
public Task<Csp.Systems.NullResult> UpdateUserRole(string SpaceId, Csp.Systems.UserRoleInfo NewUserRoleInfo)
|
|
1756
|
+
{
|
|
1757
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1758
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1759
|
+
|
|
1760
|
+
csp_systems_SpaceSystem_UpdateUserRole_void_StringRC_UserRoleInfoRC_NullResultCallback(
|
|
1761
|
+
_ptr,
|
|
1762
|
+
SpaceId,
|
|
1763
|
+
NewUserRoleInfo._ptr,
|
|
1764
|
+
UpdateUserRoleDelegateInstance,
|
|
1765
|
+
(IntPtr)handle
|
|
1766
|
+
);
|
|
1767
|
+
|
|
1768
|
+
return tcs.Task;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1772
|
+
[AOT.MonoPInvokeCallback (typeof (GetUsersRolesCallbackDelegate))]
|
|
1773
|
+
#endif
|
|
1774
|
+
static void GetUsersRolesCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1775
|
+
{
|
|
1776
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1777
|
+
var tcs = (TaskCompletionSource<Csp.Systems.UserRoleCollectionResult>)_handle.Target;
|
|
1778
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1779
|
+
|
|
1780
|
+
var task_result = new Csp.Systems.UserRoleCollectionResult(_Result);
|
|
1781
|
+
|
|
1782
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1783
|
+
{
|
|
1784
|
+
return;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
tcs.SetResult(task_result);
|
|
1788
|
+
_handle.Free();
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
static readonly GetUsersRolesCallbackDelegate GetUsersRolesDelegateInstance =
|
|
1792
|
+
GetUsersRolesCallbackDelegateFunction;
|
|
1793
|
+
|
|
1794
|
+
/// <summary>Retrieves the User role information for the User Ids that have been passed in</summary>
|
|
1795
|
+
/// <param name="Space">Space for which the User Roles will be retrieved</param>
|
|
1796
|
+
/// <param name="RequestedUserIds">Array of User Ids for which the User Roles will be retrieved</param>
|
|
1797
|
+
/// <returns>The result for the request</returns>
|
|
1798
|
+
|
|
1799
|
+
public Task<Csp.Systems.UserRoleCollectionResult> GetUsersRoles(
|
|
1800
|
+
string SpaceId,
|
|
1801
|
+
Csp.Common.Array<string> RequestedUserIds
|
|
1802
|
+
) {
|
|
1803
|
+
var tcs = new TaskCompletionSource<Csp.Systems.UserRoleCollectionResult>(this);
|
|
1804
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1805
|
+
|
|
1806
|
+
csp_systems_SpaceSystem_GetUsersRoles_void_StringRC_ArrayRC_UserRoleCollectionCallback(
|
|
1807
|
+
_ptr,
|
|
1808
|
+
SpaceId,
|
|
1809
|
+
RequestedUserIds._ptr,
|
|
1810
|
+
GetUsersRolesDelegateInstance,
|
|
1811
|
+
(IntPtr)handle
|
|
1812
|
+
);
|
|
1813
|
+
|
|
1814
|
+
return tcs.Task;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1818
|
+
[AOT.MonoPInvokeCallback (typeof (UpdateSpaceMetadataCallbackDelegate))]
|
|
1819
|
+
#endif
|
|
1820
|
+
static void UpdateSpaceMetadataCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1821
|
+
{
|
|
1822
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1823
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1824
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1825
|
+
|
|
1826
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1827
|
+
|
|
1828
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1829
|
+
{
|
|
1830
|
+
return;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
tcs.SetResult(task_result);
|
|
1834
|
+
_handle.Free();
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
static readonly UpdateSpaceMetadataCallbackDelegate UpdateSpaceMetadataDelegateInstance =
|
|
1838
|
+
UpdateSpaceMetadataCallbackDelegateFunction;
|
|
1839
|
+
|
|
1840
|
+
/// <summary>Updates the Space metadata information with the new one provided</summary>
|
|
1841
|
+
/// <param name="SpaceId">ID of Space for which the metadata will be updated</param>
|
|
1842
|
+
/// <param name="NewMetadata">New metadata information that will replace the previous one</param>
|
|
1843
|
+
/// <returns>The result for the request</returns>
|
|
1844
|
+
|
|
1845
|
+
public Task<Csp.Systems.NullResult> UpdateSpaceMetadata(
|
|
1846
|
+
string SpaceId,
|
|
1847
|
+
Csp.Common.Map<string, string> NewMetadata
|
|
1848
|
+
) {
|
|
1849
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1850
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1851
|
+
|
|
1852
|
+
csp_systems_SpaceSystem_UpdateSpaceMetadata_void_StringRC_MapRC_NullResultCallback(
|
|
1853
|
+
_ptr,
|
|
1854
|
+
SpaceId,
|
|
1855
|
+
NewMetadata._ptr,
|
|
1856
|
+
UpdateSpaceMetadataDelegateInstance,
|
|
1857
|
+
(IntPtr)handle
|
|
1858
|
+
);
|
|
1859
|
+
|
|
1860
|
+
return tcs.Task;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1864
|
+
[AOT.MonoPInvokeCallback (typeof (GetSpacesMetadataCallbackDelegate))]
|
|
1865
|
+
#endif
|
|
1866
|
+
static void GetSpacesMetadataCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1867
|
+
{
|
|
1868
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1869
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpacesMetadataResult>)_handle.Target;
|
|
1870
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1871
|
+
|
|
1872
|
+
var task_result = new Csp.Systems.SpacesMetadataResult(_Result);
|
|
1873
|
+
|
|
1874
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1875
|
+
{
|
|
1876
|
+
return;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
tcs.SetResult(task_result);
|
|
1880
|
+
_handle.Free();
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
static readonly GetSpacesMetadataCallbackDelegate GetSpacesMetadataDelegateInstance =
|
|
1884
|
+
GetSpacesMetadataCallbackDelegateFunction;
|
|
1885
|
+
|
|
1886
|
+
/// <summary>Retrieves Spaces metadata information</summary>
|
|
1887
|
+
/// <param name="Spaces">Spaces for which metadata will be retrieved</param>
|
|
1888
|
+
/// <returns>The result for the request</returns>
|
|
1889
|
+
|
|
1890
|
+
public Task<Csp.Systems.SpacesMetadataResult> GetSpacesMetadata(Csp.Common.Array<string> Spaces)
|
|
1891
|
+
{
|
|
1892
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpacesMetadataResult>(this);
|
|
1893
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1894
|
+
|
|
1895
|
+
csp_systems_SpaceSystem_GetSpacesMetadata_void_ArrayRC_SpacesMetadataResultCallback(
|
|
1896
|
+
_ptr,
|
|
1897
|
+
Spaces._ptr,
|
|
1898
|
+
GetSpacesMetadataDelegateInstance,
|
|
1899
|
+
(IntPtr)handle
|
|
1900
|
+
);
|
|
1901
|
+
|
|
1902
|
+
return tcs.Task;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1906
|
+
[AOT.MonoPInvokeCallback (typeof (GetSpaceMetadataCallbackDelegate))]
|
|
1907
|
+
#endif
|
|
1908
|
+
static void GetSpaceMetadataCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1909
|
+
{
|
|
1910
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1911
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpaceMetadataResult>)_handle.Target;
|
|
1912
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1913
|
+
|
|
1914
|
+
var task_result = new Csp.Systems.SpaceMetadataResult(_Result);
|
|
1915
|
+
|
|
1916
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1917
|
+
{
|
|
1918
|
+
return;
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
tcs.SetResult(task_result);
|
|
1922
|
+
_handle.Free();
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
static readonly GetSpaceMetadataCallbackDelegate GetSpaceMetadataDelegateInstance =
|
|
1926
|
+
GetSpaceMetadataCallbackDelegateFunction;
|
|
1927
|
+
|
|
1928
|
+
/// <summary>Retrieves the Space metadata information</summary>
|
|
1929
|
+
/// <param name="Space">Space for which the metadata will be retrieved</param>
|
|
1930
|
+
/// <returns>The result for the request</returns>
|
|
1931
|
+
|
|
1932
|
+
public Task<Csp.Systems.SpaceMetadataResult> GetSpaceMetadata(string SpaceId)
|
|
1933
|
+
{
|
|
1934
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpaceMetadataResult>(this);
|
|
1935
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1936
|
+
|
|
1937
|
+
csp_systems_SpaceSystem_GetSpaceMetadata_void_StringRC_SpaceMetadataResultCallback(
|
|
1938
|
+
_ptr,
|
|
1939
|
+
SpaceId,
|
|
1940
|
+
GetSpaceMetadataDelegateInstance,
|
|
1941
|
+
(IntPtr)handle
|
|
1942
|
+
);
|
|
1943
|
+
|
|
1944
|
+
return tcs.Task;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1948
|
+
[AOT.MonoPInvokeCallback (typeof (UpdateSpaceThumbnailCallbackDelegate))]
|
|
1949
|
+
#endif
|
|
1950
|
+
static void UpdateSpaceThumbnailCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1951
|
+
{
|
|
1952
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1953
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1954
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
1955
|
+
|
|
1956
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1957
|
+
|
|
1958
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1959
|
+
{
|
|
1960
|
+
return;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
tcs.SetResult(task_result);
|
|
1964
|
+
_handle.Free();
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
static readonly UpdateSpaceThumbnailCallbackDelegate UpdateSpaceThumbnailDelegateInstance =
|
|
1968
|
+
UpdateSpaceThumbnailCallbackDelegateFunction;
|
|
1969
|
+
|
|
1970
|
+
/// <summary>Updates the Space thumbnail image or adds one if it didn't have it previously using FileAssetDataSource</summary>
|
|
1971
|
+
/// <param name="Space">Space for which the thumbnail will be updated</param>
|
|
1972
|
+
/// <param name="NewThumbnail">New thumbnail information</param>
|
|
1973
|
+
/// <returns>The result for the request</returns>
|
|
1974
|
+
|
|
1975
|
+
public Task<Csp.Systems.NullResult> UpdateSpaceThumbnail(
|
|
1976
|
+
string SpaceId,
|
|
1977
|
+
Csp.Systems.FileAssetDataSource NewThumbnail
|
|
1978
|
+
) {
|
|
1979
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1980
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1981
|
+
|
|
1982
|
+
csp_systems_SpaceSystem_UpdateSpaceThumbnail_void_StringRC_FileAssetDataSourceRC_NullResultCallback(
|
|
1983
|
+
_ptr,
|
|
1984
|
+
SpaceId,
|
|
1985
|
+
NewThumbnail._ptr,
|
|
1986
|
+
UpdateSpaceThumbnailDelegateInstance,
|
|
1987
|
+
(IntPtr)handle
|
|
1988
|
+
);
|
|
1989
|
+
|
|
1990
|
+
return tcs.Task;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1994
|
+
[AOT.MonoPInvokeCallback (typeof (UpdateSpaceThumbnailWithBufferCallbackDelegate))]
|
|
1995
|
+
#endif
|
|
1996
|
+
static void UpdateSpaceThumbnailWithBufferCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1997
|
+
{
|
|
1998
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1999
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
2000
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
2001
|
+
|
|
2002
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
2003
|
+
|
|
2004
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
2005
|
+
{
|
|
2006
|
+
return;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
tcs.SetResult(task_result);
|
|
2010
|
+
_handle.Free();
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
static readonly UpdateSpaceThumbnailWithBufferCallbackDelegate UpdateSpaceThumbnailWithBufferDelegateInstance =
|
|
2014
|
+
UpdateSpaceThumbnailWithBufferCallbackDelegateFunction;
|
|
2015
|
+
|
|
2016
|
+
/// <summary>Updates the Space thumbnail image or adds one if it didn't have it previously using BufferAssetDataSource</summary>
|
|
2017
|
+
/// <param name="Space">Space for which the thumbnail will be updated</param>
|
|
2018
|
+
/// <param name="NewThumbnail">New thumbnail information</param>
|
|
2019
|
+
/// <returns>The result for the request</returns>
|
|
2020
|
+
|
|
2021
|
+
public Task<Csp.Systems.NullResult> UpdateSpaceThumbnailWithBuffer(
|
|
2022
|
+
string SpaceId,
|
|
2023
|
+
Csp.Systems.BufferAssetDataSource NewThumbnail
|
|
2024
|
+
) {
|
|
2025
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
2026
|
+
var handle = GCHandle.Alloc(tcs);
|
|
2027
|
+
|
|
2028
|
+
csp_systems_SpaceSystem_UpdateSpaceThumbnailWithBuffer_void_StringRC_BufferAssetDataSourceRC_NullResultCallback(
|
|
2029
|
+
_ptr,
|
|
2030
|
+
SpaceId,
|
|
2031
|
+
NewThumbnail._ptr,
|
|
2032
|
+
UpdateSpaceThumbnailWithBufferDelegateInstance,
|
|
2033
|
+
(IntPtr)handle
|
|
2034
|
+
);
|
|
2035
|
+
|
|
2036
|
+
return tcs.Task;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
2040
|
+
[AOT.MonoPInvokeCallback (typeof (GetSpaceThumbnailCallbackDelegate))]
|
|
2041
|
+
#endif
|
|
2042
|
+
static void GetSpaceThumbnailCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
2043
|
+
{
|
|
2044
|
+
var _handle = (GCHandle)_StateObject__;
|
|
2045
|
+
var tcs = (TaskCompletionSource<Csp.Systems.UriResult>)_handle.Target;
|
|
2046
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
2047
|
+
|
|
2048
|
+
var task_result = new Csp.Systems.UriResult(_Result);
|
|
2049
|
+
|
|
2050
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
2051
|
+
{
|
|
2052
|
+
return;
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
tcs.SetResult(task_result);
|
|
2056
|
+
_handle.Free();
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
static readonly GetSpaceThumbnailCallbackDelegate GetSpaceThumbnailDelegateInstance =
|
|
2060
|
+
GetSpaceThumbnailCallbackDelegateFunction;
|
|
2061
|
+
|
|
2062
|
+
/// <summary>Retrieves the space thumbnail information associated with the space</summary>
|
|
2063
|
+
/// <remarks>If the space does not have a thumbnail associated with it the result callback will be successful, the HTTP res code will be ResponseNotFound</remarks>
|
|
2064
|
+
/// <remarks>and the Uri field inside the UriResult will be empty</remarks>
|
|
2065
|
+
/// <param name="Space">Space for which the thumbnail information will be retrieved</param>
|
|
2066
|
+
/// <returns>Result class</returns>
|
|
2067
|
+
|
|
2068
|
+
public Task<Csp.Systems.UriResult> GetSpaceThumbnail(string SpaceId)
|
|
2069
|
+
{
|
|
2070
|
+
var tcs = new TaskCompletionSource<Csp.Systems.UriResult>(this);
|
|
2071
|
+
var handle = GCHandle.Alloc(tcs);
|
|
2072
|
+
|
|
2073
|
+
csp_systems_SpaceSystem_GetSpaceThumbnail_void_StringRC_UriResultCallback(
|
|
2074
|
+
_ptr,
|
|
2075
|
+
SpaceId,
|
|
2076
|
+
GetSpaceThumbnailDelegateInstance,
|
|
2077
|
+
(IntPtr)handle
|
|
2078
|
+
);
|
|
2079
|
+
|
|
2080
|
+
return tcs.Task;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
2084
|
+
[AOT.MonoPInvokeCallback (typeof (AddUserToSpaceBanListCallbackDelegate))]
|
|
2085
|
+
#endif
|
|
2086
|
+
static void AddUserToSpaceBanListCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
2087
|
+
{
|
|
2088
|
+
var _handle = (GCHandle)_StateObject__;
|
|
2089
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
2090
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
2091
|
+
|
|
2092
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
2093
|
+
|
|
2094
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
2095
|
+
{
|
|
2096
|
+
return;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
tcs.SetResult(task_result);
|
|
2100
|
+
_handle.Free();
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
static readonly AddUserToSpaceBanListCallbackDelegate AddUserToSpaceBanListDelegateInstance =
|
|
2104
|
+
AddUserToSpaceBanListCallbackDelegateFunction;
|
|
2105
|
+
|
|
2106
|
+
/// <summary>Adds user to group banned list. Banned list can be retrieved from the space</summary>
|
|
2107
|
+
/// <param name="Space">Space for which the ban will be issued on</param>
|
|
2108
|
+
/// <param name="RequestedUserId">User id to be banned from the space</param>
|
|
2109
|
+
/// <returns>The result for the request</returns>
|
|
2110
|
+
|
|
2111
|
+
public Task<Csp.Systems.NullResult> AddUserToSpaceBanList(string SpaceId, string RequestedUserId)
|
|
2112
|
+
{
|
|
2113
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
2114
|
+
var handle = GCHandle.Alloc(tcs);
|
|
2115
|
+
|
|
2116
|
+
csp_systems_SpaceSystem_AddUserToSpaceBanList_void_StringRC_StringRC_NullResultCallback(
|
|
2117
|
+
_ptr,
|
|
2118
|
+
SpaceId,
|
|
2119
|
+
RequestedUserId,
|
|
2120
|
+
AddUserToSpaceBanListDelegateInstance,
|
|
2121
|
+
(IntPtr)handle
|
|
2122
|
+
);
|
|
2123
|
+
|
|
2124
|
+
return tcs.Task;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
2128
|
+
[AOT.MonoPInvokeCallback (typeof (DeleteUserFromSpaceBanListCallbackDelegate))]
|
|
2129
|
+
#endif
|
|
2130
|
+
static void DeleteUserFromSpaceBanListCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
2131
|
+
{
|
|
2132
|
+
var _handle = (GCHandle)_StateObject__;
|
|
2133
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
2134
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
2135
|
+
|
|
2136
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
2137
|
+
|
|
2138
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
2139
|
+
{
|
|
2140
|
+
return;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
tcs.SetResult(task_result);
|
|
2144
|
+
_handle.Free();
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
static readonly DeleteUserFromSpaceBanListCallbackDelegate DeleteUserFromSpaceBanListDelegateInstance =
|
|
2148
|
+
DeleteUserFromSpaceBanListCallbackDelegateFunction;
|
|
2149
|
+
|
|
2150
|
+
/// <summary>Deletes user from group banned list. Banned list can be retrieved from the space</summary>
|
|
2151
|
+
/// <param name="Space">Space for which the Space for which the ban will be removed on</param>
|
|
2152
|
+
/// <param name="RequestedUserId">User id to have ban removed from the space</param>
|
|
2153
|
+
/// <returns>The result for the request</returns>
|
|
2154
|
+
|
|
2155
|
+
public Task<Csp.Systems.NullResult> DeleteUserFromSpaceBanList(string SpaceId, string RequestedUserId)
|
|
2156
|
+
{
|
|
2157
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
2158
|
+
var handle = GCHandle.Alloc(tcs);
|
|
2159
|
+
|
|
2160
|
+
csp_systems_SpaceSystem_DeleteUserFromSpaceBanList_void_StringRC_StringRC_NullResultCallback(
|
|
2161
|
+
_ptr,
|
|
2162
|
+
SpaceId,
|
|
2163
|
+
RequestedUserId,
|
|
2164
|
+
DeleteUserFromSpaceBanListDelegateInstance,
|
|
2165
|
+
(IntPtr)handle
|
|
2166
|
+
);
|
|
2167
|
+
|
|
2168
|
+
return tcs.Task;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
2172
|
+
[AOT.MonoPInvokeCallback (typeof (UpdateSpaceGeoLocationCallbackDelegate))]
|
|
2173
|
+
#endif
|
|
2174
|
+
static void UpdateSpaceGeoLocationCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
2175
|
+
{
|
|
2176
|
+
var _handle = (GCHandle)_StateObject__;
|
|
2177
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpaceGeoLocationResult>)_handle.Target;
|
|
2178
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
2179
|
+
|
|
2180
|
+
var task_result = new Csp.Systems.SpaceGeoLocationResult(_Result);
|
|
2181
|
+
|
|
2182
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
2183
|
+
{
|
|
2184
|
+
return;
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
tcs.SetResult(task_result);
|
|
2188
|
+
_handle.Free();
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
static readonly UpdateSpaceGeoLocationCallbackDelegate UpdateSpaceGeoLocationDelegateInstance =
|
|
2192
|
+
UpdateSpaceGeoLocationCallbackDelegateFunction;
|
|
2193
|
+
|
|
2194
|
+
/// <summary>Add or update a GeoLocation for the space</summary>
|
|
2195
|
+
/// <param name="SpaceId">Id of the space to udpate</param>
|
|
2196
|
+
/// <param name="Location">The latitude and longitude of the geo location</param>
|
|
2197
|
+
/// <param name="Orientation">The compass direction the space points. Must be between 0 (north) and 360 (inclusive)</param>
|
|
2198
|
+
/// <param name="GeoFence">Array of points that creates a geo fence for the space.</param>
|
|
2199
|
+
/// <remarks>Must be in clockwise order and start and end with the same value.</remarks>
|
|
2200
|
+
/// <returns>The result for the request</returns>
|
|
2201
|
+
|
|
2202
|
+
public Task<Csp.Systems.SpaceGeoLocationResult> UpdateSpaceGeoLocation(
|
|
2203
|
+
string SpaceId,
|
|
2204
|
+
Csp.Systems.GeoLocation? Location,
|
|
2205
|
+
float? Orientation,
|
|
2206
|
+
Csp.Common.Array<Csp.Systems.GeoLocation>? GeoFence
|
|
2207
|
+
) {
|
|
2208
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpaceGeoLocationResult>(this);
|
|
2209
|
+
var handle = GCHandle.Alloc(tcs);
|
|
2210
|
+
|
|
2211
|
+
var OrientationPointer = IntPtr.Zero;
|
|
2212
|
+
unsafe
|
|
2213
|
+
{
|
|
2214
|
+
if (Orientation.HasValue)
|
|
2215
|
+
{
|
|
2216
|
+
var ptr = stackalloc float[1];
|
|
2217
|
+
*ptr = Orientation.Value;
|
|
2218
|
+
OrientationPointer = (IntPtr)ptr;
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
csp_systems_SpaceSystem_UpdateSpaceGeoLocation_void_StringRC_GeoLocationRC_floatRC_ArrayRC_SpaceGeoLocationResultCallback(
|
|
2223
|
+
_ptr,
|
|
2224
|
+
SpaceId,
|
|
2225
|
+
Location?._ptr ?? IntPtr.Zero,
|
|
2226
|
+
OrientationPointer,
|
|
2227
|
+
GeoFence?._ptr ?? IntPtr.Zero,
|
|
2228
|
+
UpdateSpaceGeoLocationDelegateInstance,
|
|
2229
|
+
(IntPtr)handle
|
|
2230
|
+
);
|
|
2231
|
+
|
|
2232
|
+
return tcs.Task;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
2236
|
+
[AOT.MonoPInvokeCallback (typeof (GetSpaceGeoLocationCallbackDelegate))]
|
|
2237
|
+
#endif
|
|
2238
|
+
static void GetSpaceGeoLocationCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
2239
|
+
{
|
|
2240
|
+
var _handle = (GCHandle)_StateObject__;
|
|
2241
|
+
var tcs = (TaskCompletionSource<Csp.Systems.SpaceGeoLocationResult>)_handle.Target;
|
|
2242
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
2243
|
+
|
|
2244
|
+
var task_result = new Csp.Systems.SpaceGeoLocationResult(_Result);
|
|
2245
|
+
|
|
2246
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
2247
|
+
{
|
|
2248
|
+
return;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
tcs.SetResult(task_result);
|
|
2252
|
+
_handle.Free();
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
static readonly GetSpaceGeoLocationCallbackDelegate GetSpaceGeoLocationDelegateInstance =
|
|
2256
|
+
GetSpaceGeoLocationCallbackDelegateFunction;
|
|
2257
|
+
|
|
2258
|
+
/// <summary>Get the geo location details for the given space id</summary>
|
|
2259
|
+
/// <param name="SpaceId">Id of the space</param>
|
|
2260
|
+
/// <returns>The result for the request</returns>
|
|
2261
|
+
|
|
2262
|
+
public Task<Csp.Systems.SpaceGeoLocationResult> GetSpaceGeoLocation(string SpaceId)
|
|
2263
|
+
{
|
|
2264
|
+
var tcs = new TaskCompletionSource<Csp.Systems.SpaceGeoLocationResult>(this);
|
|
2265
|
+
var handle = GCHandle.Alloc(tcs);
|
|
2266
|
+
|
|
2267
|
+
csp_systems_SpaceSystem_GetSpaceGeoLocation_void_StringRC_SpaceGeoLocationResultCallback(
|
|
2268
|
+
_ptr,
|
|
2269
|
+
SpaceId,
|
|
2270
|
+
GetSpaceGeoLocationDelegateInstance,
|
|
2271
|
+
(IntPtr)handle
|
|
2272
|
+
);
|
|
2273
|
+
|
|
2274
|
+
return tcs.Task;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
2278
|
+
[AOT.MonoPInvokeCallback (typeof (DeleteSpaceGeoLocationCallbackDelegate))]
|
|
2279
|
+
#endif
|
|
2280
|
+
static void DeleteSpaceGeoLocationCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
2281
|
+
{
|
|
2282
|
+
var _handle = (GCHandle)_StateObject__;
|
|
2283
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
2284
|
+
var _this = (SpaceSystem)tcs.Task.AsyncState;
|
|
2285
|
+
|
|
2286
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
2287
|
+
|
|
2288
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
2289
|
+
{
|
|
2290
|
+
return;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
tcs.SetResult(task_result);
|
|
2294
|
+
_handle.Free();
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
static readonly DeleteSpaceGeoLocationCallbackDelegate DeleteSpaceGeoLocationDelegateInstance =
|
|
2298
|
+
DeleteSpaceGeoLocationCallbackDelegateFunction;
|
|
2299
|
+
|
|
2300
|
+
/// <summary>Delete the geo location information of the space</summary>
|
|
2301
|
+
/// <param name="SpaceId">Id of the space to be udpated</param>
|
|
2302
|
+
/// <returns>The result for the request</returns>
|
|
2303
|
+
|
|
2304
|
+
public Task<Csp.Systems.NullResult> DeleteSpaceGeoLocation(string SpaceId)
|
|
2305
|
+
{
|
|
2306
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
2307
|
+
var handle = GCHandle.Alloc(tcs);
|
|
2308
|
+
|
|
2309
|
+
csp_systems_SpaceSystem_DeleteSpaceGeoLocation_void_StringRC_NullResultCallback(
|
|
2310
|
+
_ptr,
|
|
2311
|
+
SpaceId,
|
|
2312
|
+
DeleteSpaceGeoLocationDelegateInstance,
|
|
2313
|
+
(IntPtr)handle
|
|
2314
|
+
);
|
|
2315
|
+
|
|
2316
|
+
return tcs.Task;
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
protected SpaceSystem() { }
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
|