public GetCollectionsResponse GetCollectionItems() { GetCollectionsResponse response = new GetCollectionsResponse(); using (EchoCollectionClient client = new EchoCollectionClient()) { response = client.GetCollections(); } return(response); }
private void OnGetCollections(GetCollectionsResponse resp, string data) { if (resp != null) { if (resp.collections != null && resp.collections.Length > 0) { foreach (CollectionRef collection in resp.collections) { Log.Debug("ExampleDiscoveryV1", "Collection: {0}, {1}", collection.collection_id, collection.name); } } else { Log.Debug("ExampleDiscoveryV1", "There are no collections"); } } else { Log.Debug("ExampleDiscoveryV1", "Failed to get collections"); } }
private void OnGetCollections(GetCollectionsResponse resp, Dictionary <string, object> customData) { Log.Debug("TestDiscovery.OnGetCollections()", "Discovery - Get collections Response: {0}", customData["json"].ToString()); Test(resp != null); _getCollectionsTested = true; }
private void OnGetCollections(GetCollectionsResponse resp, string data) { Log.Debug("ExampleDiscoveryV1", "Discovery - Get collections Response: {0}", data); Test(resp != null); _getCollectionsTested = true; }