diff --git a/Runtime/Scripts/REST/TrackableRequest.cs b/Runtime/Scripts/REST/TrackableRequest.cs index cd65c94b5eb224428352861f2cb5b5895454035a..044ea213efcfdb51c452f45e2bd251c43cc892d1 100644 --- a/Runtime/Scripts/REST/TrackableRequest.cs +++ b/Runtime/Scripts/REST/TrackableRequest.cs @@ -45,6 +45,16 @@ namespace ETSI.ARF.WorldStorage.REST return ro; } + static public List<Trackable> GetTrackablesSync(WorldStorageServer ws) + { + wsServer = ws; + var httpClient = new BasicHTTPClient(ws.URI); + apiClient = new WorldStorageClient(httpClient); + + Debug.Log("[REST] Request Trackables..."); + return apiClient.GetTrackables(token); + } + static public ResponseObject<List<Trackable>> GetTrackablesAsync(WorldStorageServer ws, Action<ResponseObject<List<Trackable>>> func) { wsServer = ws; diff --git a/Runtime/Scripts/REST/WorldAnchorRequest.cs b/Runtime/Scripts/REST/WorldAnchorRequest.cs index 1c19e5323cf21224343da72308577256bb8190d0..34ba629dc72350967ac22580af460187c3a3249f 100644 --- a/Runtime/Scripts/REST/WorldAnchorRequest.cs +++ b/Runtime/Scripts/REST/WorldAnchorRequest.cs @@ -46,6 +46,15 @@ namespace ETSI.ARF.WorldStorage.REST return ro; } + static public List<WorldAnchor> GetWorldAnchorsSync(WorldStorageServer ws) + { + wsServer = ws; + var httpClient = new BasicHTTPClient(ws.URI); + apiClient = new WorldStorageClient(httpClient); + + return apiClient.GetWorldAnchors(token); + } + static public ResponseObject<List<WorldAnchor>> GetWorldAnchorsAsync(WorldStorageServer ws, Action<ResponseObject<List<WorldAnchor>>> func) { wsServer = ws; diff --git a/Runtime/Scripts/REST/WorldLinkRequest.cs b/Runtime/Scripts/REST/WorldLinkRequest.cs index e7be11eccdd10a648a78c71a04606d99d3b504db..7350ddec8db39fbd81058e6f022b1360af77facc 100644 --- a/Runtime/Scripts/REST/WorldLinkRequest.cs +++ b/Runtime/Scripts/REST/WorldLinkRequest.cs @@ -45,6 +45,15 @@ namespace ETSI.ARF.WorldStorage.REST return ro; } + static public List<WorldLink> GetWorldLinksSync(WorldStorageServer ws) + { + wsServer = ws; + var httpClient = new BasicHTTPClient(ws.URI); + apiClient = new WorldStorageClient(httpClient); + + return apiClient.GetWorldLinks(token); + } + static public ResponseObject<List<WorldLink>> GetWorldLinksAsync(WorldStorageServer ws, Action<ResponseObject<List<WorldLink>>> func) { wsServer = ws;