Amazon.Glacier.Model.Internal.MarshallTransformations.DescribeVaultResponseUnmarshaller.UnmarshallResult C# (CSharp) Method

UnmarshallResult() private static method

private static UnmarshallResult ( JsonUnmarshallerContext context, DescribeVaultResponse response ) : void
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
response Amazon.Glacier.Model.DescribeVaultResponse
return void
        private static void UnmarshallResult(JsonUnmarshallerContext context,DescribeVaultResponse response)
        {
          
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            while (context.Read())
            {
              
              if (context.TestExpression("VaultARN", targetDepth))
              {
                context.Read();
                response.VaultARN = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
              if (context.TestExpression("VaultName", targetDepth))
              {
                context.Read();
                response.VaultName = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
              if (context.TestExpression("CreationDate", targetDepth))
              {
                context.Read();
                response.CreationDate = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
              if (context.TestExpression("LastInventoryDate", targetDepth))
              {
                context.Read();
                response.LastInventoryDate = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
              if (context.TestExpression("NumberOfArchives", targetDepth))
              {
                context.Read();
                response.NumberOfArchives = LongUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
              if (context.TestExpression("SizeInBytes", targetDepth))
              {
                context.Read();
                response.SizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
                if (context.CurrentDepth <= originalDepth)
                {                   
                    return;
                }
            }
                        
            return;
        }