Example #1
0
        public async Task <GetItemResult> GetItemAsync(GetItemRequest request)
        {
            var httpRequest = Setup("GetItem", request.ToJson());

            var json = await SendAndReadJsonElementAsync(httpRequest).ConfigureAwait(false);

            return(GetItemResult.FromJsonElement(json));
        }
Example #2
0
        /*
         * public void DeleteTable()
         * {
         *  throw new NotImplementedException();
         * }
         *
         * public void DescribeTable()
         * {
         *  throw new NotImplementedException();
         * }
         */

        public async Task <GetItemResult> GetItemAsync(GetItemRequest request)
        {
            var httpRequest = Setup("GetItem", request.ToJson());

            var responseText = await SendAsync(httpRequest).ConfigureAwait(false);

            var responseJson = JsonObject.Parse(responseText);

            return(GetItemResult.FromJson(responseJson));
        }