diff --git a/Scripts.meta b/Assets.meta similarity index 77% rename from Scripts.meta rename to Assets.meta index f83558eeb0821a2d003f25f60b169f900fff6d17..6b2059d31d22293bff595998c1fb20d9e080f0ea 100644 --- a/Scripts.meta +++ b/Assets.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: be2764d34364d6e4e8b4811c9fe72a5b +guid: 78306bf200d797d43b085b7da02b346e folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Editor.meta b/Assets/Editor.meta similarity index 77% rename from Editor.meta rename to Assets/Editor.meta index 6994f74f0a97610f55751022a1e9ad5d0e74b9a7..d7d338a23de205579ff8b149d4bcbb548a421d37 100644 --- a/Editor.meta +++ b/Assets/Editor.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5fec767e3d1954e4e8af5dc2b3d4dd5d +guid: 653e904517771514ab9628529a0317d7 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Editor/WorldStorageInfoEditor.cs b/Assets/Editor/WorldStorageInfoEditor.cs new file mode 100644 index 0000000000000000000000000000000000000000..834c764bfa772ac4f5ecf71ca9422809dde73269 --- /dev/null +++ b/Assets/Editor/WorldStorageInfoEditor.cs @@ -0,0 +1,42 @@ +// +// ARF - Augmented Reality Framework (ETSI ISG ARF) +// +// Copyright 2022 ETSI +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Last change: June 2022 +// + +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; + +[CustomEditor(typeof(WorldStorageInfo))] +public class WorldStorageInfoEditor : Editor +{ + public override void OnInspectorGUI() + { + base.OnInspectorGUI(); + + EditorGUILayout.Space(); + WorldStorageInfo srv = (WorldStorageInfo)target; + + string state = srv.GetServerState(); + EditorGUILayout.LabelField("Server State", state); + + string api = srv.GetAPIVersion(); + EditorGUILayout.LabelField("OpenAPI Version", api); + } +} diff --git a/Scripts/RESTRequest.cs.meta b/Assets/Editor/WorldStorageInfoEditor.cs.meta similarity index 83% rename from Scripts/RESTRequest.cs.meta rename to Assets/Editor/WorldStorageInfoEditor.cs.meta index 4a125516e0e35138a9ec33b495da2729141b4773..56276dc6af5c7cb27370cc760358a380015d3ec4 100644 --- a/Scripts/RESTRequest.cs.meta +++ b/Assets/Editor/WorldStorageInfoEditor.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d6c7598eb0c8e2948826a04685e1e3c3 +guid: f32282169eeffb6418d67e0303320c45 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Runtime.meta b/Assets/Runtime.meta new file mode 100644 index 0000000000000000000000000000000000000000..4a46a316d34c00d5ba53899b5c754063aee47a49 --- /dev/null +++ b/Assets/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9f9d2ca3af2d00643b6a16d11277df9a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Runtime/REST.meta b/Assets/Runtime/REST.meta new file mode 100644 index 0000000000000000000000000000000000000000..4452abe52f262c4e4a9d07155bc61aafd052a5a8 --- /dev/null +++ b/Assets/Runtime/REST.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2d42c05c2b33530478b6ec053f84a09d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Runtime/REST/AdminRequest.cs b/Assets/Runtime/REST/AdminRequest.cs new file mode 100644 index 0000000000000000000000000000000000000000..461adcaa4cbc351f0448c2d6904bc2bfd27f4311 --- /dev/null +++ b/Assets/Runtime/REST/AdminRequest.cs @@ -0,0 +1,64 @@ +// +// ARF - Augmented Reality Framework (ETSI ISG ARF) +// +// Copyright 2022 ETSI +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Last change: June 2022 +// + +#define USING_OPENAPI_GENERATOR // alt. is Swagger + +using System.IO; +using System.Collections.Generic; +using UnityEngine; + +#if USING_OPENAPI_GENERATOR +using Org.OpenAPITools.Api; +using Org.OpenAPITools.Model; +#else +using IO.Swagger.Api; +using IO.Swagger.Model; +#endif + +#if UNITY_EDITOR +namespace ETSI.ARF.WorldStorage.REST +{ + public class AdminRequest + { + static public string GetAdminInfo(WorldStorageServer ws) + { + DefaultApi api = new DefaultApi(ws.URI); + string state = api.GetAdmin(); + Debug.Log("Server State: " + state); + return state; + } + + static public string GetVersion(WorldStorageServer ws) + { + DefaultApi api = new DefaultApi(ws.URI); + string vers = api.GetVersion(); + Debug.Log("Using API Version: " + vers); + return vers; + } + + static public string Ping (WorldStorageServer ws) + { + DefaultApi api = new DefaultApi(ws.URI); + api.GetPing(); + return "IsAlive"; + } + } +} +#endif \ No newline at end of file diff --git a/Editor/CreateARTrackable.cs.meta b/Assets/Runtime/REST/AdminRequest.cs.meta similarity index 83% rename from Editor/CreateARTrackable.cs.meta rename to Assets/Runtime/REST/AdminRequest.cs.meta index c8d7fb07f3381194035bfdd86bde1d0ea9b49ac6..27fcc8faac1b1d80037c700e95c3308afc96d7bc 100644 --- a/Editor/CreateARTrackable.cs.meta +++ b/Assets/Runtime/REST/AdminRequest.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a1647df9b48bf4f49a664a929fff57ff +guid: 0fa015c6a7b3a8e4884833d8f672c20c MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Runtime/REST/TrackableRequest.cs b/Assets/Runtime/REST/TrackableRequest.cs new file mode 100644 index 0000000000000000000000000000000000000000..df1c382f106bd117b49f4c55b3d3d04897008a20 --- /dev/null +++ b/Assets/Runtime/REST/TrackableRequest.cs @@ -0,0 +1,81 @@ +// +// ARF - Augmented Reality Framework (ETSI ISG ARF) +// +// Copyright 2022 ETSI +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Last change: June 2022 +// + +#define USING_OPENAPI_GENERATOR // alt. is Swagger + +using System.IO; +using System.Collections.Generic; +using UnityEngine; + +#if USING_OPENAPI_GENERATOR +using Org.OpenAPITools.Api; +using Org.OpenAPITools.Model; +#else +using IO.Swagger.Api; +using IO.Swagger.Model; +#endif + +#if UNITY_EDITOR +namespace ETSI.ARF.WorldStorage.REST +{ + public class TrackableRequest + { + static public string AddTrackable(WorldStorageServer ws, Trackable trackable) + { + Debug.Log("Posting Add Trackable to Server"); + TrackablesApi api = new TrackablesApi(ws.URI); + string result = api.AddTrackable(trackable); + Debug.Log(result); + return result; + } + + static public string UpdateTrackable(WorldStorageServer ws, Trackable trackable) + { + Debug.Log("Posting Add Trackable to Server"); + TrackablesApi api = new TrackablesApi(ws.URI); + string result = api.ModifyTrackable(trackable); + Debug.Log(result); + return result; + } + + static public List GetAllTrackables(WorldStorageServer ws) + { + TrackablesApi api = new TrackablesApi(ws.URI); + List result = api.GetTrackables(); + return result; + } + + static public Trackable GetTrackable(WorldStorageServer ws, string uuid) + { + System.Guid _uuid = System.Guid.Parse(uuid); + TrackablesApi api = new TrackablesApi(ws.URI); + Trackable result = api.GetTrackableById(_uuid); + return result; + } + + static public void DeleteTrackable(WorldStorageServer ws, string uuid) + { + System.Guid _uuid = System.Guid.Parse(uuid); + TrackablesApi api = new TrackablesApi(ws.URI); + api.DeleteTrackable(_uuid); + } + } +} +#endif \ No newline at end of file diff --git a/Assets/Runtime/REST/TrackableRequest.cs.meta b/Assets/Runtime/REST/TrackableRequest.cs.meta new file mode 100644 index 0000000000000000000000000000000000000000..63e45e36aec74c8cafa9fb50e0e6aa6d6c9e1308 --- /dev/null +++ b/Assets/Runtime/REST/TrackableRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f492e20bc218f884b907369b8eca15a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Runtime/REST/WorldAnchorRequest.cs b/Assets/Runtime/REST/WorldAnchorRequest.cs new file mode 100644 index 0000000000000000000000000000000000000000..23377aa06a23118df9984206f1a85228fb16f115 --- /dev/null +++ b/Assets/Runtime/REST/WorldAnchorRequest.cs @@ -0,0 +1,81 @@ +// +// ARF - Augmented Reality Framework (ETSI ISG ARF) +// +// Copyright 2022 ETSI +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Last change: June 2022 +// + +#define USING_OPENAPI_GENERATOR // alt. is Swagger + +using System.IO; +using System.Collections.Generic; +using UnityEngine; + +#if USING_OPENAPI_GENERATOR +using Org.OpenAPITools.Api; +using Org.OpenAPITools.Model; +#else +using IO.Swagger.Api; +using IO.Swagger.Model; +#endif + +#if UNITY_EDITOR +namespace ETSI.ARF.WorldStorage.REST +{ + public class WorldAnchorRequest + { + static public string AddWorldAnchor(WorldStorageServer ws, WorldAnchor anchor) + { + Debug.Log("Posting Add World Anchor to Server"); + WorldAnchorsApi api = new WorldAnchorsApi(ws.URI); + string result = api.AddWorldAnchor(anchor); + Debug.Log(result); + return result; + } + + static public string UpdateWorldAnchor(WorldStorageServer ws, WorldAnchor anchor) + { + Debug.Log("Posting Add World Anchor to Server"); + WorldAnchorsApi api = new WorldAnchorsApi(ws.URI); + string result = api.ModifyWorldAnchor(anchor); + Debug.Log(result); + return result; + } + + static public List GetAllWorldAnchors(WorldStorageServer ws) + { + WorldAnchorsApi api = new WorldAnchorsApi(ws.URI); + List result = api.GetWorldAnchors(); + return result; + } + + static public WorldAnchor GetWorldAnchor(WorldStorageServer ws, string uuid) + { + System.Guid _uuid = System.Guid.Parse(uuid); + WorldAnchorsApi api = new WorldAnchorsApi(ws.URI); + WorldAnchor result = api.GetWorldAnchorById(_uuid); + return result; + } + + static public void DeleteWorldAnchor(WorldStorageServer ws, string uuid) + { + System.Guid _uuid = System.Guid.Parse(uuid); + WorldAnchorsApi api = new WorldAnchorsApi(ws.URI); + api.DeleteWorldAnchor(_uuid); + } + } +} +#endif \ No newline at end of file diff --git a/Assets/Runtime/REST/WorldAnchorRequest.cs.meta b/Assets/Runtime/REST/WorldAnchorRequest.cs.meta new file mode 100644 index 0000000000000000000000000000000000000000..77f7b39d3a8c2b9c90d38db6f9e8f29f54593c8a --- /dev/null +++ b/Assets/Runtime/REST/WorldAnchorRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: eb674a7de52fc6d4a822e7d07c1dd294 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Runtime/REST/WorldLinkRequest.cs b/Assets/Runtime/REST/WorldLinkRequest.cs new file mode 100644 index 0000000000000000000000000000000000000000..3dd1c6753d55be5ea534b46c6f48e0af04444b79 --- /dev/null +++ b/Assets/Runtime/REST/WorldLinkRequest.cs @@ -0,0 +1,81 @@ +// +// ARF - Augmented Reality Framework (ETSI ISG ARF) +// +// Copyright 2022 ETSI +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Last change: June 2022 +// + +#define USING_OPENAPI_GENERATOR // alt. is Swagger + +using System.IO; +using System.Collections.Generic; +using UnityEngine; + +#if USING_OPENAPI_GENERATOR +using Org.OpenAPITools.Api; +using Org.OpenAPITools.Model; +#else +using IO.Swagger.Api; +using IO.Swagger.Model; +#endif + +#if UNITY_EDITOR +namespace ETSI.ARF.WorldStorage.REST +{ + public class WorldLinkRequest + { + static public string AddWorldLink(WorldStorageServer ws, WorldLink link) + { + Debug.Log("Posting Add Trackable to Server"); + WorldLinksApi api = new WorldLinksApi(ws.URI); + string result = api.AddWorldLink(link); + Debug.Log(result); + return result; + } + + static public string UpdateWorldLink(WorldStorageServer ws, WorldLink link) + { + Debug.Log("Posting Add Trackable to Server"); + WorldLinksApi api = new WorldLinksApi(ws.URI); + string result = api.ModifyWorldLink(link); + Debug.Log(result); + return result; + } + + static public List GetAllWorldLinks(WorldStorageServer ws) + { + WorldLinksApi api = new WorldLinksApi(ws.URI); + List result = api.GetWorldLinks(); + return result; + } + + static public WorldLink GetWorldLink(WorldStorageServer ws, string uuid) + { + System.Guid _uuid = System.Guid.Parse(uuid); + WorldLinksApi api = new WorldLinksApi(ws.URI); + WorldLink result = api.GetWorldLinkById(_uuid); + return result; + } + + static public void DeleteWorldLink(WorldStorageServer ws, string uuid) + { + System.Guid _uuid = System.Guid.Parse(uuid); + WorldLinksApi api = new WorldLinksApi(ws.URI); + api.DeleteWorldLink(_uuid); + } + } +} +#endif \ No newline at end of file diff --git a/Assets/Runtime/REST/WorldLinkRequest.cs.meta b/Assets/Runtime/REST/WorldLinkRequest.cs.meta new file mode 100644 index 0000000000000000000000000000000000000000..a4f3a5c9042a0447ac7f9aca673f439384151a16 --- /dev/null +++ b/Assets/Runtime/REST/WorldLinkRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9d17b7a1eac66b74ea32aac83c01aa2f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Runtime/WorldStorageInfo.cs b/Assets/Runtime/WorldStorageInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..ff48e805c3d744293819aabb30b388ce6fa3d240 --- /dev/null +++ b/Assets/Runtime/WorldStorageInfo.cs @@ -0,0 +1,47 @@ +// +// ARF - Augmented Reality Framework (ETSI ISG ARF) +// +// Copyright 2022 ETSI +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Last change: June 2022 +// + +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using ETSI.ARF.WorldStorage; + +public class WorldStorageInfo : MonoBehaviour +{ + public WorldStorageServer worldStorageServer; + + public bool isServerAlive() + { + if (worldStorageServer == null) return false; + return !string.IsNullOrEmpty(ETSI.ARF.WorldStorage.REST.AdminRequest.Ping(worldStorageServer)); + } + + public string GetServerState() + { + if (worldStorageServer == null) return "No Server Defined!"; + return ETSI.ARF.WorldStorage.REST.AdminRequest.GetAdminInfo(worldStorageServer); + } + + public string GetAPIVersion() + { + if (worldStorageServer == null) return "Unknown Version!"; + return ETSI.ARF.WorldStorage.REST.AdminRequest.GetVersion(worldStorageServer); + } +} diff --git a/Assets/Runtime/WorldStorageInfo.cs.meta b/Assets/Runtime/WorldStorageInfo.cs.meta new file mode 100644 index 0000000000000000000000000000000000000000..925ddd3ef3b1749c22d616be686594a3afada665 --- /dev/null +++ b/Assets/Runtime/WorldStorageInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 02da7adcc65f4694684d71e61d88070b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scriptables.meta b/Assets/Scriptables.meta new file mode 100644 index 0000000000000000000000000000000000000000..ea6eb7d4a14e002a00fd40093bc81dc1d037dafd --- /dev/null +++ b/Assets/Scriptables.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9f7902ce03cc2b2458df8c561ff1f55e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scriptables/WorldStorageServer.cs b/Assets/Scriptables/WorldStorageServer.cs new file mode 100644 index 0000000000000000000000000000000000000000..db34de9c3b9836061e048faa39fffc03a216c876 --- /dev/null +++ b/Assets/Scriptables/WorldStorageServer.cs @@ -0,0 +1,42 @@ +// +// ARF - Augmented Reality Framework (ETSI ISG ARF) +// +// Copyright 2022 ETSI +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Last change: June 2022 +// + +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; + +namespace ETSI.ARF.WorldStorage +{ + [System.Serializable] + [CreateAssetMenu(fileName = "ARFWorldStorageServer", menuName = "ARF World Storage/Create Server", order = 1)] + public class WorldStorageServer : ScriptableObject + { + [SerializeField] public string serverName = "myServerName"; + [SerializeField] public string company = ""; + [SerializeField] public string basePath = "https://"; + [SerializeField] public int port = 8080; + + [Space(8)] + [SerializeField] public WorldStorageUser currentUser = null; + + public string URI => basePath + ":" + port.ToString(); + } +} \ No newline at end of file diff --git a/Assets/Scriptables/WorldStorageServer.cs.meta b/Assets/Scriptables/WorldStorageServer.cs.meta new file mode 100644 index 0000000000000000000000000000000000000000..6e5eff8940af94e3a9afd6b75fec72f9af0cc1a3 --- /dev/null +++ b/Assets/Scriptables/WorldStorageServer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e4b7be4c33f68d0418c3b4e1a7053d91 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scriptables/WorldStorageUser.cs b/Assets/Scriptables/WorldStorageUser.cs new file mode 100644 index 0000000000000000000000000000000000000000..4222734f59500273473bab74badab03c81843240 --- /dev/null +++ b/Assets/Scriptables/WorldStorageUser.cs @@ -0,0 +1,36 @@ +// +// ARF - Augmented Reality Framework (ETSI ISG ARF) +// +// Copyright 2022 ETSI +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Last change: June 2022 +// + +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; + +namespace ETSI.ARF.WorldStorage +{ + [System.Serializable] + [CreateAssetMenu(fileName = "ARFWorldStorageUser", menuName = "ARF World Storage/Create User", order = 1)] + public class WorldStorageUser : ScriptableObject + { + [SerializeField] public string userName = "myName"; + [SerializeField] public string company = ""; + [SerializeField] public string UUID = System.Guid.Empty.ToString(); + } +} \ No newline at end of file diff --git a/Assets/Scriptables/WorldStorageUser.cs.meta b/Assets/Scriptables/WorldStorageUser.cs.meta new file mode 100644 index 0000000000000000000000000000000000000000..149c496f1a8ccd41077072f9142bdbbd12f1631c --- /dev/null +++ b/Assets/Scriptables/WorldStorageUser.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8a1e3e7961eae84468e6ee20d5b09ffd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/CreateARTrackable.cs b/Editor/CreateARTrackable.cs deleted file mode 100644 index 59ccab25bdd0cee1a8f61af2a3e650fc0e355add..0000000000000000000000000000000000000000 --- a/Editor/CreateARTrackable.cs +++ /dev/null @@ -1,108 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEditor; -using UnityEngine.UIElements; - -public class CreateARTrackable : EditorWindow -{ - bool groupEnabled; - - string uid = "0"; - string basePath = "http://localhost:8080"; - string type = "?"; - string unit = "?"; - Vector2Int dim; - - [MenuItem("ISG-ARF/AR Trackables and Anchors Editor")] - public static void ShowWindow() - { - EditorWindow wnd = GetWindow(); - wnd.titleContent = new GUIContent("ETSI ARF - Authoring Editor"); - } - - /*public void CreateGUI() - { - rootVisualElement.Add(new Label("Hello")); - }*/ - - void OnGUI() - { - Color ori = GUI.backgroundColor; - Color button = new Color(0.5f, 1, 0); - GUILayoutOption[] opt = new GUILayoutOption[] { null }; - - // Title - GUILayout.Label("Augmented Reality Framework", EditorStyles.boldLabel); - GUILayout.Label("BSD 3-Clause License"); - GUILayout.Label("Copyright(c) 2022, ETSI"); - - EditorGUILayout.Space(); - basePath = EditorGUILayout.TextField("Base Path", basePath); - - EditorGUILayout.Space(); - GUILayout.Label("AR Trackable:", EditorStyles.boldLabel); - GUILayout.BeginVertical("", "window"); - { - uid = EditorGUILayout.TextField("Creator UID", uid); - GUILayout.Button("Generate UID"); - - EditorGUILayout.Space(); - GUILayout.Label("Metadata:", EditorStyles.boldLabel); - type = EditorGUILayout.TextField("Trackable Type", type); - unit = EditorGUILayout.TextField("Unit System", unit); - - EditorGUILayout.Space(); - dim = EditorGUILayout.Vector2IntField("Dimension", dim); - - EditorGUILayout.Space(); - GUILayout.Button("Payload from File.."); - - EditorGUILayout.Space(); - GUILayout.Label("Optional Parameters:", EditorStyles.boldLabel); - //GUILayout.BeginVertical("Optional Parameters", "window"); - { - groupEnabled = EditorGUILayout.BeginToggleGroup("Key Values", groupEnabled); - EditorGUILayout.IntField("Number of KeyValues", 0); - EditorGUILayout.Space(); - EditorGUILayout.TextField("Key", ""); - EditorGUILayout.TextField("Value", ""); - EditorGUILayout.EndToggleGroup(); - } - //GUILayout.EndVertical(); - } - GUILayout.EndVertical(); - - GUI.backgroundColor = button; - if (GUILayout.Button("Create Trackable")) - { - RESTRequest.PostAddTrackable(basePath); - Debug.Log("PostAddTrackable"); - } - GUI.backgroundColor = ori; - - EditorGUILayout.Space(); - GUILayout.Label("AR World Anchor:", EditorStyles.boldLabel); - GUILayout.BeginVertical("", "window"); - { - uid = EditorGUILayout.TextField("Creator UID", uid); - GUILayout.Button("Generate UID"); - - EditorGUILayout.Space(); - GUILayout.Label("Metadata:", EditorStyles.boldLabel); - type = EditorGUILayout.TextField("Anchor Type", type); - unit = EditorGUILayout.TextField("Unit System", unit); - } - GUILayout.EndVertical(); - - GUI.backgroundColor = button; - if (GUILayout.Button("Create Anchor")) - { - RESTRequest.PostAddWorldAnchor(basePath); - Debug.Log("PostAddWorldAnchor"); - } - GUI.backgroundColor = ori; - } - - -} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..369a2512139f698ce91876fe56d973ad63690d21 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2022 ETSI + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/LICENSE.meta b/LICENSE.meta new file mode 100644 index 0000000000000000000000000000000000000000..5709793a97c7d8782ae16e0132b8b28603436434 --- /dev/null +++ b/LICENSE.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 99185a33197b0004aa5b140e1fdc108f +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins.meta b/Plugins.meta index 41ca7025b9ad87b00b25f710f9a28a40d03e2760..6300d402ae8c9f3789b6b14f902c65b64cbbbc0f 100644 --- a/Plugins.meta +++ b/Plugins.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: dd7d9751c977f5c46b3f59d2e8d10197 +guid: 9b41a6c85d75773499fee865a0a245e6 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Plugins/JsonSubTypes.dll.meta b/Plugins/JsonSubTypes.dll.meta index 64dc94c03dbd713eec6c13cbec0d98806046b1dc..3025c8ddfda6913154444d4adf80d329b9e9daa9 100644 --- a/Plugins/JsonSubTypes.dll.meta +++ b/Plugins/JsonSubTypes.dll.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7661796a672c33d4da3af558bf4290f8 +guid: 5d8884e5b43d30c44a0dd7f6d04e4930 PluginImporter: externalObjects: {} serializedVersion: 2 @@ -7,7 +7,7 @@ PluginImporter: executionOrder: {} defineConstraints: [] isPreloaded: 0 - isOverridable: 1 + isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: diff --git a/Plugins/Newtonsoft.Json.dll.meta b/Plugins/Newtonsoft.Json.dll.meta index d77fb2a9db67fca9e75de9cf3685d9ec2358b0ed..b98603e67c0b248a1b998802766faea3aeb49f83 100644 --- a/Plugins/Newtonsoft.Json.dll.meta +++ b/Plugins/Newtonsoft.Json.dll.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a1b6adabb31d3bd41bb648467a7fef8e +guid: 8e129f0a00a01af4e9687332997ac12e PluginImporter: externalObjects: {} serializedVersion: 2 @@ -7,7 +7,7 @@ PluginImporter: executionOrder: {} defineConstraints: [] isPreloaded: 0 - isOverridable: 1 + isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: diff --git a/Plugins/Org.OpenAPITools.dll b/Plugins/Org.OpenAPITools.dll index c7d871049a4b55c26cec01772ae43771a72c3f71..08853b7fcc62536f192d6716bbed7dfc3fe82bc3 100644 Binary files a/Plugins/Org.OpenAPITools.dll and b/Plugins/Org.OpenAPITools.dll differ diff --git a/Plugins/Org.OpenAPITools.dll.meta b/Plugins/Org.OpenAPITools.dll.meta index fe8fbf08e7a03394f28fe3629645d23571c1341f..5fdc847178b556c18edf4172bd10d3b6c14c520a 100644 --- a/Plugins/Org.OpenAPITools.dll.meta +++ b/Plugins/Org.OpenAPITools.dll.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3f13c3a93a457ec449aade03f44b9ebe +guid: 6a54ead1df0e6334aa8d4520cae26cab PluginImporter: externalObjects: {} serializedVersion: 2 @@ -7,7 +7,7 @@ PluginImporter: executionOrder: {} defineConstraints: [] isPreloaded: 0 - isOverridable: 1 + isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: diff --git a/Plugins/Org.OpenAPITools.xml b/Plugins/Org.OpenAPITools.xml index 83cd91451aebdf378c0f42dc8ec5f316619589d2..748dfe1ba81001daf100f1a596a418f03082da55 100644 --- a/Plugins/Org.OpenAPITools.xml +++ b/Plugins/Org.OpenAPITools.xml @@ -31,9 +31,49 @@ Provides a factory method hook for the creation of exceptions. + + + Get the state of the server. + + + + + Thrown when fails to make API call + string + + + + Get the state of the server. + + + + + Thrown when fails to make API call + ApiResponse of string + + + + Test the server availability. + + + + + Thrown when fails to make API call + string + + + + Test the server availability. + + + + + Thrown when fails to make API call + ApiResponse of string + - Get the version of the API + Get the version of the ARF API. @@ -43,7 +83,7 @@ - Get the version of the API + Get the version of the ARF API. @@ -51,29 +91,31 @@ Thrown when fails to make API call ApiResponse of string - + - Test the server availability + Get the state of the server. Thrown when fails to make API call - + Cancellation Token to cancel request (optional) + Task of string - + - Test the server availability + Get the state of the server. Thrown when fails to make API call - ApiResponse of Object(void) + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) - + - Get the version of the API + Test the server availability. @@ -82,9 +124,9 @@ Cancellation Token to cancel request (optional) Task of string - + - Get the version of the API + Test the server availability. @@ -93,27 +135,27 @@ Cancellation Token to cancel request (optional) Task of ApiResponse (string) - + - Test the server availability + Get the version of the ARF API. Thrown when fails to make API call Cancellation Token to cancel request (optional) - Task of void + Task of string - + - Test the server availability + Get the version of the ARF API. Thrown when fails to make API call Cancellation Token to cancel request (optional) - Task of ApiResponse + Task of ApiResponse (string) @@ -166,65 +208,95 @@ Header field value. - + - Get the version of the API + Get the state of the server. Thrown when fails to make API call string - + - Get the version of the API + Get the state of the server. Thrown when fails to make API call ApiResponse of string - + - Get the version of the API + Get the state of the server. Thrown when fails to make API call Cancellation Token to cancel request (optional) Task of string - + - Get the version of the API + Get the state of the server. Thrown when fails to make API call Cancellation Token to cancel request (optional) Task of ApiResponse (string) - + - Test the server availability + Test the server availability. Thrown when fails to make API call - + string + + + + Test the server availability. + + Thrown when fails to make API call + ApiResponse of string + + + + Test the server availability. + + Thrown when fails to make API call + Cancellation Token to cancel request (optional) + Task of string + + + + Test the server availability. + + Thrown when fails to make API call + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Get the version of the ARF API. + + Thrown when fails to make API call + string - + - Test the server availability + Get the version of the ARF API. Thrown when fails to make API call - ApiResponse of Object(void) + ApiResponse of string - + - Test the server availability + Get the version of the ARF API. Thrown when fails to make API call Cancellation Token to cancel request (optional) - Task of void + Task of string - + - Test the server availability + Get the version of the ARF API. Thrown when fails to make API call Cancellation Token to cancel request (optional) - Task of ApiResponse + Task of ApiResponse (string) @@ -244,168 +316,190 @@ - Create a trackable + Create a Trackable. - + Create a new Trackable from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created Trackable. Thrown when fails to make API call - the trackable to be added to the world storage + The Trackable to be added to the world storage. string - Create a trackable + Create a Trackable. - + Create a new Trackable from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created Trackable. Thrown when fails to make API call - the trackable to be added to the world storage + The Trackable to be added to the world storage. ApiResponse of string - + - Deletes a trackable + Delete a Trackable. - + Delete a single Trackable stored in the world storage from its ID. Thrown when fails to make API call - trackable id to delete - + Trackable UUID to delete. + string - + - Deletes a trackable + Delete a Trackable. - + Delete a single Trackable stored in the world storage from its ID. Thrown when fails to make API call - trackable id to delete - ApiResponse of Object(void) + Trackable UUID to delete. + ApiResponse of string - + - Find a trackable by his ID + Find a Trackable by its UUID. - + Get a single Trackable stored in the world storage from its ID. Thrown when fails to make API call - ID of the trackable to retrieve + UUID of the Trackable to retrieve. Trackable - + - Find a trackable by his ID + Find a Trackable by its UUID. - + Get a single Trackable stored in the world storage from its ID. Thrown when fails to make API call - ID of the trackable to retrieve + UUID of the Trackable to retrieve. ApiResponse of Trackable - returns the list of all trackables defined by the world storage. + Return all the Trackables. - + Get all the Trackables currently being stored in the world storage. Thrown when fails to make API call List<Trackable> - returns the list of all trackables defined by the world storage. + Return all the Trackables. - + Get all the Trackables currently being stored in the world storage. Thrown when fails to make API call ApiResponse of List<Trackable> + + + Modify a Trackable. + + + Modify an existing Trackable given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The Trackable to be modified in the world storage. + string + + + + Modify a Trackable. + + + Modify an existing Trackable given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The Trackable to be modified in the world storage. + ApiResponse of string + - Create a trackable + Create a Trackable. - + Create a new Trackable from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created Trackable. Thrown when fails to make API call - the trackable to be added to the world storage + The Trackable to be added to the world storage. Cancellation Token to cancel request (optional) Task of string - Create a trackable + Create a Trackable. - + Create a new Trackable from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created Trackable. Thrown when fails to make API call - the trackable to be added to the world storage + The Trackable to be added to the world storage. Cancellation Token to cancel request (optional) Task of ApiResponse (string) - + - Deletes a trackable + Delete a Trackable. - + Delete a single Trackable stored in the world storage from its ID. Thrown when fails to make API call - trackable id to delete + Trackable UUID to delete. Cancellation Token to cancel request (optional) - Task of void + Task of string - + - Deletes a trackable + Delete a Trackable. - + Delete a single Trackable stored in the world storage from its ID. Thrown when fails to make API call - trackable id to delete + Trackable UUID to delete. Cancellation Token to cancel request (optional) - Task of ApiResponse + Task of ApiResponse (string) - + - Find a trackable by his ID + Find a Trackable by its UUID. - + Get a single Trackable stored in the world storage from its ID. Thrown when fails to make API call - ID of the trackable to retrieve + UUID of the Trackable to retrieve. Cancellation Token to cancel request (optional) Task of Trackable - + - Find a trackable by his ID + Find a Trackable by its UUID. - + Get a single Trackable stored in the world storage from its ID. Thrown when fails to make API call - ID of the trackable to retrieve + UUID of the Trackable to retrieve. Cancellation Token to cancel request (optional) Task of ApiResponse (Trackable) - returns the list of all trackables defined by the world storage. + Return all the Trackables. - + Get all the Trackables currently being stored in the world storage. Thrown when fails to make API call Cancellation Token to cancel request (optional) @@ -413,15 +507,39 @@ - returns the list of all trackables defined by the world storage. + Return all the Trackables. - + Get all the Trackables currently being stored in the world storage. Thrown when fails to make API call Cancellation Token to cancel request (optional) Task of ApiResponse (List<Trackable>) + + + Modify a Trackable. + + + Modify an existing Trackable given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The Trackable to be modified in the world storage. + Cancellation Token to cancel request (optional) + Task of string + + + + Modify a Trackable. + + + Modify an existing Trackable given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The Trackable to be modified in the world storage. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + Represents a collection of functions to interact with the API endpoints @@ -453,165 +571,1117 @@ The base path - + + + Sets the base path of the API client. + + The base path + + + + Gets the default header. + + Dictionary of HTTP header + + + + Add default header. + + Header field name. + Header field value. + + + + + Create a Trackable. Create a new Trackable from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created Trackable. + + Thrown when fails to make API call + The Trackable to be added to the world storage. + string + + + + Create a Trackable. Create a new Trackable from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created Trackable. + + Thrown when fails to make API call + The Trackable to be added to the world storage. + ApiResponse of string + + + + Create a Trackable. Create a new Trackable from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created Trackable. + + Thrown when fails to make API call + The Trackable to be added to the world storage. + Cancellation Token to cancel request (optional) + Task of string + + + + Create a Trackable. Create a new Trackable from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created Trackable. + + Thrown when fails to make API call + The Trackable to be added to the world storage. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Delete a Trackable. Delete a single Trackable stored in the world storage from its ID. + + Thrown when fails to make API call + Trackable UUID to delete. + string + + + + Delete a Trackable. Delete a single Trackable stored in the world storage from its ID. + + Thrown when fails to make API call + Trackable UUID to delete. + ApiResponse of string + + + + Delete a Trackable. Delete a single Trackable stored in the world storage from its ID. + + Thrown when fails to make API call + Trackable UUID to delete. + Cancellation Token to cancel request (optional) + Task of string + + + + Delete a Trackable. Delete a single Trackable stored in the world storage from its ID. + + Thrown when fails to make API call + Trackable UUID to delete. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Find a Trackable by its UUID. Get a single Trackable stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the Trackable to retrieve. + Trackable + + + + Find a Trackable by its UUID. Get a single Trackable stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the Trackable to retrieve. + ApiResponse of Trackable + + + + Find a Trackable by its UUID. Get a single Trackable stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the Trackable to retrieve. + Cancellation Token to cancel request (optional) + Task of Trackable + + + + Find a Trackable by its UUID. Get a single Trackable stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the Trackable to retrieve. + Cancellation Token to cancel request (optional) + Task of ApiResponse (Trackable) + + + + Return all the Trackables. Get all the Trackables currently being stored in the world storage. + + Thrown when fails to make API call + List<Trackable> + + + + Return all the Trackables. Get all the Trackables currently being stored in the world storage. + + Thrown when fails to make API call + ApiResponse of List<Trackable> + + + + Return all the Trackables. Get all the Trackables currently being stored in the world storage. + + Thrown when fails to make API call + Cancellation Token to cancel request (optional) + Task of List<Trackable> + + + + Return all the Trackables. Get all the Trackables currently being stored in the world storage. + + Thrown when fails to make API call + Cancellation Token to cancel request (optional) + Task of ApiResponse (List<Trackable>) + + + + Modify a Trackable. Modify an existing Trackable given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The Trackable to be modified in the world storage. + string + + + + Modify a Trackable. Modify an existing Trackable given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The Trackable to be modified in the world storage. + ApiResponse of string + + + + Modify a Trackable. Modify an existing Trackable given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The Trackable to be modified in the world storage. + Cancellation Token to cancel request (optional) + Task of string + + + + Modify a Trackable. Modify an existing Trackable given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The Trackable to be modified in the world storage. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Gets or sets the configuration object + + An instance of the Configuration + + + + Provides a factory method hook for the creation of exceptions. + + + + + Represents a collection of functions to interact with the API endpoints + + + + + Create a World Anchor. + + + Create a new World Anchor from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Anchor. + + Thrown when fails to make API call + The World Anchor to be added to the world storage. + string + + + + Create a World Anchor. + + + Create a new World Anchor from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Anchor. + + Thrown when fails to make API call + The World Anchor to be added to the world storage. + ApiResponse of string + + + + Delete a World Anchor. + + + Delete a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + World Anchor UUID to delete. + string + + + + Delete a World Anchor. + + + Delete a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + World Anchor UUID to delete. + ApiResponse of string + + + + Find a World Anchor by its UUID. + + + Get a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Anchor to retrieve. + WorldAnchor + + + + Find a World Anchor by its UUID. + + + Get a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Anchor to retrieve. + ApiResponse of WorldAnchor + + + + Return all the World Anchors. + + + Get all the World Anchors currently being stored in the world storage. + + Thrown when fails to make API call + List<WorldAnchor> + + + + Return all the World Anchors. + + + Get all the World Anchors currently being stored in the world storage. + + Thrown when fails to make API call + ApiResponse of List<WorldAnchor> + + + + Modify a World Anchor. + + + Modify an existing World Anchor given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Anchor to be modified in the world storage. + string + + + + Modify a World Anchor. + + + Modify an existing World Anchor given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Anchor to be modified in the world storage. + ApiResponse of string + + + + Create a World Anchor. + + + Create a new World Anchor from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Anchor. + + Thrown when fails to make API call + The World Anchor to be added to the world storage. + Cancellation Token to cancel request (optional) + Task of string + + + + Create a World Anchor. + + + Create a new World Anchor from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Anchor. + + Thrown when fails to make API call + The World Anchor to be added to the world storage. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Delete a World Anchor. + + + Delete a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + World Anchor UUID to delete. + Cancellation Token to cancel request (optional) + Task of string + + + + Delete a World Anchor. + + + Delete a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + World Anchor UUID to delete. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Find a World Anchor by its UUID. + + + Get a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Anchor to retrieve. + Cancellation Token to cancel request (optional) + Task of WorldAnchor + + + + Find a World Anchor by its UUID. + + + Get a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Anchor to retrieve. + Cancellation Token to cancel request (optional) + Task of ApiResponse (WorldAnchor) + + + + Return all the World Anchors. + + + Get all the World Anchors currently being stored in the world storage. + + Thrown when fails to make API call + Cancellation Token to cancel request (optional) + Task of List<WorldAnchor> + + + + Return all the World Anchors. + + + Get all the World Anchors currently being stored in the world storage. + + Thrown when fails to make API call + Cancellation Token to cancel request (optional) + Task of ApiResponse (List<WorldAnchor>) + + + + Modify a World Anchor. + + + Modify an existing World Anchor given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Anchor to be modified in the world storage. + Cancellation Token to cancel request (optional) + Task of string + + + + Modify a World Anchor. + + + Modify an existing World Anchor given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Anchor to be modified in the world storage. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Represents a collection of functions to interact with the API endpoints + + + + + Initializes a new instance of the class. + + + + + + Initializes a new instance of the class + + + + + + Initializes a new instance of the class + using Configuration object + + An instance of Configuration + + + + + Gets the base path of the API client. + + The base path + + + + Sets the base path of the API client. + + The base path + + + + Gets the default header. + + Dictionary of HTTP header + + + + Add default header. + + Header field name. + Header field value. + + + + + Create a World Anchor. Create a new World Anchor from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Anchor. + + Thrown when fails to make API call + The World Anchor to be added to the world storage. + string + + + + Create a World Anchor. Create a new World Anchor from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Anchor. + + Thrown when fails to make API call + The World Anchor to be added to the world storage. + ApiResponse of string + + + + Create a World Anchor. Create a new World Anchor from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Anchor. + + Thrown when fails to make API call + The World Anchor to be added to the world storage. + Cancellation Token to cancel request (optional) + Task of string + + + + Create a World Anchor. Create a new World Anchor from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Anchor. + + Thrown when fails to make API call + The World Anchor to be added to the world storage. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Delete a World Anchor. Delete a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + World Anchor UUID to delete. + string + + + + Delete a World Anchor. Delete a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + World Anchor UUID to delete. + ApiResponse of string + + + + Delete a World Anchor. Delete a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + World Anchor UUID to delete. + Cancellation Token to cancel request (optional) + Task of string + + + + Delete a World Anchor. Delete a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + World Anchor UUID to delete. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Find a World Anchor by its UUID. Get a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Anchor to retrieve. + WorldAnchor + + + + Find a World Anchor by its UUID. Get a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Anchor to retrieve. + ApiResponse of WorldAnchor + + + + Find a World Anchor by its UUID. Get a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Anchor to retrieve. + Cancellation Token to cancel request (optional) + Task of WorldAnchor + + + + Find a World Anchor by its UUID. Get a single World Anchor stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Anchor to retrieve. + Cancellation Token to cancel request (optional) + Task of ApiResponse (WorldAnchor) + + + + Return all the World Anchors. Get all the World Anchors currently being stored in the world storage. + + Thrown when fails to make API call + List<WorldAnchor> + + + + Return all the World Anchors. Get all the World Anchors currently being stored in the world storage. + + Thrown when fails to make API call + ApiResponse of List<WorldAnchor> + + + + Return all the World Anchors. Get all the World Anchors currently being stored in the world storage. + + Thrown when fails to make API call + Cancellation Token to cancel request (optional) + Task of List<WorldAnchor> + + + + Return all the World Anchors. Get all the World Anchors currently being stored in the world storage. + + Thrown when fails to make API call + Cancellation Token to cancel request (optional) + Task of ApiResponse (List<WorldAnchor>) + + + + Modify a World Anchor. Modify an existing World Anchor given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Anchor to be modified in the world storage. + string + + + + Modify a World Anchor. Modify an existing World Anchor given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Anchor to be modified in the world storage. + ApiResponse of string + + + + Modify a World Anchor. Modify an existing World Anchor given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Anchor to be modified in the world storage. + Cancellation Token to cancel request (optional) + Task of string + + + + Modify a World Anchor. Modify an existing World Anchor given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Anchor to be modified in the world storage. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Gets or sets the configuration object + + An instance of the Configuration + + + + Provides a factory method hook for the creation of exceptions. + + + + + Represents a collection of functions to interact with the API endpoints + + + + + Create a World Link between elements (world anchors and/or trackables). + + + Create a new World Link from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Link. + + Thrown when fails to make API call + The link to be added to the world storage. + string + + + + Create a World Link between elements (world anchors and/or trackables). + + + Create a new World Link from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Link. + + Thrown when fails to make API call + The link to be added to the world storage. + ApiResponse of string + + + + Delete a World Link. + + + Delete a single World Link stored in the world storage from its ID. + + Thrown when fails to make API call + World Link id to delete. + string + + + + Delete a World Link. + + + Delete a single World Link stored in the world storage from its ID. + + Thrown when fails to make API call + World Link id to delete. + ApiResponse of string + + + + Find a World Link by its UUID. + + + Get a single World Link stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Link to retrieve. + WorldLink + + + + Find a World Link by its UUID. + + + Get a single World Link stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Link to retrieve. + ApiResponse of WorldLink + + + + Return all World Links. + + + Get all the World Links currently being stored in the world storage. + + Thrown when fails to make API call + List<WorldLink> + + + + Return all World Links. + + + Get all the World Links currently being stored in the world storage. + + Thrown when fails to make API call + ApiResponse of List<WorldLink> + + + + Modify a World Link. + + + Modify an existing World Link given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Link to be modified in the world storage. + string + + + + Modify a World Link. + + + Modify an existing World Link given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Link to be modified in the world storage. + ApiResponse of string + + + + Create a World Link between elements (world anchors and/or trackables). + + + Create a new World Link from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Link. + + Thrown when fails to make API call + The link to be added to the world storage. + Cancellation Token to cancel request (optional) + Task of string + + + + Create a World Link between elements (world anchors and/or trackables). + + + Create a new World Link from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Link. + + Thrown when fails to make API call + The link to be added to the world storage. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Delete a World Link. + + + Delete a single World Link stored in the world storage from its ID. + + Thrown when fails to make API call + World Link id to delete. + Cancellation Token to cancel request (optional) + Task of string + + + + Delete a World Link. + + + Delete a single World Link stored in the world storage from its ID. + + Thrown when fails to make API call + World Link id to delete. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Find a World Link by its UUID. + + + Get a single World Link stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Link to retrieve. + Cancellation Token to cancel request (optional) + Task of WorldLink + + + + Find a World Link by its UUID. + + + Get a single World Link stored in the world storage from its ID. + + Thrown when fails to make API call + UUID of the World Link to retrieve. + Cancellation Token to cancel request (optional) + Task of ApiResponse (WorldLink) + + + + Return all World Links. + + + Get all the World Links currently being stored in the world storage. + + Thrown when fails to make API call + Cancellation Token to cancel request (optional) + Task of List<WorldLink> + + + + Return all World Links. + + + Get all the World Links currently being stored in the world storage. + + Thrown when fails to make API call + Cancellation Token to cancel request (optional) + Task of ApiResponse (List<WorldLink>) + + + + Modify a World Link. + + + Modify an existing World Link given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Link to be modified in the world storage. + Cancellation Token to cancel request (optional) + Task of string + + + + Modify a World Link. + + + Modify an existing World Link given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** + + Thrown when fails to make API call + The World Link to be modified in the world storage. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) + + + + Represents a collection of functions to interact with the API endpoints + + + + + Initializes a new instance of the class. + + + + + + Initializes a new instance of the class + + + + + + Initializes a new instance of the class + using Configuration object + + An instance of Configuration + + + + + Gets the base path of the API client. + + The base path + + + + Sets the base path of the API client. + + The base path + + + + Gets the default header. + + Dictionary of HTTP header + + + + Add default header. + + Header field name. + Header field value. + + + + + Create a World Link between elements (world anchors and/or trackables). Create a new World Link from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Link. + + Thrown when fails to make API call + The link to be added to the world storage. + string + + - Sets the base path of the API client. + Create a World Link between elements (world anchors and/or trackables). Create a new World Link from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Link. - The base path + Thrown when fails to make API call + The link to be added to the world storage. + ApiResponse of string - + - Gets the default header. + Create a World Link between elements (world anchors and/or trackables). Create a new World Link from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Link. - Dictionary of HTTP header + Thrown when fails to make API call + The link to be added to the world storage. + Cancellation Token to cancel request (optional) + Task of string - + - Add default header. + Create a World Link between elements (world anchors and/or trackables). Create a new World Link from a json object containing all the required informations and add it to the world storage. <br>As a result you will get the ID of the newly created World Link. - Header field name. - Header field value. - + Thrown when fails to make API call + The link to be added to the world storage. + Cancellation Token to cancel request (optional) + Task of ApiResponse (string) - + - Create a trackable + Delete a World Link. Delete a single World Link stored in the world storage from its ID. Thrown when fails to make API call - the trackable to be added to the world storage + World Link id to delete. string - + - Create a trackable + Delete a World Link. Delete a single World Link stored in the world storage from its ID. Thrown when fails to make API call - the trackable to be added to the world storage + World Link id to delete. ApiResponse of string - + - Create a trackable + Delete a World Link. Delete a single World Link stored in the world storage from its ID. Thrown when fails to make API call - the trackable to be added to the world storage + World Link id to delete. Cancellation Token to cancel request (optional) Task of string - + - Create a trackable + Delete a World Link. Delete a single World Link stored in the world storage from its ID. Thrown when fails to make API call - the trackable to be added to the world storage + World Link id to delete. Cancellation Token to cancel request (optional) Task of ApiResponse (string) - + - Deletes a trackable + Find a World Link by its UUID. Get a single World Link stored in the world storage from its ID. Thrown when fails to make API call - trackable id to delete - + UUID of the World Link to retrieve. + WorldLink - + - Deletes a trackable + Find a World Link by its UUID. Get a single World Link stored in the world storage from its ID. Thrown when fails to make API call - trackable id to delete - ApiResponse of Object(void) + UUID of the World Link to retrieve. + ApiResponse of WorldLink - + - Deletes a trackable + Find a World Link by its UUID. Get a single World Link stored in the world storage from its ID. Thrown when fails to make API call - trackable id to delete + UUID of the World Link to retrieve. Cancellation Token to cancel request (optional) - Task of void + Task of WorldLink - + - Deletes a trackable + Find a World Link by its UUID. Get a single World Link stored in the world storage from its ID. Thrown when fails to make API call - trackable id to delete + UUID of the World Link to retrieve. Cancellation Token to cancel request (optional) - Task of ApiResponse + Task of ApiResponse (WorldLink) - + - Find a trackable by his ID + Return all World Links. Get all the World Links currently being stored in the world storage. Thrown when fails to make API call - ID of the trackable to retrieve - Trackable + List<WorldLink> - + - Find a trackable by his ID + Return all World Links. Get all the World Links currently being stored in the world storage. Thrown when fails to make API call - ID of the trackable to retrieve - ApiResponse of Trackable + ApiResponse of List<WorldLink> - + - Find a trackable by his ID + Return all World Links. Get all the World Links currently being stored in the world storage. Thrown when fails to make API call - ID of the trackable to retrieve Cancellation Token to cancel request (optional) - Task of Trackable + Task of List<WorldLink> - + - Find a trackable by his ID + Return all World Links. Get all the World Links currently being stored in the world storage. Thrown when fails to make API call - ID of the trackable to retrieve Cancellation Token to cancel request (optional) - Task of ApiResponse (Trackable) + Task of ApiResponse (List<WorldLink>) - + - returns the list of all trackables defined by the world storage. + Modify a World Link. Modify an existing World Link given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** Thrown when fails to make API call - List<Trackable> + The World Link to be modified in the world storage. + string - + - returns the list of all trackables defined by the world storage. + Modify a World Link. Modify an existing World Link given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** Thrown when fails to make API call - ApiResponse of List<Trackable> + The World Link to be modified in the world storage. + ApiResponse of string - + - returns the list of all trackables defined by the world storage. + Modify a World Link. Modify an existing World Link given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** Thrown when fails to make API call + The World Link to be modified in the world storage. Cancellation Token to cancel request (optional) - Task of List<Trackable> + Task of string - + - returns the list of all trackables defined by the world storage. + Modify a World Link. Modify an existing World Link given a json object containing all the required informations. <br> **Please note that ID of the object is required in the JSON** Thrown when fails to make API call + The World Link to be modified in the world storage. Cancellation Token to cancel request (optional) - Task of ApiResponse (List<Trackable>) + Task of ApiResponse (string) - + Gets or sets the configuration object An instance of the Configuration - + Provides a factory method hook for the creation of exceptions. @@ -1178,9 +2248,96 @@ Initializes a new instance of the class. + + + AttachedObjects + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A Universally Unique IDentifier identifying the link. (required). + A Universally Unique IDentifier identifying a world anchor or trackable. (required). + A Universally Unique IDentifier identifying a world anchor or trackable. (required). + typeFrom (required). + typeTo (required). + + + + Returns the string presentation of the object + + String presentation of the object + + + + Returns the JSON string presentation of the object + + JSON string presentation of the object + + + + Returns true if objects are equal + + Object to be compared + Boolean + + + + Returns true if AttachedObjects instances are equal + + Instance of AttachedObjects to be compared + Boolean + + + + Gets the hash code + + Hash code + + + + To validate all properties of the instance + + Validation context + Validation Result + + + + Gets or Sets TypeFrom + + + + + Gets or Sets TypeTo + + + + + A Universally Unique IDentifier identifying the link. + + A Universally Unique IDentifier identifying the link. + + + + A Universally Unique IDentifier identifying a world anchor or trackable. + + A Universally Unique IDentifier identifying a world anchor or trackable. + + + + A Universally Unique IDentifier identifying a world anchor or trackable. + + A Universally Unique IDentifier identifying a world anchor or trackable. + - EncodingInformationStructure + An object holding the info of a Trackable`'`s encoding informations `:` the data format and the version. @@ -1192,7 +2349,7 @@ Initializes a new instance of the class. - Identifier of the target framework (required). + Identifier of the target framework. (required). The version of the format (required). @@ -1236,9 +2393,9 @@ - Identifier of the target framework + Identifier of the target framework. - Identifier of the target framework + Identifier of the target framework. @@ -1248,9 +2405,9 @@ - Identifier of the target framework + Identifier of the target framework. - Identifier of the target framework + Identifier of the target framework. @@ -1267,6 +2424,21 @@ Enum ARCORE for value: ARCORE + + + Enum VUFORIA for value: VUFORIA + + + + + Enum ARUCO for value: ARUCO + + + + + Enum OTHER for value: OTHER + + Error @@ -1333,9 +2505,30 @@ Gets or Sets Message + + + Type of a world representaion object. + + Type of a world representaion object. + + + + Enum Trackable for value: Trackable + + + + + Enum WorldAnchor for value: WorldAnchor + + + + + Enum NotIdentified for value: NotIdentified + + - Trackable + An element representing a Trackable object in the real world. @@ -1343,18 +2536,20 @@ Initializes a new instance of the class. - + Initializes a new instance of the class. - A Universally Unique IDentifier identifying the creator of the trackable (required). - Extensible list of trackable types possibly handled by complient World Storage implementation (required). + An Universally Unique IDentifier identifying the Trackable (RFC 4122).. + A human readable name for the Trackable. (required). + An Universally Unique IDentifier identifying the creator of the Trackable (a person, a team or a company). (required). + Extensible list of Trackable types, possibly handled by complient world storage implementation. (required). trackableEncodingInformation (required). - The data provided to create the trackable in a specific format handled by the World Storage service. (required). - Coordinate reference system of the trackable, a 4*4 matrix (rowmajor) represented by a float vector. - Unit of length (required). - Bounding box of the Trackable, {width, length, 0} for 2D trackables, {width, length, depth} for 3D trackables (required). - List of additional parameters to be stored with the trackable. (required). + The data provided to create the Trackable in a specific format handled by the world storage service. (required). + Coordinate reference system of the world anchor, a 4*4 matrix (rowmajor) represented by a float vector. (required). + unit (required). + Size object in format {width, length, depth}. (required). + List of additional parameters to be stored with the object. (required). @@ -1397,21 +2592,32 @@ - Extensible list of trackable types possibly handled by complient World Storage implementation + Extensible list of Trackable types, possibly handled by complient world storage implementation. + + Extensible list of Trackable types, possibly handled by complient world storage implementation. + + + + Gets or Sets Unit + + + + + An Universally Unique IDentifier identifying the Trackable (RFC 4122). - Extensible list of trackable types possibly handled by complient World Storage implementation + An Universally Unique IDentifier identifying the Trackable (RFC 4122). - + - Unit of length + A human readable name for the Trackable. - Unit of length + A human readable name for the Trackable. - + - A Universally Unique IDentifier identifying the creator of the trackable + An Universally Unique IDentifier identifying the creator of the Trackable (a person, a team or a company). - A Universally Unique IDentifier identifying the creator of the trackable + An Universally Unique IDentifier identifying the creator of the Trackable (a person, a team or a company). @@ -1420,33 +2626,33 @@ - The data provided to create the trackable in a specific format handled by the World Storage service. + The data provided to create the Trackable in a specific format handled by the world storage service. - The data provided to create the trackable in a specific format handled by the World Storage service. + The data provided to create the Trackable in a specific format handled by the world storage service. - Coordinate reference system of the trackable, a 4*4 matrix (rowmajor) represented by a float vector + Coordinate reference system of the world anchor, a 4*4 matrix (rowmajor) represented by a float vector. - Coordinate reference system of the trackable, a 4*4 matrix (rowmajor) represented by a float vector + Coordinate reference system of the world anchor, a 4*4 matrix (rowmajor) represented by a float vector. - + - Bounding box of the Trackable, {width, length, 0} for 2D trackables, {width, length, depth} for 3D trackables + Size object in format {width, length, depth}. - Bounding box of the Trackable, {width, length, 0} for 2D trackables, {width, length, depth} for 3D trackables + Size object in format {width, length, depth}. - + - List of additional parameters to be stored with the trackable. + List of additional parameters to be stored with the object. - List of additional parameters to be stored with the trackable. + List of additional parameters to be stored with the object. - Extensible list of trackable types possibly handled by complient World Storage implementation + Extensible list of Trackable types, possibly handled by complient world storage implementation. - Extensible list of trackable types possibly handled by complient World Storage implementation + Extensible list of Trackable types, possibly handled by complient world storage implementation. @@ -1463,71 +2669,292 @@ Enum MAP for value: MAP + + + Enum GEOPOSE for value: GEOPOSE + + Enum OTHER for value: OTHER - + - Unit of length + Unit of length. - Unit of length + Unit of length. - + Enum MM for value: MM - + Enum CM for value: CM - + Enum DM for value: DM - + Enum M for value: M - + Enum DAM for value: DAM - + Enum HM for value: HM - + Enum KM for value: KM - + Enum INCH for value: INCH - + Enum FOOT for value: FOOT - + Enum YARD for value: YARD - + Enum MILE for value: MILE + + + An element describing a pose in the world graph. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + An Universally Unique IDentifier identifying the World Anchor (RFC 4122).. + A human readable name for the World Anchor. (required). + An Universally Unique IDentifier identifying the creator of the World Anchor. (required). + Coordinate reference system of the world anchor, a 4*4 matrix (rowmajor) represented by a float vector. (required). + unit (required). + Size object in format {width, length, depth}. (required). + List of additional parameters to be stored with the object. (required). + + + + Returns the string presentation of the object + + String presentation of the object + + + + Returns the JSON string presentation of the object + + JSON string presentation of the object + + + + Returns true if objects are equal + + Object to be compared + Boolean + + + + Returns true if WorldAnchor instances are equal + + Instance of WorldAnchor to be compared + Boolean + + + + Gets the hash code + + Hash code + + + + To validate all properties of the instance + + Validation context + Validation Result + + + + Gets or Sets Unit + + + + + An Universally Unique IDentifier identifying the World Anchor (RFC 4122). + + An Universally Unique IDentifier identifying the World Anchor (RFC 4122). + + + + A human readable name for the World Anchor. + + A human readable name for the World Anchor. + + + + An Universally Unique IDentifier identifying the creator of the World Anchor. + + An Universally Unique IDentifier identifying the creator of the World Anchor. + + + + Coordinate reference system of the world anchor, a 4*4 matrix (rowmajor) represented by a float vector. + + Coordinate reference system of the world anchor, a 4*4 matrix (rowmajor) represented by a float vector. + + + + Size object in format {width, length, depth}. + + Size object in format {width, length, depth}. + + + + List of additional parameters to be stored with the object. + + List of additional parameters to be stored with the object. + + + + An object holding the info of a transform between two elements. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + An Universally Unique IDentifier identifying the World Link (RFC 4122).. + An Universally Unique IDentifier identifying the creator of the World Link. (required). + An Universally Unique IDentifier identifying a World Anchor or Trackable. (required). + An Universally Unique IDentifier identifying a World Anchor or Trackable. (required). + typeFrom (required). + typeTo (required). + Coordinate reference system of the world anchor, a 4*4 matrix (rowmajor) represented by a float vector. (required). + unit (required). + List of additional parameters to be stored with the object. (required). + + + + Returns the string presentation of the object + + String presentation of the object + + + + Returns the JSON string presentation of the object + + JSON string presentation of the object + + + + Returns true if objects are equal + + Object to be compared + Boolean + + + + Returns true if WorldLink instances are equal + + Instance of WorldLink to be compared + Boolean + + + + Gets the hash code + + Hash code + + + + To validate all properties of the instance + + Validation context + Validation Result + + + + Gets or Sets TypeFrom + + + + + Gets or Sets TypeTo + + + + + Gets or Sets Unit + + + + + An Universally Unique IDentifier identifying the World Link (RFC 4122). + + An Universally Unique IDentifier identifying the World Link (RFC 4122). + + + + An Universally Unique IDentifier identifying the creator of the World Link. + + An Universally Unique IDentifier identifying the creator of the World Link. + + + + An Universally Unique IDentifier identifying a World Anchor or Trackable. + + An Universally Unique IDentifier identifying a World Anchor or Trackable. + + + + An Universally Unique IDentifier identifying a World Anchor or Trackable. + + An Universally Unique IDentifier identifying a World Anchor or Trackable. + + + + Coordinate reference system of the world anchor, a 4*4 matrix (rowmajor) represented by a float vector. + + Coordinate reference system of the world anchor, a 4*4 matrix (rowmajor) represented by a float vector. + + + + List of additional parameters to be stored with the object. + + List of additional parameters to be stored with the object. + diff --git a/Plugins/Org.OpenAPITools.xml.meta b/Plugins/Org.OpenAPITools.xml.meta index 45667430bfe2384d25e0b123051e001be457c1fd..257c25d2f6b08af150aeb787d7759fd38a99148c 100644 --- a/Plugins/Org.OpenAPITools.xml.meta +++ b/Plugins/Org.OpenAPITools.xml.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a6fd1a744414f5345bb987d7d94b52cf +guid: b91ec31882c185d4e9da9441ebe609e2 TextScriptImporter: externalObjects: {} userData: diff --git a/Plugins/RestSharp.dll.meta b/Plugins/RestSharp.dll.meta index 3840a62f722008b3ab495b5b799bb148b4803bde..ad5dfc89734ed152983843bbf0c302b96b3a9f5d 100644 --- a/Plugins/RestSharp.dll.meta +++ b/Plugins/RestSharp.dll.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0f636a05597f4ac46aea146c3646740f +guid: 434491b56b23fa2449fb310cafa1ddef PluginImporter: externalObjects: {} serializedVersion: 2 @@ -7,7 +7,7 @@ PluginImporter: executionOrder: {} defineConstraints: [] isPreloaded: 0 - isOverridable: 1 + isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: diff --git a/Scripts/RESTRequest.cs b/Scripts/RESTRequest.cs deleted file mode 100644 index d538dffbafec80477571587ee33058ca14200497..0000000000000000000000000000000000000000 --- a/Scripts/RESTRequest.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// ESTI - ARF -// -// First Version 2020 Patrick Harms -// Modified: -// - 2021, Sylvain Renault, Fraunhofer HHI -// -// -#define USING_OPENAPI_GENERATOR // alt. is Swagger - -using System.IO; -using System.Collections.Generic; -using UnityEngine; - -#if USING_OPENAPI_GENERATOR -using Org.OpenAPITools.Api; -using Org.OpenAPITools.Model; -#else -using IO.Swagger.Api; -using IO.Swagger.Model; -#endif - -#if UNITY_EDITOR -public class RESTRequest -{ - static public void PostAddTrackable(string basePath) - { - Debug.Log("Posting Add Trackable to Server"); - TrackablesApi api = new TrackablesApi(basePath); - Debug.Log("created Trackables API"); - - EncodingInformationStructure trackableEncodingInformation = - new EncodingInformationStructure(EncodingInformationStructure.DataFormatEnum.ARCORE, "1.0"); - - List trackableDimension = new List { 5, 5, 5 }; - - byte[] bytes = new byte[100]; - - for (int i = 0; i < bytes.Length; i++) - { - bytes[i] = (byte)i; - } - - Dictionary> keyvalueTagList = new Dictionary>(); - - keyvalueTagList.Add("key", new List { "value" }); - - Trackable trackable = new Trackable(new System.Guid("67584958-3456-2342-4564-456723332345"), - Trackable.TrackableTypeEnum.FIDUCIALMARKER, - trackableEncodingInformation, - bytes, - new List() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }, - Trackable.UnitSystemEnum.M, - trackableDimension, - keyvalueTagList); - - string result = api.AddTrackable(trackable); - - Debug.Log(result); - } - - static public void PostAddWorldAnchor(string basePath) - { - Debug.Log("Posting Add World Anchor to Server"); - //WorldAnchorsApi api = new WorldAnchorsApi(basePath); - Debug.Log("created World Anchors API"); - - //string result = api.AddWorldAnchor("testCreatorUID", "METERS"); - - //Debug.Log(result); - } -} -#endif \ No newline at end of file diff --git a/de.thn.uec.isg.arf.worldstoragemanager.asmdef b/de.thn.uec.isg.arf.worldstoragemanager.asmdef deleted file mode 100644 index 6c59b35904cb1f27ee3a2b347c2f07daba175af0..0000000000000000000000000000000000000000 --- a/de.thn.uec.isg.arf.worldstoragemanager.asmdef +++ /dev/null @@ -1,3 +0,0 @@ -{ - "name": "World Storage Manager" -} diff --git a/etsi.isg.arf.worldstorage.asmdef b/etsi.isg.arf.worldstorage.asmdef new file mode 100644 index 0000000000000000000000000000000000000000..1558c6c09ea6afa324f57d81c919fc3e8cd52efb --- /dev/null +++ b/etsi.isg.arf.worldstorage.asmdef @@ -0,0 +1,14 @@ +{ + "name": "World Storage Package", + "rootNamespace": "", + "references": [], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/de.thn.uec.isg.arf.worldstoragemanager.asmdef.meta b/etsi.isg.arf.worldstorage.asmdef.meta similarity index 76% rename from de.thn.uec.isg.arf.worldstoragemanager.asmdef.meta rename to etsi.isg.arf.worldstorage.asmdef.meta index e87cb67c3c493a25d8b01fee307bd0ff00380a6e..b2120897d07c9135b6a228c4b9f81ccbdf23e51a 100644 --- a/de.thn.uec.isg.arf.worldstoragemanager.asmdef.meta +++ b/etsi.isg.arf.worldstorage.asmdef.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 5a0858869b34217438dedd4c292a5a0b +guid: 99fdaa6f193b69346bfc8863615f98f0 AssemblyDefinitionImporter: externalObjects: {} userData: diff --git a/package.json b/package.json index b9ec71a23d34e510655e52a01871239d5d528759..e3173edfe6a2f47cb71368c84f5bd3d131b3f829 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,9 @@ { - "name": "de.thn.uec.isg.arf.worldstoragemanager", - "version": "0.0.1", - "displayName": "ISG-ARF World Storage Manager", - "description": "Management UI for the World Storage of the Augmented Reality Framework", + "author": "ETSI-ISG-ARF", + "name": "etsi.isg.arf.worldstorage", + "version": "0.0.2", + "displayName": "ISG-ARF World Storage Package", + "description": "REST Wrapper for the World Storage of the Augmented Reality Framework", "unity": "2020.3", - "dependencies": { }, - "keywords": [ ], - "author": { - "name": "Patrick Harms", - "email": "patrick.harms@th-nuernberg.de", - "url": "www.th-nuernberg.de/uec" - } + "keywords": [] } \ No newline at end of file