Пример #1
0
        public static DeleteItemResponse Parse(Document?response)
        {
            if (response == null)
            {
                return(new DeleteItemResponse());
            }

            return(new DeleteItemResponse
            {
                Attributes = ParseAttributes(response),
                ConsumedCapacity = CapacityParser.ParseFullConsumedCapacity(response),
                ItemCollectionMetrics = ItemCollectionMetricsParser.ParseItemCollectionMetrics(response)
            });
        }
Пример #2
0
 public static TransactWriteItemsResponse Parse(Document?response)
 {
     return(response == null
         ? new TransactWriteItemsResponse(null, null)
         : new TransactWriteItemsResponse(CapacityParser.ParseFullConsumedCapacity(response), ItemCollectionMetricsParser.ParseMultipleItemCollectionMetrics(response)));
 }