Amazon.StorageGateway.Model.Internal.MarshallTransformations.DescribeTapeRecoveryPointsResponseUnmarshaller.UnmarshallResult C# (CSharp) Method

UnmarshallResult() private static method

private static UnmarshallResult ( JsonUnmarshallerContext context, DescribeTapeRecoveryPointsResponse response ) : void
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
response Amazon.StorageGateway.Model.DescribeTapeRecoveryPointsResponse
return void
        private static void UnmarshallResult(JsonUnmarshallerContext context,DescribeTapeRecoveryPointsResponse response)
        {
          
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            while (context.Read())
            {
              
              if (context.TestExpression("GatewayARN", targetDepth))
              {
                context.Read();
                response.GatewayARN = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
              if (context.TestExpression("TapeRecoveryPointInfos", targetDepth))
              {
                context.Read();
                response.TapeRecoveryPointInfos = new List<TapeRecoveryPointInfo>();
                        TapeRecoveryPointInfoUnmarshaller unmarshaller = TapeRecoveryPointInfoUnmarshaller.GetInstance();
                while (context.Read())
                {
                  JsonToken token = context.CurrentTokenType;                
                  if (token == JsonToken.ArrayStart)
                  {
                    continue;
                  }
                  if (token == JsonToken.ArrayEnd)
                  {
                    break;
                  }
                   response.TapeRecoveryPointInfos.Add(unmarshaller.Unmarshall(context));
                }
                continue;
              }
  
              if (context.TestExpression("Marker", targetDepth))
              {
                context.Read();
                response.Marker = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
                if (context.CurrentDepth <= originalDepth)
                {                   
                    return;
                }
            }
                        
            return;
        }                        
        
DescribeTapeRecoveryPointsResponseUnmarshaller