public async Task <Catalog> GetCatalog()
        {
            var response = await IDEAGateway.Request(null, "catalog");

            var catalog = JsonConvert.DeserializeObject <Catalog>(response, IDEAGateway.JsonSerializerSettings);

            return(catalog);
        }
Example #2
0
        public async Task <Result> GetResult(OperationReference reference)
        {
            var response = await IDEAGateway.Request(JsonConvert.SerializeObject(reference, IDEAGateway.JsonSerializerSettings), "result");

            if (response != "null")
            {
                var result = JsonConvert.DeserializeObject <Result>(response, IDEAGateway.JsonSerializerSettings);
                return(result);
            }
            return(null);
        }